wok-current annotate polipo/receipt @ rev 24132

Up tazinst (114)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 23 15:07:33 2021 +0000 (2021-10-23)
parents ea8ff14ee1ec
children ac8ca9758df1
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
pascal@24055 17 current_version()
pascal@24055 18 {
pascal@24055 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 20 sed '/archive.*tar/!d;s|.*/polipo-\(.*\).tar.*|\1|;q'
pascal@24055 21 }
pascal@24055 22
paul@6383 23 # Rules to configure and make the package.
paul@6383 24 compile_rules()
paul@6383 25 {
paul@6383 26 make all
paul@6383 27 }
paul@6383 28
paul@6383 29 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@6383 30 genpkg_rules()
paul@6383 31 {
Hans-G?nter@21693 32 mkdir -p $fs/usr/bin
Hans-G?nter@21693 33 mkdir -p $fs/etc/polipo
Hans-G?nter@21693 34 mkdir -p $fs/usr/share/polipo/www/doc
Hans-G?nter@21693 35
Hans-G?nter@21693 36 cp -a $src/polipo $fs/usr/bin
Hans-G?nter@21693 37 cp -a $src/config.sample $fs/etc/polipo/config
Hans-G?nter@21693 38 cp -a $src/forbidden.sample $fs/etc/polipo/forbidden
Hans-G?nter@21693 39 cp -a $src/localindex.html $fs/usr/share/polipo/www/index.html
Hans-G?nter@21693 40 cp -a $src/html/* $fs/usr/share/polipo/www/doc
paul@6383 41 }
paul@6383 42
paul@6383 43 # Create a disk cache.
paul@6383 44 post_install()
pascal@20319 45 {
pascal@20319 46 echo
paul@6383 47 echo -n "Creating disk cache..."
pascal@18730 48 mkdir "$1/var/cache/polipo"
pascal@18730 49 chown tux.tux "$1/var/cache/polipo"
paul@6383 50 status
paul@6383 51 }
paul@6383 52
paul@6383 53 # Remove disk cache.
paul@6383 54 post_remove()
paul@6383 55 {
paul@6383 56 echo -n "Removing disk cache..."
pascal@18730 57 rm -rf "$1/var/cache/polipo"
paul@6383 58 status
paul@6383 59 }