Skip to content

Instantly share code, notes, and snippets.

@arcayi
Forked from tytydraco/fakeroot-tcp.sh
Created November 17, 2023 04:44
Show Gist options
  • Save arcayi/fe33fe33d01ad5d02053bc2d04613124 to your computer and use it in GitHub Desktop.
Save arcayi/fe33fe33d01ad5d02053bc2d04613124 to your computer and use it in GitHub Desktop.

Revisions

  1. @tytydraco 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"