From 61f7bbd76e1295fa4e8b05d5d10158436abee4ac Mon Sep 17 00:00:00 2001 From: Alex Lysenka Date: Tue, 11 May 2010 15:01:34 +0200 Subject: network/privoxy: Initial import --- network/privoxy/README | 29 +++++++++++ network/privoxy/privoxy.SlackBuild | 101 +++++++++++++++++++++++++++++++++++++ network/privoxy/privoxy.info | 8 +++ network/privoxy/slack-desc | 12 +++++ 4 files changed, 150 insertions(+) create mode 100644 network/privoxy/README create mode 100644 network/privoxy/privoxy.SlackBuild create mode 100644 network/privoxy/privoxy.info create mode 100644 network/privoxy/slack-desc (limited to 'network') diff --git a/network/privoxy/README b/network/privoxy/README new file mode 100644 index 0000000000..1947b95a45 --- /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 0000000000..b0016aaf37 --- /dev/null +++ b/network/privoxy/privoxy.SlackBuild @@ -0,0 +1,101 @@ +#!/bin/sh + +# Build script for privoxy +# Written by Alex Lysenka + +# Copyright 2007 Alex Lysenka $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 0000000000..e03f9b7259 --- /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 0000000000..cdbee40837 --- /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: -- cgit v1.2.3