wok-current rev 25358

updated tinyproxy (1.10.0 -> 1.11.1)
author Hans-G?nter Theisgen
date Wed Jul 27 07:50:39 2022 +0100 (2022-07-27)
parents b5bcdb59cf13
children af9b4eb49760
files tinyproxy/description.txt tinyproxy/receipt tinyproxy/stuff/tinyproxy
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tinyproxy/description.txt	Wed Jul 27 07:50:39 2022 +0100
     1.3 @@ -0,0 +1,6 @@
     1.4 +Tinyproxy is a light-weight HTTP and HTTPS proxy daemon
     1.5 +for POSIX operating systems.
     1.6 +Designed from the ground up to be fast and yet small,
     1.7 +it is an ideal solution for use cases such as embedded
     1.8 +deployments where a full featured HTTP proxy is required,
     1.9 +but the system resources for a larger proxy are unavailable.
     2.1 --- a/tinyproxy/receipt	Wed Jul 27 06:59:00 2022 +0100
     2.2 +++ b/tinyproxy/receipt	Wed Jul 27 07:50:39 2022 +0100
     2.3 @@ -1,16 +1,17 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="tinyproxy"
     2.7 -VERSION="1.10.0"
     2.8 +VERSION="1.11.1"
     2.9  CATEGORY="network"
    2.10  SHORT_DESC="A light-weight HTTP proxy daemon for POSIX operating systems."
    2.11  MAINTAINER="slaxemulator@gmail.com"
    2.12  LICENSE="GPL2"
    2.13 +WEB_SITE="https://tinyproxy.github.io/"
    2.14 +
    2.15  TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.16 -WEB_SITE="https://tinyproxy.github.io/"
    2.17  WGET_URL="https://github.com/tinyproxy/tinyproxy/archive/$VERSION.tar.gz"
    2.18  
    2.19 -BUILD_DEPENDS="wget automake"
    2.20 +BUILD_DEPENDS="automake"
    2.21  
    2.22  current_version()
    2.23  {
    2.24 @@ -22,25 +23,34 @@
    2.25  compile_rules()
    2.26  {
    2.27  	sed -i '/docs/d;/tests$/d;s|m4macros \\|m4macros|' Makefile.*
    2.28 -	./autogen.sh
    2.29 -	./configure \
    2.30 -		--prefix=/usr \
    2.31 -		--infodir=/usr/share/info \
    2.32 -		--mandir=/usr/share/man \
    2.33 -		--sysconfdir=/etc \
    2.34 -		--localstatedir=/var \
    2.35 +
    2.36 +	export	LDFLAGS="$LDFLAGS -lrt"
    2.37 +
    2.38 +	./autogen.sh &&
    2.39 +	./configure				\
    2.40 +		--prefix=/usr			\
    2.41 +		--infodir=/usr/share/info	\
    2.42 +		--mandir=/usr/share/man		\
    2.43 +		--sysconfdir=/etc		\
    2.44 +		--localstatedir=/var		\
    2.45  		$CONFIGURE_ARGS &&
    2.46 -	make && make DESTDIR=$DESTDIR install
    2.47 +	make &&
    2.48 +	make install DESTDIR=$DESTDIR
    2.49 +
    2.50  	# Provide sane defaults
    2.51 -  	sed -i '/^#Listen/a\Listen 127.0.0.1' "$DESTDIR/etc/tinyproxy/tinyproxy.conf"
    2.52 +  	sed -i	-e '/^#Listen/a\Listen 127.0.0.1' \
    2.53 +		-e 's|#PidFile "/var/run/tinyproxy/tinyproxy.pid"|PidFile "/var/run/tinyproxy.pid"|' \
    2.54 +		"$DESTDIR/etc/tinyproxy/tinyproxy.conf"
    2.55  }
    2.56  
    2.57  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.58  genpkg_rules()
    2.59  {
    2.60 -	mkdir -p $fs/usr/share $fs/etc/init.d
    2.61 -	cp -a $install/usr/bin $fs/usr
    2.62 -	cp -a $install/usr/share/tinyproxy $fs/usr/share
    2.63 -	cp -a $install/etc/tinyproxy $fs/etc
    2.64 -	cp -a $stuff/tinyproxy $fs/etc/init.d
    2.65 +	mkdir -p $fs/usr/share
    2.66 +	mkdir -p $fs/etc/init.d
    2.67 +
    2.68 +	cp -a $install/usr/bin			$fs/usr
    2.69 +	cp -a $install/usr/share/tinyproxy	$fs/usr/share
    2.70 +	cp -a $install/etc/tinyproxy		$fs/etc
    2.71 +	cp -a $stuff/tinyproxy			$fs/etc/init.d
    2.72  }
     3.1 --- a/tinyproxy/stuff/tinyproxy	Wed Jul 27 06:59:00 2022 +0100
     3.2 +++ b/tinyproxy/stuff/tinyproxy	Wed Jul 27 07:50:39 2022 +0100
     3.3 @@ -5,47 +5,50 @@
     3.4  
     3.5  NAME=Tinyproxy
     3.6  DESC="$(_ 'Tiny Proxy')"
     3.7 -DAEMON=/usr/sbin/tinyproxy
     3.8 +DAEMON=/usr/bin/tinyproxy
     3.9  OPTION="-c"
    3.10  PIDFILE=/var/run/tinyproxy.pid
    3.11  
    3.12  case "$1" in
    3.13 -  start)
    3.14 -    if active_pidfile $PIDFILE tinyproxy ; then
    3.15 -      _ '%s is already running.' $NAME
    3.16 -      exit 1
    3.17 -    fi
    3.18 -    action 'Starting %s: %s...' "$DESC" $NAME
    3.19 -    $DAEMON $OPTION /etc/tinyproxy/tinyproxy.conf
    3.20 -    status
    3.21 -    ;;
    3.22 -  stop)
    3.23 -    if ! active_pidfile $PIDFILE tinyproxy ; then
    3.24 -      _ '%s is not running.' $NAME
    3.25 -      exit 1
    3.26 -    fi
    3.27 -    action 'Stopping %s: %s...' "$DESC" $NAME
    3.28 -    killall tinyproxy
    3.29 -    rm $PIDFILE
    3.30 -    status
    3.31 -    ;;
    3.32 -  restart)
    3.33 -    if ! active_pidfile $PIDFILE tinyproxy ; then
    3.34 -      _ '%s is not running.' $NAME
    3.35 -      exit 1
    3.36 -    fi
    3.37 -    action 'Restarting %s: %s...' "$DESC" $NAME
    3.38 -    killall tinyproxy
    3.39 -    rm $PIDFILE
    3.40 -    sleep 2
    3.41 -    $DAEMON $OPTION /etc/tinyproxy/tinyproxy.conf
    3.42 -    status
    3.43 -    ;;
    3.44 -  *)
    3.45 -    emsg "<n><b>$(_ 'Usage:')</b> $0 [start|stop|restart]"
    3.46 -    newline
    3.47 -    exit 1
    3.48 -    ;;
    3.49 +	(start)
    3.50 +		if active_pidfile $PIDFILE tinyproxy
    3.51 +		  then
    3.52 +			_ '%s is already running.' $NAME
    3.53 +			exit 1
    3.54 +		fi
    3.55 +		action 'Starting %s: %s...' "$DESC" $NAME
    3.56 +		$DAEMON $OPTION /etc/tinyproxy/tinyproxy.conf
    3.57 +		status
    3.58 +		;;
    3.59 +	(stop)
    3.60 +		if ! active_pidfile $PIDFILE tinyproxy
    3.61 +		  then
    3.62 +			_ '%s is not running.' $NAME
    3.63 +			exit 1
    3.64 +		fi
    3.65 +		action 'Stopping %s: %s...' "$DESC" $NAME
    3.66 +		killall tinyproxy
    3.67 +		rm $PIDFILE
    3.68 +		status
    3.69 +		;;
    3.70 +	(restart)
    3.71 +		if ! active_pidfile $PIDFILE tinyproxy
    3.72 +		  then
    3.73 +			_ '%s is not running.' $NAME
    3.74 +			exit 1
    3.75 +		fi
    3.76 +		action 'Restarting %s: %s...' "$DESC" $NAME
    3.77 +		killall tinyproxy
    3.78 +		rm $PIDFILE
    3.79 +		sleep 2
    3.80 +		$DAEMON $OPTION /etc/tinyproxy/tinyproxy.conf
    3.81 +		status
    3.82 +		;;
    3.83 +	(*)
    3.84 +		emsg "<n><b>$(_ 'Usage:')</b> $0 [start|stop|restart]"
    3.85 +		newline
    3.86 +		exit 1
    3.87 +		;;
    3.88  esac
    3.89  
    3.90  exit 0