wok-6.x view privoxy/receipt @ rev 12543

binutils: add --with-bugurl=
author Christophe Lincoln <pankso@slitaz.org>
date Thu Apr 26 13:37:41 2012 +0200 (2012-04-26)
parents 7b13b3b4b836
children 51a1ebbda768
line source
1 # SliTaz package receipt.
3 PACKAGE="privoxy"
4 VERSION="3.0.19-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 -s /bin/false -H -D -u 42 privoxy
19 addgroup -g 42 privoxy
21 cd $src
23 # Needs autoconf
24 autoheader
25 autoconf
27 ./configure \
28 --prefix=/usr \
29 --sysconfdir=/etc/privoxy \
30 --infodir=/usr/share/info \
31 --mandir=/usr/share/man \
32 --localstatedir=/var \
33 $CONFIGURE_ARGS &&
34 make && 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 $fs/usr
41 cp -a $_pkg/usr/sbin $fs/usr
42 cp -a $_pkg/var $fs
43 cp -a $_pkg/etc $fs
45 # Copy daemon from stuff
46 cp $stuff/daemon-privoxy $fs/etc/init.d/privoxy
47 }
49 post_install()
50 {
51 # adduser privoxy if needed
52 if ! grep -q privoxy $1/etc/passwd; then
53 echo -n "Adding user privoxy..."
54 chroot $1/ adduser -s /bin/false -H -D -u 42 privoxy
55 status
56 fi
58 if ! grep -q privoxy $1/etc/group; then
59 echo -n "Adding group privoxy..."
60 chroot $1/ addgroup -g 42 privoxy
61 status
62 fi
64 # and change file permissions
65 echo -n "Changing file permissions..."
66 chown -R privoxy.privoxy $1/etc/privoxy
67 chown -R root.root $1/etc/privoxy/templates
68 chown root.root $1/etc/privoxy
69 chown privoxy.privoxy $1/var/log/privoxy/logfile
70 status
71 }
73 # Del user privoxy when pkg is removed.
74 post_remove()
75 {
76 deluser privoxy
77 delgroup privoxy
78 }