summaryrefslogtreecommitdiffstats
path: root/network/privoxy/privoxy.SlackBuild
diff options
context:
space:
mode:
author Kyle Guinn <elyk03@gmail.com>2016-10-12 00:46:57 -0500
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2016-10-15 07:10:04 +0700
commita4256bc7d9bec3c03e36ec7d21c9c881460db550 (patch)
tree5ea73d0674d70e3e08946b54cbea603e1e635ecb /network/privoxy/privoxy.SlackBuild
parent61cef7cc008ad55ef0f0247d3d87e1945881bf5f (diff)
downloadslackbuilds-a4256bc7d9bec3c03e36ec7d21c9c881460db550.tar.gz
slackbuilds-a4256bc7d9bec3c03e36ec7d21c9c881460db550.tar.xz
network/privoxy: Updated for version 3.0.26.
Signed-off-by: Kyle Guinn <elyk03@gmail.com>
Diffstat (limited to 'network/privoxy/privoxy.SlackBuild')
-rw-r--r--network/privoxy/privoxy.SlackBuild27
1 files changed, 12 insertions, 15 deletions
diff --git a/network/privoxy/privoxy.SlackBuild b/network/privoxy/privoxy.SlackBuild
index bf9cb7007f..213ac5c4b6 100644
--- a/network/privoxy/privoxy.SlackBuild
+++ b/network/privoxy/privoxy.SlackBuild
@@ -24,13 +24,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=privoxy
-VERSION=${VERSION:-3.0.24}
+VERSION=${VERSION:-3.0.26}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$(uname -m)" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$(uname -m) ;;
esac
@@ -44,6 +44,9 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
@@ -90,6 +93,10 @@ sed -i "/^DOC_DEST/s/= .*/= @docdir@/" GNUmakefile.in
# .new suffix. Turn this behavior off. We will do it below.
sed -i "s/\[ -s \"\$(CONF_DEST)\/\$\$i\" \]/false/" GNUmakefile.in
+# rc.privoxy generation doesn't work well with $(DESTDIR). Help it along.
+sed -i "s/ \/etc\/rc.d\// \$(DESTDIR)\/etc\/rc.d\//g" GNUmakefile.in
+mkdir -p $PKG/etc/rc.d
+
autoheader
autoconf
CFLAGS="$SLKCFLAGS" \
@@ -116,26 +123,16 @@ find $PKG/usr/man -type f -exec gzip -9 {} +
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-mkdir -p $PKG/etc/rc.d
-sed \
- -e "s/%PROGRAM%/$PRGNAM/" \
- -e "s,%SBIN_DEST%,/usr/sbin," \
- -e "s,%CONF_DEST%,/etc/$PRGNAM," \
- -e "s/%USER%/$PRIVOXY_USER/" \
- -e "s/%GROUP%/$PRIVOXY_GROUP/" \
- slackware/rc.privoxy.orig \
- > $PKG/etc/rc.d/rc.privoxy.new
-chmod +x $PKG/etc/rc.d/rc.privoxy.new
-
# Make .new files so we don't clobber the existing configuration.
-for i in config match-all.action trust user.action user.filter; do
+for i in config match-all.action regression-tests.action trust user.action user.filter; do
mv $PKG/etc/privoxy/$i $PKG/etc/privoxy/$i.new
done
# Others are not intended to be user-editable and will be overwritten.
# To disregard, uncomment this and the corresponding lines in doinst.sh.
#find $PKG/etc/privoxy -name '*.new' -prune -o -type f -exec mv {} {}.new \;
-# Don't clobber the logfile either.
+# Don't clobber the init script or logfile either.
+mv $PKG/etc/rc.d/rc.privoxy $PKG/etc/rc.d/rc.privoxy.new
mv $PKG/var/log/privoxy/logfile $PKG/var/log/privoxy/logfile.new
# Remove empty directories that are part of Slackware base.