wok view privoxy/receipt @ rev 8143
aufs: aufs_type.h file will be install in aufs instead of linux-module-headers. It needed to be in /usr/include/linux folder anyways.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Jan 25 00:03:50 2011 +0000 (2011-01-25) |
parents | aa3552f39564 |
children | 505eee76b73b |
line source
1 # SliTaz package receipt.
3 PACKAGE="privoxy"
4 VERSION="3.0.17-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
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 && make DESTDIR=$PWD/_pkg install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/etc/init.d $fs/usr
40 cp -a $_pkg/usr/sbin $fs/usr
41 cp -a $_pkg/var $fs
42 cp -a $_pkg/etc $fs
44 # Copy daemon from /stuff
45 cp stuff/daemon-privoxy $fs/etc/init.d/privoxy
46 }
48 post_install()
49 {
50 # adduser privoxy if needed
51 if ! grep -q privoxy $1/etc/passwd; then
52 echo -n "Adding user privoxy..."
53 chroot $1/ adduser -s /bin/false -H -D -u 42 privoxy
54 status
55 fi
57 # and change file permissions
58 echo -n "Changing file permissions..."
59 chown -R root.privoxy $1/etc/privoxy
60 chown -R root.root $1/etc/privoxy/templates
61 chown root.root $1/etc/privoxy
62 chown root.privoxy $1/var/log/privoxy/logfile
63 status
64 }
66 # Del user privoxy when pkg is removed.
67 post_remove()
68 {
69 deluser privoxy
70 }