wok-current view polipo/receipt @ rev 23521
updated python-paho-mqtt (1.3.1 -> 1.5.0)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 06 13:53:11 2020 +0100 (2020-04-06) |
parents | 970c5ec9a60a |
children | 5ea0ce1cecc0 |
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 # Rules to configure and make the package.
18 compile_rules()
19 {
20 make all
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr/bin
27 mkdir -p $fs/etc/polipo
28 mkdir -p $fs/usr/share/polipo/www/doc
30 cp -a $src/polipo $fs/usr/bin
31 cp -a $src/config.sample $fs/etc/polipo/config
32 cp -a $src/forbidden.sample $fs/etc/polipo/forbidden
33 cp -a $src/localindex.html $fs/usr/share/polipo/www/index.html
34 cp -a $src/html/* $fs/usr/share/polipo/www/doc
35 }
37 # Create a disk cache.
38 post_install()
39 {
40 echo
41 echo -n "Creating disk cache..."
42 mkdir "$1/var/cache/polipo"
43 chown tux.tux "$1/var/cache/polipo"
44 status
45 }
47 # Remove disk cache.
48 post_remove()
49 {
50 echo -n "Removing disk cache..."
51 rm -rf "$1/var/cache/polipo"
52 status
53 }