wok view privoxy/receipt @ rev 4230

Fix: patch xfe to build with gcc-4.x
author Christophe Lincoln <pankso@slitaz.org>
date Thu Sep 24 15:03:32 2009 +0200 (2009-09-24)
parents 8083c3b9be4f
children af04cf41d5c9
line source
1 # SliTaz package receipt.
3 PACKAGE="privoxy"
4 VERSION="3.0.12-stable"
5 CATEGORY="network"
6 SHORT_DESC="Non-caching web privacy proxy."
7 MAINTAINER="paul@slitaz.org"
8 DEPENDS="zlib pcre"
9 BUILD_DEPENDS="zlib-dev autoconf perl m4 coreutils"
10 TARBALL="$PACKAGE-$VERSION-src.tar.gz"
11 WEB_SITE="http://www.privoxy.org/"
12 WGET_URL="http://downloads.sourceforge.net/ijbswa/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 # Have to create privoxy user/group to be able to compile
18 adduser privoxy -s /bin/false -H -D -S
20 cd $src
22 # Needs autoconf
23 autoheader
24 autoconf
26 ./configure \
27 --prefix=/usr \
28 --sysconfdir=/etc/privoxy \
29 --infodir=/usr/share/info \
30 --mandir=/usr/share/man \
31 --localstatedir=/var \
32 $CONFIGURE_ARGS &&
33 make &&
34 make DESTDIR=$PWD/_pkg install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/etc/init.d
41 cp -a $_pkg/* $fs/usr
43 # Copy daemon from /stuff
44 cp stuff/daemon-privoxy $fs/etc/init.d/privoxy
45 }
47 post_install()
48 {
49 # adduser privoxy if needed
50 if ! grep -q privoxy $1/etc/passwd; then
51 echo -n "Adding user privoxy..."
52 chroot $1/ adduser privoxy -s /bin/false -H -D -S
53 status
54 fi
56 # And change file permissions
57 echo -n "Changing file permissions..."
58 chown -R root.privoxy /etc/privoxy
59 chown -R root.root /etc/privoxy/templates
60 chown -R root.privoxy /var/log/privoxy
61 status
62 }
64 # Del user privoxy when pkg is removed.
65 post_remove()
66 {
67 deluser privoxy
68 }