wok-current annotate polipo/receipt @ rev 23630
updated sarg and sarg-php (2.3.11 -> 2.4.0)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Apr 17 08:01:58 2020 +0100 (2020-04-17) |
parents | 970c5ec9a60a |
children | 5ea0ce1cecc0 |
rev | line source |
---|---|
paul@6383 | 1 # SliTaz package receipt. |
paul@6383 | 2 |
paul@6383 | 3 PACKAGE="polipo" |
Hans-G?nter@21693 | 4 VERSION="1.1.1" |
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" |
Hans-G?nter@21693 | 9 WEB_SITE="https://www.irif.fr/~jch/software/polipo/" |
Hans-G?nter@21693 | 10 |
paul@6383 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@21693 | 12 WGET_URL="https://github.com/jech/$PACKAGE/archive/$TARBALL" |
paul@6383 | 13 |
pascal@15375 | 14 DEPENDS="" |
pascal@15375 | 15 BUILD_DEPENDS="texinfo" |
pascal@15375 | 16 |
paul@6383 | 17 # Rules to configure and make the package. |
paul@6383 | 18 compile_rules() |
paul@6383 | 19 { |
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 { |
Hans-G?nter@21693 | 26 mkdir -p $fs/usr/bin |
Hans-G?nter@21693 | 27 mkdir -p $fs/etc/polipo |
Hans-G?nter@21693 | 28 mkdir -p $fs/usr/share/polipo/www/doc |
Hans-G?nter@21693 | 29 |
Hans-G?nter@21693 | 30 cp -a $src/polipo $fs/usr/bin |
Hans-G?nter@21693 | 31 cp -a $src/config.sample $fs/etc/polipo/config |
Hans-G?nter@21693 | 32 cp -a $src/forbidden.sample $fs/etc/polipo/forbidden |
Hans-G?nter@21693 | 33 cp -a $src/localindex.html $fs/usr/share/polipo/www/index.html |
Hans-G?nter@21693 | 34 cp -a $src/html/* $fs/usr/share/polipo/www/doc |
paul@6383 | 35 } |
paul@6383 | 36 |
paul@6383 | 37 # Create a disk cache. |
paul@6383 | 38 post_install() |
pascal@20319 | 39 { |
pascal@20319 | 40 echo |
paul@6383 | 41 echo -n "Creating disk cache..." |
pascal@18730 | 42 mkdir "$1/var/cache/polipo" |
pascal@18730 | 43 chown tux.tux "$1/var/cache/polipo" |
paul@6383 | 44 status |
paul@6383 | 45 } |
paul@6383 | 46 |
paul@6383 | 47 # Remove disk cache. |
paul@6383 | 48 post_remove() |
paul@6383 | 49 { |
paul@6383 | 50 echo -n "Removing disk cache..." |
pascal@18730 | 51 rm -rf "$1/var/cache/polipo" |
paul@6383 | 52 status |
paul@6383 | 53 } |