diff options
-rw-r--r-- | network/privoxy/README | 29 | ||||
-rw-r--r-- | network/privoxy/privoxy.SlackBuild | 101 | ||||
-rw-r--r-- | network/privoxy/privoxy.info | 8 | ||||
-rw-r--r-- | network/privoxy/slack-desc | 12 |
4 files changed, 150 insertions, 0 deletions
diff --git a/network/privoxy/README b/network/privoxy/README new file mode 100644 index 0000000000000..1947b95a45b60 --- /dev/null +++ b/network/privoxy/README @@ -0,0 +1,29 @@ +Privoxy is a web proxy with advanced filtering capabilities for +protecting privacy, modifying web page data, managing cookies, +controlling access, and removing ads, banners, pop-ups and other +obnoxious Internet junk. Privoxy has a very flexible configuration +and can be customized to suit individual needs and tastes. +Privoxy has application for both stand-alone systems and multi-user +networks. + +Homepage: http://www.privoxy.org/ + +Before executing the script, you will need to create +a privoxy user and group. To do that, run the following commands: + + /usr/sbin/groupadd -g 206 privoxy + + /usr/sbin/useradd -u 206 -g 206 -c "Web Proxy" \ + -d /dev/null -s /bin/false privoxy + +(please note that the \ is just to split the command up, the whole +'useradd' is one line) + +To run privoxy at boot, the following code needs to +be added to /etc/rc.d/rc.local: + + if [ -x /etc/rc.d/rc.privoxy ]; then + /etc/rc.d/rc.privoxy start + fi + + diff --git a/network/privoxy/privoxy.SlackBuild b/network/privoxy/privoxy.SlackBuild new file mode 100644 index 0000000000000..b0016aaf37112 --- /dev/null +++ b/network/privoxy/privoxy.SlackBuild @@ -0,0 +1,101 @@ +#!/bin/sh + +# Build script for privoxy +# Written by Alex Lysenka <me@alkos333.net> + +# Copyright 2007 Alex Lysenka <me@alkos333.net) +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +# Modified by the SlackBuilds.org project + +set -e + +PRGNAM=privoxy +VERSION=3.0.6 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +CWD=$( pwd ) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ATCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +fi + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar -xzvf $CWD/$PRGNAM-$VERSION-stable-src.tar.gz +cd $PRGNAM-$VERSION-stable +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +autoheader +autoconf +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=$PKG/usr \ + --sbindir=$PKG/usr/bin \ + --sysconfdir=$PKG/etc/$PRGNAM \ + --localstatedir=$PKG/var \ + --datadir=$PKG/usr \ + --mandir=$PKG/usr/man \ + --with-docbook=no \ + --with-user=privoxy \ + --with-group=privoxy + +make || exit 1 +make install-strip || exit 1 + +( cd $PKG/usr/man + find . -type f -exec gzip -9 {} \; +) + +mv $PKG/usr/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +find $PKG/usr/doc -type f -exec chmod 644 {} \; + +mkdir $PKG/etc/rc.d +cat $TMP/$PRGNAM-$VERSION-stable/slackware/rc.privoxy.orig > $PKG/etc/rc.d/rc.privoxy +sed " s/%PROGRAM%/$PRGNAM/ + s/%SBIN_DEST%/\/usr\/bin/ + s/%CONF_DEST%/\/etc\/$PRGNAM/ + s/%USER%/$PRGNAM/ + s/%GROUP%/$PRGNAM/ + s/\/var\/run\/\$PRIVOXY_PRG/\/var\/run/ +" $PKG/etc/rc.d/rc.$PRGNAM > $PKG/etc/rc.d/rc.$PRGNAM.tmp +mv $PKG/etc/rc.d/rc.$PRGNAM.tmp $PKG/etc/rc.d/rc.$PRGNAM +chmod +x $PKG/etc/rc.d/rc.$PRGNAM + +# Fix Path within the configuration files (thanks to h4kteur) +sed -i "s#$PKG##g" $PKG/etc/$PRGNAM/config +# Fix Path with the config file to point to right usermanual (--BP{k} +sed -i "s#user-manual /usr/doc/$PRGNAM#user-manual /usr/doc/$PRGNAM-$VERSION#" $PKG/etc/privoxy/config +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz diff --git a/network/privoxy/privoxy.info b/network/privoxy/privoxy.info new file mode 100644 index 0000000000000..e03f9b725951c --- /dev/null +++ b/network/privoxy/privoxy.info @@ -0,0 +1,8 @@ +PRGNAM="privoxy" +VERSION="3.0.6" +HOMEPAGE="http://www.privoxy.org/" +DOWNLOAD="http://dl.sourceforge.net/ijbswa/privoxy-3.0.6-stable-src.tar.gz" +MD5SUM="c3b34c620e1174f0c0b91aa2a04ceae4" +MAINTAINER="Alex Lysenka" +EMAIL="me@alkos333.net" +APPROVED="BP{k}" diff --git a/network/privoxy/slack-desc b/network/privoxy/slack-desc new file mode 100644 index 0000000000000..cdbee40837b8c --- /dev/null +++ b/network/privoxy/slack-desc @@ -0,0 +1,12 @@ + |-----handy-ruler------------------------------------------------------| +privoxy: +privoxy: Privoxy is a web proxy with advanced filtering capabilities for +privoxy: protecting privacy, modifying web page data, managing cookies, +privoxy: controlling access, and removing ads, banners, pop-ups and other +privoxy: obnoxious Internet junk. Privoxy has a very flexible configuration +privoxy: and can be customized to suit individual needs and tastes. Privoxy +privoxy: has application for both stand-alone systems and multi-user networks. +privoxy: +privoxy: Homepage: http://www.privoxy.org/ +privoxy: +privoxy: |