From d7b9632409865af12c101c25f5fd0d496773cb23 Mon Sep 17 00:00:00 2001 From: rhatto Date: Sat, 2 Dec 2006 15:36:10 +0000 Subject: updated tsocks git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@744 370017ae-e619-0410-ac65-c121f96126d4 --- net/proxy/tsocks/tsocks.SlackBuild | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/net/proxy/tsocks/tsocks.SlackBuild b/net/proxy/tsocks/tsocks.SlackBuild index fcef90b3..488a26d9 100755 --- a/net/proxy/tsocks/tsocks.SlackBuild +++ b/net/proxy/tsocks/tsocks.SlackBuild @@ -27,7 +27,7 @@ fi # default settings PACKAGE="tsocks" ARCH=${ARCH:=i486} -VERSION=${VERSION:=1.7} +VERSION=${VERSION:=1.8beta5} BUILD=${BUILD:=1rha} SRC_DIR=${SRC:=$CWD} TMP=${TMP:=/tmp} @@ -64,7 +64,12 @@ mkdir -p $TMP cd $TMP tar xvf $SRC_DIR/$SRC || exit $ERROR_TAR -cd $PACKAGE-$VERSION + +if echo $VERSION | grep -q "beta"; then + cd $PACKAGE-`echo $VERSION | sed -e 's/beta.*//'` +else + cd $PACKAGE-$VERSION +fi if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then patch -p1 < $CWD/$PACKAGE-$VERSION.diff || exit $ERROR_PATCH -- cgit v1.2.3