wok-stable annotate privoxy/receipt @ rev 6413

Up imagemagick (6.6.4-6)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Sep 25 17:22:56 2010 +0200 (2010-09-25)
parents 3516ecf32350
children e6ebd77ac2ff
rev   line source
paul@2275 1 # SliTaz package receipt.
paul@2275 2
paul@2275 3 PACKAGE="privoxy"
paul@5127 4 VERSION="3.0.16-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
erjo@5885 18 # adduser privoxy -s /bin/false -H -D -S
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 \
erjo@5885 32 --with-user=nobody \
erjo@5885 33 --with-group=nogroup \
pascal@2456 34 $CONFIGURE_ARGS &&
pascal@2456 35 make &&
paul@2275 36 make DESTDIR=$PWD/_pkg install
paul@2275 37 }
paul@2275 38
paul@2275 39 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@2275 40 genpkg_rules()
paul@2275 41 {
paul@4836 42 mkdir -p $fs/etc/init.d $fs/usr
paul@4373 43 cp -a $_pkg/usr/sbin $fs/usr
paul@4836 44 cp -a $_pkg/var $fs
paul@4836 45 cp -a $_pkg/etc $fs
paul@2275 46
paul@2275 47 # Copy daemon from /stuff
paul@2275 48 cp stuff/daemon-privoxy $fs/etc/init.d/privoxy
paul@2275 49 }
paul@2275 50
paul@2275 51 post_install()
paul@2275 52 {
paul@2314 53 # And change file permissions
paul@2314 54 echo -n "Changing file permissions..."
pascal@5886 55 chown -R root.nogroup $1/etc/privoxy
pascal@5886 56 chown -R root.root $1/etc/privoxy/templates
pascal@5886 57 chown -R root.nogroup $1/var/log/privoxy
paul@2314 58 status
paul@2275 59 }