contrib/torsocks/Pkgfile

32 lines
795 B
Plaintext
Raw Normal View History

# Description: Wrapper to safely torify applications
# URL: https://gitweb.torproject.org/torsocks.git
2019-10-28 10:18:07 +01:00
# Maintainer: unmaintained
# Depends:
# Optional: tor
2015-02-18 10:03:06 +01:00
name=torsocks
2019-08-19 15:06:23 +02:00
version=2.3.0
2015-02-18 10:03:06 +01:00
release=1
source=(https://people.torproject.org/~dgoulet/$name/$name-$version.tar.xz)
2015-02-18 10:03:06 +01:00
build() {
cd $name-$version
2015-02-18 10:03:06 +01:00
# 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
2015-02-18 10:03:06 +01:00
autoreconf -f -i
2015-02-18 10:03:06 +01:00
./configure \
--prefix=/usr \
--sysconfdir=/etc
2015-02-18 10:03:06 +01:00
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/doc
2015-02-18 10:03:06 +01:00
}