aboutsummaryrefslogtreecommitdiff
path: root/libraries/tsocks/tsocks.SlackBuild
diff options
context:
space:
mode:
authormancha <mancha1@hush.com>2013-10-30 23:23:58 -0500
committerRobby Workman <rworkman@slackbuilds.org>2013-10-31 00:01:08 -0500
commit0979f839ec7f1e2c2e10fb81597e3926d91bd533 (patch)
tree3cf9232fafdb447e69d25ee14f7580f708207da3 /libraries/tsocks/tsocks.SlackBuild
parent88b213ed9db076344ee658010e789b5557e7ddbc (diff)
libraries/tsocks: fix incorrect LD_PRELOAD paths on x86_64
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries/tsocks/tsocks.SlackBuild')
-rw-r--r--libraries/tsocks/tsocks.SlackBuild10
1 files changed, 8 insertions, 2 deletions
diff --git a/libraries/tsocks/tsocks.SlackBuild b/libraries/tsocks/tsocks.SlackBuild
index 7b4f6ff42a4dc..21473cebb48cc 100644
--- a/libraries/tsocks/tsocks.SlackBuild
+++ b/libraries/tsocks/tsocks.SlackBuild
@@ -25,7 +25,7 @@
PRGNAM=tsocks
VERSION=${VERSION:-1.8beta5}
SRCVERSION=${SRCVERSION:-1.8}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
@@ -43,7 +43,7 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-DOCS="COPYING ChangeLog FAQ"
+DOCS="COPYING ChangeLog FAQ tsocks.conf.{simple,complex}.example"
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
@@ -74,6 +74,10 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+if [ "$ARCH" = "x86_64" ]; then
+ patch -p1 --verbose < $CWD/tsocks-1.8beta5-64bit.diff || exit 1
+fi
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -87,6 +91,8 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
+install -m 0755 inspectsocks validateconf $PKG/usr/bin
+
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true