# polipo/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] 1. Debian was last checked in late 2006. At the time, Debian patches existed for this package, but they weren't compatible with the release that we were using (0.9.99.1). #--------------------------------------------------------------------- 2. This distro's version of "polipo" adds an experimental domain- whitelist feature. Details: The patch file "polipo-*-pcrewhite.patch" defines a parameter named WHITEDOM_LISTPATH. If the file specified by WHITEDOM_LISTPATH exists, the file should contain one or more domain names (google.com, etc.) and/or IP addresses [specified one per line]. "polipo" checks the FOO portion of every "http://FOO/..." or "http: //FOO:port/..." URL against the list. If FOO isn't equal to one of the specified entries, or to a subdomain of one of the specified domains, the URL is rejected. The WHITEDOM_LISTPATH file may contain blank lines, "#" comment lines, "#" inline comments, and/or lines starting with "[". All of these items are ignored. Additionally, leading and trailing white space is ignored. For exam- ple, " google.com " is equivalent to "google.com". If the WHITEDOM_LISTPATH file doesn't exist, the program operates normally. Technical notes: a. If you add, delete, or edit the WHITEDOM_LISTPATH file, you may need to restart "polipo" before the changes will take ef- fect. b. Matches aren't case-sensitive. c. The patch file mentioned previously defines another parameter named WHITEDOM_MAXNUM. The WHITEDOM_LISTPATH file is limit- ed to WHITEDOM_MAXNUM entries. Additional entries are ig- nored. d. Badly-formatted entries may be ignored, or they may produce unpredictable effects. #--------------------------------------------------------------------- 3. As of release 0.9.99.1, this package uses "python" (at runtime), but doesn't install anything in the system's "python" tree. #--------------------------------------------------------------------- 4. Important: If you try to use a Mozilla-based browser (such as Ice- Cat) with "polipo", some web sites will reject connections unless you change the reported user agent from "Mozilla/5.0 ..." [etc.] to some- thing that isn't Mozilla. This distro patches "polipo" to address the problem. If the word "Mozilla" occurs at the start of a user-agent value string, the modified code replaces "Mozilla" with "XPolipo". If you'd prefer to transmit a user-agent string that starts with some- thing other than "XPolipo", use "privoxy" and/or browser extension(s) to set a different value. However, if you're going to use "polipo", note that the value that you specify shouldn't start with "Mozilla". For more information on this issue, see the comments in the "patch" file provided. #--------------------------------------------------------------------- [buildtimes] 00.00 hours (or 000.20 minutes) - HP EliteBook 8560w 32GB RAM 00.00 hours (or 000.23 minutes) - ThinkPad E540 i7 4x2 16GB RAM 00.00 hours (or 000.27 minutes) - Dell Inspiron 6400 2.0 GHz Intel Duo 7200 2GB RAM 00.02 hours (or 001.42 minutes) - Compaq 1.7 GHz Intel Pentium 4 512MB RAM #--------------------------------------------------------------------- [settings] compiler = clang configure = none kill = killall -qw --signal SIGTERM polipo license = See "license*.txt" in installed tree tmpsize = 4M setpaths = pcre #--------------------------------------------------------------------- [depends] # cpan-proc-processtable # Used at runtime by maintenance tools cpancore pcre perl # Used at runtime by maintenance tools python # Ditto #--------------------------------------------------------------------- [build] CACHEDIR=/var/cache/polipo DOCDIR=$PKGDIR_PROD/doc ETCDIR=$PKGDIR_PROD/etc/polipo LOGDIR=$PKGDIR_PROD/log MANDIR=$PKGDIR_PROD/man/man1 SBINDIR=$PKGDIR_PROD/sbin WWWDIR=$PKGDIR_PROD/www rm -fr $CACHEDIR mkdir -p $CACHEDIR $DOCDIR $ETCDIR $LOGDIR $MANDIR $SBINDIR $WWWDIR chown -R nobody.nogroup $CACHEDIR/ $LOGDIR/ $WWWDIR/ chmod -R 770 $CACHEDIR/ $LOGDIR/ $WWWDIR/ ln -nsf $CACHEDIR $PKGDIR_PROD/cache LDLIBS="-lpcre" make LDLIBS="-lpcre" make install cp -p $PKGDIR_SPECIAL/license.txt $DOCDIR/ cp -p polipo.man $MANDIR/polipo.1 PROGFILE=$SBINDIR/polipo chown nobody.nogroup $PROGFILE chmod u+s $PROGFILE chmod g+s $PROGFILE cd $SBINDIR cp -p $PKGDIR_SPECIAL/polipo_trimcache.gz . gzip -d polipo_trimcache.gz patch -p0 < $PKGDIR_SPECIAL/polipo_trimcache.patch mv polipo_trimcache polipo-trimcache ln -nsf polipo-trimcache polipo_trimcache chmod 700 polipo-trimcache sed 's|__META_PREFIX__|$PKGDIR_PROD|' \ < $PKGDIR_SPECIAL/polipo-cycle.in \ > polipo-cycle chmod 700 polipo-cycle sed 's|__META_PREFIX__|$PKGDIR_PROD|' \ < $PKGDIR_SPECIAL/polipo-run.in \ > polipo-run chmod 700 polipo-run sed -e "s|__META_PREFIX__|$PKGDIR_PROD|g" \ -e "s|__META_PRODTREE__|$PRODTREE|g" \ < $PKGDIR_SPECIAL/config.in \ > $ETCDIR/config cp -p $PKGDIR_SPECIAL/forbidden $ETCDIR/ #--------------------------------------------------------------------- [setup.boot] # Don't remove the following comment. It's a "magic" comment that af- # fects startup-script order at "boot" time: # meta-boot-before = privoxy $PKGDIR_PROD/sbin/polipo-run #--------------------------------------------------------------------- # 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/polipo url_home = http://www.pps.jussieu.fr/~jch/software/polipo/ url_lfs = n/a url_license = http://www.pps.jussieu.fr/~jch/software/\ polipo/COPYING.text url_tarball = http://freehaven.net/~chrisd/polipo/\ polipo-1.0.4.1.tar.gz