wok view polipo/receipt @ rev 16374

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