wok-next view privoxy/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents f48456621a9d
children
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="$SF_MIRROR/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=$install 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 }