wok view polipo/receipt @ rev 21545
updated ninja (1.8.2 -> 1.9.0)
author | Hans-G?nter Theisgen |
---|---|
date | Mon May 06 13:49:29 2019 +0100 (2019-05-06) |
parents | 9e01bc6321ea |
children | ea8ff14ee1ec |
line source
1 # SliTaz package receipt.
3 PACKAGE="polipo"
4 VERSION="1.1.0"
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://www.pps.univ-paris-diderot.fr/~jch/software/files/$PACKAGE/$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
38 echo -n "Creating disk cache..."
39 mkdir "$1/var/cache/polipo"
40 chown tux.tux "$1/var/cache/polipo"
41 status
42 }
44 # Remove disk cache.
45 post_remove()
46 {
47 echo -n "Removing disk cache..."
48 rm -rf "$1/var/cache/polipo"
49 status
50 }