wok-next view polipo/receipt @ rev 8010
Fixed cd path in virtualbox-ose.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Jan 18 21:13:09 2011 +0000 (2011-01-18) |
parents | |
children | 51a1ebbda768 |
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 DEPENDS=""
9 BUILD_DEPENDS="texinfo"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://www.pps.jussieu.fr/~jch/software/polipo/"
12 WGET_URL="http://freehaven.net/~chrisd/polipo/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 make all
19 }
21 # Rules to gen a SliTaz package suitable for Tazpkg.
22 genpkg_rules()
23 {
24 mkdir -p $fs/usr/bin $fs/etc/polipo $fs/usr/share/polipo/www/doc
25 cp -a $src/polipo $fs/usr/bin
26 cp -a $src/config.sample $fs/etc/polipo/config
27 cp -a $src/forbidden.sample $fs/etc/polipo/forbidden
28 cp -a $src/localindex.html $fs/usr/share/polipo/www/index.html
29 cp -a $src/html/* $fs/usr/share/polipo/www/doc
30 }
32 # Create a disk cache.
33 post_install()
34 {
35 echo -n "Creating disk cache..."
36 mkdir $1/var/cache/polipo
37 chown tux.tux $1/var/cache/polipo
38 status
39 }
41 # Remove disk cache.
42 post_remove()
43 {
44 echo -n "Removing disk cache..."
45 rm -rf $1/var/cache/polipo
46 status
47 }