wok-next view privoxy/receipt @ rev 20949

Fix homepages
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Sep 01 16:21:51 2018 +0300 (2018-09-01)
parents 757d032c55c7
children f48456621a9d
line source
1 # SliTaz package receipt v2.
3 PACKAGE="privoxy"
4 VERSION="3.0.23-stable"
5 CATEGORY="network"
6 SHORT_DESC="Non-caching web privacy proxy"
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.privoxy.org/"
11 TARBALL="$PACKAGE-$VERSION-src.tar.gz"
12 WGET_URL="http://downloads.sourceforge.net/ijbswa/$TARBALL"
14 BUILD_DEPENDS="zlib-dev autoconf perl m4 coreutils"
16 compile_rules() {
17 # Have to create privoxy user/group to be able to compile
18 adduser -s /bin/false -H -D -u 42 privoxy
19 addgroup -g 42 privoxy
21 autoheader
22 autoconf
24 ./configure \
25 --sysconfdir=/etc/privoxy \
26 $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$DESTDIR install || return 1
30 install -Dm755 $stuff/daemon-privoxy $install/etc/init.d/privoxy
31 }
33 genpkg_rules() {
34 copy @std
35 DEPENDS="zlib"
36 }
38 post_install() {
39 # adduser privoxy if needed
40 if ! grep -q privoxy "$1/etc/passwd"; then
41 chroot "$1/" adduser -s /bin/false -H -D -u 42 privoxy
42 fi
44 if ! grep -q privoxy "$1/etc/group"; then
45 chroot "$1/" addgroup -g 42 privoxy
46 fi
48 # and change file permissions
49 chroot "$1/" chown -R privoxy.privoxy /etc/privoxy
50 chown -R root.root "$1/etc/privoxy/templates"
51 chown root.root "$1/etc/privoxy"
52 chroot "$1/" chown privoxy.privoxy /var/log/privoxy/logfile
53 }
55 # Del user privoxy when pkg is removed.
56 post_remove() {
57 deluser privoxy
58 delgroup privoxy
59 }