contrib/torsocks/Pkgfile
2020-12-13 18:21:04 +02:00

31 lines
773 B
Plaintext

# Description: Wrapper to safely torify applications
# URL: https://gitweb.torproject.org/torsocks.git
# Maintainer: Alexandr Savca, alexandrsavca89 at gmail dot com
# Optional: tor
name=torsocks
version=2.3.0
release=1
source=(https://people.torproject.org/~dgoulet/$name/$name-$version.tar.xz
$name-$version-fix-syscall.patch)
build() {
cd $name-$version
# Disable tests requiring network access
for test in dns fd_passing getpeername; do
sed -i -e "/^\ttest_${test} \\\\\$/d" tests/Makefile.am || \
{ echo 1>&2 "Failed to disable network tests!"; exit 1; }
done
patch -p1 -i $SRC/torsocks-2.3.0-fix-syscall.patch
autoreconf -f -i
./configure --prefix=/usr --sysconfdir=/etc
make V=1
make DESTDIR=$PKG install
rm -r $PKG/usr/share/doc
}