summaryrefslogtreecommitdiffstats
path: root/network/torsocks/torsocks.SlackBuild
diff options
context:
space:
mode:
author Willy Sudiarto Raharjo2016-01-13 16:53:17 +0100
committer Willy Sudiarto Raharjo2016-01-17 03:40:16 +0100
commitbdf3d61c0801ae83405da77b5d11ce55d253f1d0 (patch)
tree4b4babcfc5dcbeeab2f9bc41c2107ed9e05327c8 /network/torsocks/torsocks.SlackBuild
parent654a2c70b77152007fec139cc741cd9de3702683 (diff)
downloadslackbuilds-bdf3d61c0801ae83405da77b5d11ce55d253f1d0.tar.gz
network/torsocks: Updated for version 2.1.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/torsocks/torsocks.SlackBuild')
-rw-r--r--network/torsocks/torsocks.SlackBuild26
1 files changed, 12 insertions, 14 deletions
diff --git a/network/torsocks/torsocks.SlackBuild b/network/torsocks/torsocks.SlackBuild
index 3f34263f13..80a4b51462 100644
--- a/network/torsocks/torsocks.SlackBuild
+++ b/network/torsocks/torsocks.SlackBuild
@@ -5,8 +5,8 @@
# Written by Vincent Batts, vbatts@hashbangbash.com
PRGNAM=torsocks
-VERSION=${VERSION:-1.1}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-2.1.0}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -42,28 +42,28 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Fix a hardcoded lib path.
-sed -i -e 's|@prefix@/lib|@libdir@|' src/Makefile.in
-sed -i -e 's|@prefix@/lib|@libdir@|' src/torsocks.in
-patch -p0 < $CWD/symbol_lookup.patch
+sed -i -e 's|@prefix@/lib|@libdir@|' src/Makefile.am
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
+./autogen.sh
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
+ --enable-static=no \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux
@@ -71,7 +71,7 @@ make
make install DESTDIR=$PKG
# do not clobber
-mv $PKG/etc/torsocks.conf{,.new}
+mv $PKG/etc/tor/torsocks.conf{,.new}
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@@ -80,9 +80,7 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- INSTALL FAQ README* COPYING TODO \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a ChangeLog INSTALL LICENSE README.md TODO gpl-2.0.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install