wok-6.x view polipo/receipt @ rev 15763
Up tazinst-gui (3.92)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jan 05 22:37:47 2014 +0100 (2014-01-05) |
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 }