wok annotate polipo/receipt @ rev 20423

Update some web_site to https
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Aug 09 12:16:16 2018 +0200 (2018-08-09)
parents 9e01bc6321ea
children ea8ff14ee1ec
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()
pascal@20319 36 {
pascal@20319 37 echo
paul@6383 38 echo -n "Creating disk cache..."
pascal@18730 39 mkdir "$1/var/cache/polipo"
pascal@18730 40 chown tux.tux "$1/var/cache/polipo"
paul@6383 41 status
paul@6383 42 }
paul@6383 43
paul@6383 44 # Remove disk cache.
paul@6383 45 post_remove()
paul@6383 46 {
paul@6383 47 echo -n "Removing disk cache..."
pascal@18730 48 rm -rf "$1/var/cache/polipo"
paul@6383 49 status
paul@6383 50 }
paul@6383 51