# privoxy/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] 1. Presently, the source tarball used by this package is ancient; it dates back to 2004. However, newer releases seem to be buggy. Specifi- ally, some filters are ignored, but (oddly) only for certain combina- tions of web sites and web browsers. The 2004 release doesn't seem to have the problem. Therefore, this distro will continue to use the ancient version for the time being. #--------------------------------------------------------------------- 2. The "build" procedure for this package uses "openjade" if it's available, but "openjade" isn't required, and it isn't treated as a dependency. #--------------------------------------------------------------------- [buildtimes] 00.00 hours (or 000.25 minutes) - Dell Inspiron 6400 2.0 GHz Intel Duo 7200 2GB RAM 00.01 hours (or 000.38 minutes) - ThinkPad E540 i7 4x2 16GB RAM 00.03 hours (or 001.52 minutes) - Compaq 1.7 GHz Intel Pentium 4 512MB RAM #--------------------------------------------------------------------- [settings] exepack = yes kill = killall -wq -3 privoxy license = GNU General Public License, version 2 (June 1991) makejail = yes tmpsize = 7M unpack = relaxed #--------------------------------------------------------------------- [depends] ac213 coreutils gawk grep lynx mandb:forward pcre #--------------------------------------------------------------------- [configure] mkdir -p /home/jail if test -z "`grep privoxy /etc/group`" ; then groupadd privoxy; fi if test -z "`grep privoxy /etc/passwd`" ; then useradd privoxy -g privoxy -d /home/jail \ -s /bin/false -p notused fi MANBASE=$PKGDIR_PROD/man VARDIR=/var/privoxy mkdir -p $MANBASE $VARDIR mkdir -p $PKGDIR_PROD/{doc,etc/templates,man/man1,log,sbin} chown -R privoxy.privoxy $PKGDIR_PROD/ $VARDIR/ for x in `find $PKGDIR_PROD/ -type d` \ `find $VARDIR/ -type d` do chmod 770 $x done autoheader-2.13 autoconf-2.13 sed -e "s|^if test .RPMBIN != false; then|RPMBIN=false; &|" \ -i configure bash ./configure \ --prefix=$PKGDIR_PROD \ --build=$LACARCHBUILD \ --host=$LACARCHHOST \ --localstatedir=$VARDIR \ --mandir=$MANBASE \ --with-user=privoxy \ --with-group=privoxy #--------------------------------------------------------------------- [build] make < /dev/null && make install #--------------------------------------------------------------------- [postbuild] DOCDIR=$PKGDIR_PROD/doc ETCDIR=$PKGDIR_PROD/etc LOGDIR=/var/tmp/privoxy VARDIR=/var/privoxy mkdir -p $DOCDIR $ETCDIR $LOGDIR $VARDIR chown -R privoxy.privoxy $PKGDIR_PROD/ $LOGDIR/ $VARDIR/ for x in `find $PKGDIR_PROD/ -type d` \ `find $LOGDIR/ -type d` \ `find $VARDIR/ -type d` do chmod 770 $x done mv $ETCDIR/config $ETCDIR/normal.cfg mv $PKGDIR_PROD/share/doc/privoxy/* $DOCDIR/ rm -fr $PKGDIR_PROD/share/ sed -i \ -e "s|^confdir .*|confdir $ETCDIR|" \ -e "s|^jarfile .*|#&|" \ -e "s|^logdir .*|logdir $LOGDIR|" \ -e "s|^logfile .*|logfile $LOGDIR/normal.log|" \ $ETCDIR/normal.cfg cat $PKGDIR_SPECIAL/action.add >> $ETCDIR/user.action cat $PKGDIR_SPECIAL/filter.add >> $ETCDIR/default.filter #--------------------------------------------------------------------- [setup.boot] # Don't remove the following comment. It's a "magic" comment that af- # fects startup-script order at "boot" time: # meta-boot-after = polipo if test -f /etc/jail then echo Error: Privoxy must be started _outside_ the jail exit 1 fi killall -wq -3 privoxy if test -z "`grep privoxy /etc/group`" ; then groupadd privoxy; fi if test -z "`grep privoxy /etc/passwd`" ; then useradd privoxy -g privoxy -d /home/jail \ -s /bin/false -p notused fi LOGDIR=/var/tmp/privoxy VARDIR=/var/privoxy if [ ! -d $LOGDIR ]; then rm -f $LOGDIR # Handle bad links or similar issues mkdir -p $LOGDIR fi if [ ! -d $VARDIR ]; then rm -f $VARDIR # Handle bad links or similar issues mkdir -p $VARDIR fi mkdir -p $VARDIR/log/privoxy mkdir -p $VARDIR/run chown -R privoxy.privoxy $LOGDIR/ $VARDIR/ for x in `find $LOGDIR/ -type d` \ `find $VARDIR/ -type d` do chmod 770 $x done ETCCFG=$PKGDIR_PROD/etc/normal.cfg JAILCFGX=/home/jail$ETCCFG JAILPROD=/home/jail$PKGDIR_PROD EXEFILE=$PKGDIR_PROD/sbin/privoxy if [ -d $JAILPROD -a -f $JAILCFGX ]; then chmod 770 $PKGDIR_PROD $JAILPROD chown -R privoxy.privoxy $PKGDIR_PROD $JAILPROD $EXEFILE --chroot --user privoxy.privoxy $ETCCFG else $EXEFILE --user privoxy.privoxy $ETCCFG fi #--------------------------------------------------------------------- # Original URLs. These URLs were valid at one point, but may have died # since then. If you download newer versions of tarballs [etc.], don't # delete the original versions, as you may not be able to replace # them. [urls] url_debian = http://packages.debian.org/unstable/source/privoxy url_home = http://www.privoxy.org/ url_lfs = n/a url_tarball = http://downloads.sourceforge.net/sourceforge/\ ijbswa/privoxy-3.0.3-2-stable.src.tar.gz