wok-stable annotate privoxy/receipt @ rev 2406
unixODBC, usbip, vim, vorbis-tools, xfsprogs, zaptel : update depends
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Mar 10 09:41:01 2009 +0000 (2009-03-10) |
parents | 10ef56b7f468 |
children | d1aba649375c |
rev | line source |
---|---|
paul@2275 | 1 # SliTaz package receipt. |
paul@2275 | 2 |
paul@2275 | 3 PACKAGE="privoxy" |
paul@2314 | 4 VERSION="3.0.11-stable" |
paul@2275 | 5 CATEGORY="network" |
paul@2275 | 6 SHORT_DESC="Non-caching web privacy proxy." |
paul@2275 | 7 MAINTAINER="paul@slitaz.org" |
paul@2275 | 8 DEPENDS="zlib" |
paul@2275 | 9 BUILD_DEPENDS="zlib-dev autoconf perl m4 coreutils" |
paul@2275 | 10 TARBALL="$PACKAGE-$VERSION-src.tar.gz" |
paul@2275 | 11 WEB_SITE="http://www.privoxy.org/" |
paul@2275 | 12 WGET_URL="http://downloads.sourceforge.net/ijbswa/$TARBALL" |
paul@2275 | 13 |
paul@2275 | 14 # Rules to configure and make the package. |
paul@2275 | 15 compile_rules() |
paul@2275 | 16 { |
paul@2275 | 17 # Have to create privoxy user/group to be able to compile |
paul@2275 | 18 adduser privoxy -s /bin/false -H -D -S |
paul@2275 | 19 |
paul@2275 | 20 cd $src |
paul@2275 | 21 |
paul@2275 | 22 # Needs autoconf |
paul@2275 | 23 autoheader |
paul@2275 | 24 autoconf |
paul@2275 | 25 |
paul@2275 | 26 ./configure \ |
paul@2275 | 27 --prefix=/usr \ |
paul@2275 | 28 --sysconfdir=/etc/privoxy \ |
paul@2275 | 29 --infodir=/usr/share/info \ |
paul@2275 | 30 --mandir=/usr/share/man \ |
paul@2275 | 31 $CONFIGURE_ARGS |
paul@2275 | 32 make |
paul@2275 | 33 make DESTDIR=$PWD/_pkg install |
paul@2275 | 34 } |
paul@2275 | 35 |
paul@2275 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@2275 | 37 genpkg_rules() |
paul@2275 | 38 { |
paul@2275 | 39 mkdir -p $fs/usr/var $fs/etc/init.d |
paul@2275 | 40 cp -a $_pkg/usr/sbin $fs/usr |
paul@2275 | 41 cp -a $_pkg/usr/var/* $fs/usr/var |
paul@2275 | 42 cp -a $_pkg/etc $fs |
paul@2275 | 43 |
paul@2275 | 44 # Copy daemon from /stuff |
paul@2275 | 45 cp stuff/daemon-privoxy $fs/etc/init.d/privoxy |
paul@2275 | 46 } |
paul@2275 | 47 |
paul@2275 | 48 post_install() |
paul@2275 | 49 { |
paul@2275 | 50 # adduser privoxy if needed |
paul@2275 | 51 if ! grep -q privoxy $1/etc/passwd; then |
paul@2275 | 52 echo -n "Adding user privoxy..." |
paul@2275 | 53 chroot $1/ adduser privoxy -s /bin/false -H -D -S |
paul@2275 | 54 status |
paul@2275 | 55 fi |
paul@2314 | 56 |
paul@2314 | 57 # And change file permissions |
paul@2314 | 58 echo -n "Changing file permissions..." |
paul@2314 | 59 chown -R root.privoxy /etc/privoxy |
paul@2314 | 60 chown -R root.root /etc/privoxy/templates |
paul@2314 | 61 chown -R root.privoxy /usr/var/log/privoxy |
paul@2314 | 62 status |
paul@2275 | 63 } |
paul@2275 | 64 |
paul@2275 | 65 # Del user privoxy when pkg is removed. |
paul@2275 | 66 post_remove() |
paul@2275 | 67 { |
paul@2275 | 68 deluser privoxy |
paul@2275 | 69 } |