wok-current annotate privoxy/receipt @ rev 7247
Up privoxy (3.0.17)
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sun Nov 14 14:17:18 2010 +0000 (2010-11-14) |
parents | 8af11abf492a |
children | aa3552f39564 |
rev | line source |
---|---|
paul@2275 | 1 # SliTaz package receipt. |
paul@2275 | 2 |
paul@2275 | 3 PACKAGE="privoxy" |
paul@7247 | 4 VERSION="3.0.17-stable" |
paul@2275 | 5 CATEGORY="network" |
paul@2275 | 6 SHORT_DESC="Non-caching web privacy proxy." |
paul@2275 | 7 MAINTAINER="paul@slitaz.org" |
pascal@2456 | 8 DEPENDS="zlib pcre" |
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@7247 | 18 adduser privoxy -s /bin/false -H -D |
erjo@5885 | 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 \ |
pascal@4211 | 31 --localstatedir=/var \ |
pascal@2456 | 32 $CONFIGURE_ARGS && |
paul@7247 | 33 make && 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@4836 | 39 mkdir -p $fs/etc/init.d $fs/usr |
paul@4373 | 40 cp -a $_pkg/usr/sbin $fs/usr |
paul@4836 | 41 cp -a $_pkg/var $fs |
paul@4836 | 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@7247 | 48 pre_install() |
paul@2275 | 49 { |
paul@7247 | 50 # adduser privoxy if needed |
paul@7247 | 51 if ! grep -q privoxy $1/etc/passwd; then |
paul@7247 | 52 echo -n "Adding user privoxy..." |
paul@7247 | 53 chroot $1/ adduser privoxy -s /bin/false -H -D |
paul@7247 | 54 status |
paul@7247 | 55 fi |
paul@2275 | 56 } |
paul@7247 | 57 |
paul@7247 | 58 # Del user privoxy when pkg is removed. |
paul@7247 | 59 post_remove() |
paul@7247 | 60 { |
paul@7247 | 61 deluser privoxy |
paul@7247 | 62 } |