wok 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 45b433c0ec4d
children b9212f30f7a6
files privoxy/receipt
line diff
     1.1 --- a/privoxy/receipt	Sun Nov 14 03:39:02 2010 +0000
     1.2 +++ b/privoxy/receipt	Sun Nov 14 14:17:18 2010 +0000
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="privoxy"
     1.7 -VERSION="3.0.16-stable"
     1.8 +VERSION="3.0.17-stable"
     1.9  CATEGORY="network"
    1.10  SHORT_DESC="Non-caching web privacy proxy."
    1.11  MAINTAINER="paul@slitaz.org"
    1.12 @@ -15,7 +15,7 @@
    1.13  compile_rules()
    1.14  {
    1.15  	# Have to create privoxy user/group to be able to compile
    1.16 -	# adduser privoxy -s /bin/false -H -D -S
    1.17 +	adduser privoxy -s /bin/false -H -D
    1.18  	
    1.19  	cd $src
    1.20  
    1.21 @@ -29,11 +29,8 @@
    1.22  		--infodir=/usr/share/info \
    1.23  		--mandir=/usr/share/man \
    1.24  		--localstatedir=/var \
    1.25 -		--with-user=nobody \
    1.26 -		--with-group=nogroup \
    1.27  		$CONFIGURE_ARGS &&
    1.28 -	make &&
    1.29 -	make DESTDIR=$PWD/_pkg install
    1.30 +	make && make DESTDIR=$PWD/_pkg install
    1.31  }
    1.32  
    1.33  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.34 @@ -48,12 +45,18 @@
    1.35  	cp stuff/daemon-privoxy $fs/etc/init.d/privoxy
    1.36  }
    1.37  
    1.38 -post_install()
    1.39 +pre_install()
    1.40  {
    1.41 -	# And change file permissions
    1.42 -	echo -n "Changing file permissions..."
    1.43 -	chown -R root.nogroup $1/etc/privoxy
    1.44 -	chown -R root.root $1/etc/privoxy/templates
    1.45 -	chown -R root.nogroup $1/var/log/privoxy
    1.46 -	status
    1.47 +	# adduser privoxy if needed
    1.48 +	if ! grep -q privoxy $1/etc/passwd; then
    1.49 +		echo -n "Adding user privoxy..."
    1.50 +		chroot $1/ adduser privoxy -s /bin/false -H -D
    1.51 +		status
    1.52 +	fi
    1.53  }
    1.54 +
    1.55 +# Del user privoxy when pkg is removed.
    1.56 +post_remove()
    1.57 +{
    1.58 +	deluser privoxy
    1.59 +}