# SliTaz package receipt. PACKAGE="polipo" VERSION="1.0.4.1" CATEGORY="network" SHORT_DESC="Small and fast caching web proxy." MAINTAINER="paul@slitaz.org" DEPENDS="" BUILD_DEPENDS="texinfo" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://www.pps.jussieu.fr/~jch/software/polipo/" WGET_URL="http://freehaven.net/~chrisd/polipo/$TARBALL" # Rules to configure and make the package. compile_rules() { cd $src make all } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/bin $fs/etc/polipo $fs/usr/share/polipo/www/doc cp -a $src/polipo $fs/usr/bin cp -a $src/config.sample $fs/etc/polipo/config cp -a $src/forbidden.sample $fs/etc/polipo/forbidden cp -a $src/localindex.html $fs/usr/share/polipo/www/index.html cp -a $src/html/* $fs/usr/share/polipo/www/doc } # Create a disk cache. post_install() { echo -n "Creating disk cache..." mkdir $1/var/cache/polipo chown tux.tux $1/var/cache/polipo status } # Remove disk cache. post_remove() { echo -n "Removing disk cache..." rm -rf $1/var/cache/polipo status }