wok annotate polipo/receipt @ rev 19614
Up: gmp (6.1.2)
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Mon Jan 09 19:48:10 2017 +0000 (2017-01-09) |
parents | cc6a579503a6 |
children | 970c5ec9a60a |
rev | line source |
---|---|
paul@6383 | 1 # SliTaz package receipt. |
paul@6383 | 2 |
paul@6383 | 3 PACKAGE="polipo" |
devl547@16409 | 4 VERSION="1.1.0" |
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/" |
devl547@16409 | 11 WGET_URL="http://www.pps.univ-paris-diderot.fr/~jch/software/files/$PACKAGE/$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..." |
pascal@18730 | 38 mkdir "$1/var/cache/polipo" |
pascal@18730 | 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..." |
pascal@18730 | 47 rm -rf "$1/var/cache/polipo" |
paul@6383 | 48 status |
paul@6383 | 49 } |
paul@6383 | 50 |