Skip to content

Instantly share code, notes, and snippets.

@tytydraco
Created July 24, 2020 23:41

Revisions

  1. tytydraco created this gist Jul 24, 2020.
    29 changes: 29 additions & 0 deletions fakeroot-tcp.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    #!/bin/bash

    cd /tmp
    wget http://ftp.debian.org/debian/pool/main/f/fakeroot/fakeroot_1.24.orig.tar.gz
    tar xvf fakeroot_1.24.orig.tar.gz
    cd fakeroot-1.24/
    ./bootstrap
    ./configure --prefix=/opt/fakeroot \
    --libdir=/opt/fakeroot/libs \
    --disable-static \
    --with-ipc=tcp
    make
    sudo make install
    OLDPATH="$PATH"
    export PATH="/opt/fakeroot/bin:$PATH"

    cd /tmp
    rm fakeroot_1.24.orig.tar.gz
    rm -rf fakeroot-1.24/

    git clone https://aur.archlinux.org/fakeroot-tcp.git
    cd fakeroot-tcp
    makepkg -si

    cd /tmp
    rm -rf fakeroot-tcp
    sudo rm -rf /opt/fakeroot

    export PATH="$OLDPATH"