wok-6.x view polipo/receipt @ rev 24313
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 21 10:59:24 2022 +0000 (2022-01-21) |
parents | 5ea0ce1cecc0 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="polipo"
4 VERSION="1.1.1"
5 CATEGORY="network"
6 SHORT_DESC="Small and fast caching web proxy."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://www.irif.fr/~jch/software/polipo/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/jech/$PACKAGE/archive/$TARBALL"
14 DEPENDS=""
15 BUILD_DEPENDS="texinfo"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/polipo-\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 make all
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/bin
33 mkdir -p $fs/etc/polipo
34 mkdir -p $fs/usr/share/polipo/www/doc
36 cp -a $src/polipo $fs/usr/bin
37 cp -a $src/config.sample $fs/etc/polipo/config
38 cp -a $src/forbidden.sample $fs/etc/polipo/forbidden
39 cp -a $src/localindex.html $fs/usr/share/polipo/www/index.html
40 cp -a $src/html/* $fs/usr/share/polipo/www/doc
41 }
43 # Create a disk cache.
44 post_install()
45 {
46 echo
47 echo -n "Creating disk cache..."
48 mkdir "$1/var/cache/polipo"
49 chown tux.tux "$1/var/cache/polipo"
50 status
51 }
53 # Remove disk cache.
54 post_remove()
55 {
56 echo -n "Removing disk cache..."
57 rm -rf "$1/var/cache/polipo"
58 status
59 }