wok-current annotate polipo/receipt @ rev 16240

picoblog: browsers should not execute TARBALL on mirror
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Apr 03 07:03:51 2014 +0000 (2014-04-03)
parents 7e4d83d8ae14
children cc6a579503a6
rev   line source
paul@6383 1 # SliTaz package receipt.
paul@6383 2
paul@6383 3 PACKAGE="polipo"
paul@6383 4 VERSION="1.0.4.1"
paul@6383 5 CATEGORY="network"
paul@6383 6 SHORT_DESC="Small and fast caching web proxy."
paul@6383 7 MAINTAINER="paul@slitaz.org"
pascal@15375 8 LICENSE="MIT"
paul@6383 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
paul@6383 10 WEB_SITE="http://www.pps.jussieu.fr/~jch/software/polipo/"
paul@6383 11 WGET_URL="http://freehaven.net/~chrisd/polipo/$TARBALL"
paul@6383 12
pascal@15375 13 DEPENDS=""
pascal@15375 14 BUILD_DEPENDS="texinfo"
pascal@15375 15
paul@6383 16 # Rules to configure and make the package.
paul@6383 17 compile_rules()
paul@6383 18 {
paul@6383 19 cd $src
paul@6383 20 make all
paul@6383 21 }
paul@6383 22
paul@6383 23 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@6383 24 genpkg_rules()
paul@6383 25 {
paul@6383 26 mkdir -p $fs/usr/bin $fs/etc/polipo $fs/usr/share/polipo/www/doc
paul@6383 27 cp -a $src/polipo $fs/usr/bin
paul@6383 28 cp -a $src/config.sample $fs/etc/polipo/config
paul@6383 29 cp -a $src/forbidden.sample $fs/etc/polipo/forbidden
paul@6383 30 cp -a $src/localindex.html $fs/usr/share/polipo/www/index.html
paul@6383 31 cp -a $src/html/* $fs/usr/share/polipo/www/doc
paul@6383 32 }
paul@6383 33
paul@6383 34 # Create a disk cache.
paul@6383 35 post_install()
paul@6383 36 {
paul@6383 37 echo -n "Creating disk cache..."
paul@6383 38 mkdir $1/var/cache/polipo
paul@6383 39 chown tux.tux $1/var/cache/polipo
paul@6383 40 status
paul@6383 41 }
paul@6383 42
paul@6383 43 # Remove disk cache.
paul@6383 44 post_remove()
paul@6383 45 {
paul@6383 46 echo -n "Removing disk cache..."
paul@6383 47 rm -rf $1/var/cache/polipo
paul@6383 48 status
paul@6383 49 }
paul@6383 50