wok diff privoxy/receipt @ rev 25438

Update some web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Sep 01 11:12:31 2022 +0000 (21 months ago)
parents 080c1dff8494
children 29df00e1e19d
line diff
     1.1 --- a/privoxy/receipt	Tue Feb 08 12:15:27 2022 +0000
     1.2 +++ b/privoxy/receipt	Thu Sep 01 11:12:31 2022 +0000
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="privoxy"
     1.7 -VERSION="3.0.28"
     1.8 +VERSION="3.0.33"
     1.9  CATEGORY="network"
    1.10  SHORT_DESC="Non-caching web privacy proxy."
    1.11  MAINTAINER="paul@slitaz.org"
    1.12 @@ -13,6 +13,7 @@
    1.13  
    1.14  DEPENDS="pcre zlib"
    1.15  BUILD_DEPENDS="autoconf coreutils m4 perl zlib-dev"
    1.16 +
    1.17  CONFIG_FILES="/etc/privoxy/config"
    1.18  
    1.19  # What is the latest version available today?
    1.20 @@ -51,25 +52,27 @@
    1.21  	mkdir -p $fs/etc/init.d
    1.22  	mkdir -p $fs/usr
    1.23  
    1.24 -	cp -a $install/usr/sbin	$fs/usr
    1.25 -	cp -a $install/var	$fs
    1.26 -	cp -a $install/etc	$fs
    1.27 +	cook_copy_folders	etc
    1.28 +	cook_copy_folders	sbin
    1.29 +	cook_copy_folders	var
    1.30  
    1.31  	# Copy daemon from stuff
    1.32 -	cp $stuff/daemon-privoxy $fs/etc/init.d/privoxy
    1.33 +	cp $stuff/daemon-privoxy	$fs/etc/init.d/privoxy
    1.34  }
    1.35  
    1.36  post_install()
    1.37  {
    1.38  	# adduser privoxy if needed
    1.39 -	if ! grep -q privoxy "$1/etc/passwd"; then
    1.40 +	if ! grep -q privoxy "$1/etc/passwd"
    1.41 +	  then
    1.42  		echo
    1.43  		echo -n "Adding user privoxy..."
    1.44  		chroot "$1/" adduser -s /bin/false -H -D -u 42 privoxy
    1.45  		status
    1.46  	fi
    1.47  
    1.48 -	if ! grep -q privoxy "$1/etc/group"; then
    1.49 +	if ! grep -q privoxy "$1/etc/group"
    1.50 +	  then
    1.51  		echo
    1.52  		echo -n "Adding group privoxy..."
    1.53  		chroot "$1/" addgroup -g 42 privoxy
    1.54 @@ -79,16 +82,17 @@
    1.55  	# and change file permissions
    1.56  	echo
    1.57  	echo -n "Changing file permissions..."
    1.58 -	chroot "$1/" chown -R privoxy.privoxy /etc/privoxy
    1.59 -	chown -R root.root "$1/etc/privoxy/templates"
    1.60 -	chown root.root "$1/etc/privoxy"
    1.61 -	chroot "$1/" chown privoxy.privoxy /var/log/privoxy/logfile
    1.62 +	chroot "$1/" chown -R	privoxy.privoxy	/etc/privoxy
    1.63 +	chown -R root.root			"$1/etc/privoxy/templates"
    1.64 +	chown root.root				"$1/etc/privoxy"
    1.65 +	chroot "$1/" chown	privoxy.privoxy	/var/log/privoxy/logfile
    1.66  	status
    1.67  }
    1.68  
    1.69 -# Del user privoxy when pkg is removed.
    1.70  post_remove()
    1.71  {
    1.72 -	deluser privoxy
    1.73 -	delgroup privoxy
    1.74 +	echo
    1.75 +	echo -n "Removing user and group privoxy..."
    1.76 +	deluser		privoxy
    1.77 +	status
    1.78  }