aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2006-09-13 23:43:18 +0000
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2006-09-13 23:43:18 +0000
commit39de61f46f05e7f71ee261af3e7657589174b78a (patch)
tree03d6507b7a65340614a2b5ce4362ece33a44bfce
parented3b15afe97ae81aa3403fd016023c5f32c80c0e (diff)
downloadslackbuilds-39de61f46f05e7f71ee261af3e7657589174b78a.tar.gz
slackbuilds-39de61f46f05e7f71ee261af3e7657589174b78a.tar.bz2
privoxy and tor fixes
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@191 370017ae-e619-0410-ac65-c121f96126d4
-rwxr-xr-xprivoxy/privoxy.SlackBuild11
-rwxr-xr-xtor/tor.SlackBuild6
2 files changed, 9 insertions, 8 deletions
diff --git a/privoxy/privoxy.SlackBuild b/privoxy/privoxy.SlackBuild
index 61dc346a..c5492821 100755
--- a/privoxy/privoxy.SlackBuild
+++ b/privoxy/privoxy.SlackBuild
@@ -66,25 +66,26 @@ autoconf
./configure --prefix=/usr --sysconfdir=/etc/$PACKAGE --libdir=$LIBDIR
make
-CWD="`pwd`"
-
# for VERSION=0.3.3, privoxy Makefile doesnt respect DESTDIR correctly,
# so beyond the patch we still need to do some nasty stuff...
if [ "$VERSION" == "3.0.3" ]; then
make DESTDIR=install install
+ mkdir -p install/etc/rc.d
+ cp $CWD/rc.privoxy.new install/etc/rc.d
+ CWD="`pwd`"
cd install
else
make DESTDIR=$TMP/package-$PACKAGE install
+ mkdir -p $TMP/package-$PACKAGE/etc/rc.d
+ cp $CWD/rc.privoxy.new $TMP/package-$PACKAGE/etc/rc.d
+ CWD="`pwd`"
cd $TMP/package-$PACKAGE
fi
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
-mkdir -p etc/rc.d
-cp $CWD/rc.privoxy.new etc/rc.d
-
mkdir install
cat << EOF > install/slack-desc
# HOW TO EDIT THIS FILE:
diff --git a/tor/tor.SlackBuild b/tor/tor.SlackBuild
index abec1bb1..986eeed0 100755
--- a/tor/tor.SlackBuild
+++ b/tor/tor.SlackBuild
@@ -81,13 +81,13 @@ fi
make
make DESTDIR=$TMP/package-$PACKAGE install
-CWD="`pwd`"
+mkdir $TMP/package-$PACKAGE/etc/rc.d
+cp $CWD/rc.tor.new $TMP/package-$PACKAGE/etc/rc.d
+CWD="`pwd`"
cd $TMP/package-$PACKAGE
mv etc/tor/tor-tsocks.conf etc/tor/tor-tsocks.conf.sample
-mkdir etc/rc.d
-cp $CWD/rc.tor.new etc/rc.d
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null