wok view privoxy/receipt @ rev 16035
ARM: some more Xorg packages needed to build xorg-server-light
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Mar 09 03:09:11 2014 +0100 (2014-03-09) |
parents | 51a1ebbda768 |
children | 82816c8eb08b |
line source
1 # SliTaz package receipt.
3 PACKAGE="privoxy"
4 VERSION="3.0.21-stable"
5 CATEGORY="network"
6 SHORT_DESC="Non-caching web privacy proxy."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION-src.tar.gz"
10 WEB_SITE="http://www.privoxy.org/"
11 WGET_URL="http://downloads.sourceforge.net/ijbswa/$TARBALL"
13 DEPENDS="zlib pcre"
14 BUILD_DEPENDS="zlib-dev autoconf perl m4 coreutils"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 # Have to create privoxy user/group to be able to compile
20 adduser -s /bin/false -H -D -u 42 privoxy
21 addgroup -g 42 privoxy
23 cd $src
25 # Needs autoconf
26 autoheader
27 autoconf
29 ./configure \
30 --prefix=/usr \
31 --sysconfdir=/etc/privoxy \
32 --infodir=/usr/share/info \
33 --mandir=/usr/share/man \
34 --localstatedir=/var \
35 $CONFIGURE_ARGS &&
36 make && make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/etc/init.d $fs/usr
43 cp -a $install/usr/sbin $fs/usr
44 cp -a $install/var $fs
45 cp -a $install/etc $fs
47 # Copy daemon from stuff
48 cp $stuff/daemon-privoxy $fs/etc/init.d/privoxy
49 }
51 post_install()
52 {
53 # adduser privoxy if needed
54 if ! grep -q privoxy $1/etc/passwd; then
55 echo -n "Adding user privoxy..."
56 chroot $1/ adduser -s /bin/false -H -D -u 42 privoxy
57 status
58 fi
60 if ! grep -q privoxy $1/etc/group; then
61 echo -n "Adding group privoxy..."
62 chroot $1/ addgroup -g 42 privoxy
63 status
64 fi
66 # and change file permissions
67 echo -n "Changing file permissions..."
68 chown -R privoxy.privoxy $1/etc/privoxy
69 chown -R root.root $1/etc/privoxy/templates
70 chown root.root $1/etc/privoxy
71 chown privoxy.privoxy $1/var/log/privoxy/logfile
72 status
73 }
75 # Del user privoxy when pkg is removed.
76 post_remove()
77 {
78 deluser privoxy
79 delgroup privoxy
80 }