# HG changeset patch # User Hans-G?nter Theisgen # Date 1658904639 -3600 # Node ID 4a5dc3aa2af968a4c84f37b56d2ccbd80a864ca1 # Parent b5bcdb59cf1348ebb2fc3b97cbee6e09ed83d570 updated tinyproxy (1.10.0 -> 1.11.1) diff -r b5bcdb59cf13 -r 4a5dc3aa2af9 tinyproxy/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tinyproxy/description.txt Wed Jul 27 07:50:39 2022 +0100 @@ -0,0 +1,6 @@ +Tinyproxy is a light-weight HTTP and HTTPS proxy daemon +for POSIX operating systems. +Designed from the ground up to be fast and yet small, +it is an ideal solution for use cases such as embedded +deployments where a full featured HTTP proxy is required, +but the system resources for a larger proxy are unavailable. diff -r b5bcdb59cf13 -r 4a5dc3aa2af9 tinyproxy/receipt --- a/tinyproxy/receipt Wed Jul 27 06:59:00 2022 +0100 +++ b/tinyproxy/receipt Wed Jul 27 07:50:39 2022 +0100 @@ -1,16 +1,17 @@ # SliTaz package receipt. PACKAGE="tinyproxy" -VERSION="1.10.0" +VERSION="1.11.1" CATEGORY="network" SHORT_DESC="A light-weight HTTP proxy daemon for POSIX operating systems." MAINTAINER="slaxemulator@gmail.com" LICENSE="GPL2" +WEB_SITE="https://tinyproxy.github.io/" + TARBALL="$PACKAGE-$VERSION.tar.gz" -WEB_SITE="https://tinyproxy.github.io/" WGET_URL="https://github.com/tinyproxy/tinyproxy/archive/$VERSION.tar.gz" -BUILD_DEPENDS="wget automake" +BUILD_DEPENDS="automake" current_version() { @@ -22,25 +23,34 @@ compile_rules() { sed -i '/docs/d;/tests$/d;s|m4macros \\|m4macros|' Makefile.* - ./autogen.sh - ./configure \ - --prefix=/usr \ - --infodir=/usr/share/info \ - --mandir=/usr/share/man \ - --sysconfdir=/etc \ - --localstatedir=/var \ + + export LDFLAGS="$LDFLAGS -lrt" + + ./autogen.sh && + ./configure \ + --prefix=/usr \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + --sysconfdir=/etc \ + --localstatedir=/var \ $CONFIGURE_ARGS && - make && make DESTDIR=$DESTDIR install + make && + make install DESTDIR=$DESTDIR + # Provide sane defaults - sed -i '/^#Listen/a\Listen 127.0.0.1' "$DESTDIR/etc/tinyproxy/tinyproxy.conf" + sed -i -e '/^#Listen/a\Listen 127.0.0.1' \ + -e 's|#PidFile "/var/run/tinyproxy/tinyproxy.pid"|PidFile "/var/run/tinyproxy.pid"|' \ + "$DESTDIR/etc/tinyproxy/tinyproxy.conf" } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/share $fs/etc/init.d - cp -a $install/usr/bin $fs/usr - cp -a $install/usr/share/tinyproxy $fs/usr/share - cp -a $install/etc/tinyproxy $fs/etc - cp -a $stuff/tinyproxy $fs/etc/init.d + mkdir -p $fs/usr/share + mkdir -p $fs/etc/init.d + + cp -a $install/usr/bin $fs/usr + cp -a $install/usr/share/tinyproxy $fs/usr/share + cp -a $install/etc/tinyproxy $fs/etc + cp -a $stuff/tinyproxy $fs/etc/init.d } diff -r b5bcdb59cf13 -r 4a5dc3aa2af9 tinyproxy/stuff/tinyproxy --- a/tinyproxy/stuff/tinyproxy Wed Jul 27 06:59:00 2022 +0100 +++ b/tinyproxy/stuff/tinyproxy Wed Jul 27 07:50:39 2022 +0100 @@ -5,47 +5,50 @@ NAME=Tinyproxy DESC="$(_ 'Tiny Proxy')" -DAEMON=/usr/sbin/tinyproxy +DAEMON=/usr/bin/tinyproxy OPTION="-c" PIDFILE=/var/run/tinyproxy.pid case "$1" in - start) - if active_pidfile $PIDFILE tinyproxy ; then - _ '%s is already running.' $NAME - exit 1 - fi - action 'Starting %s: %s...' "$DESC" $NAME - $DAEMON $OPTION /etc/tinyproxy/tinyproxy.conf - status - ;; - stop) - if ! active_pidfile $PIDFILE tinyproxy ; then - _ '%s is not running.' $NAME - exit 1 - fi - action 'Stopping %s: %s...' "$DESC" $NAME - killall tinyproxy - rm $PIDFILE - status - ;; - restart) - if ! active_pidfile $PIDFILE tinyproxy ; then - _ '%s is not running.' $NAME - exit 1 - fi - action 'Restarting %s: %s...' "$DESC" $NAME - killall tinyproxy - rm $PIDFILE - sleep 2 - $DAEMON $OPTION /etc/tinyproxy/tinyproxy.conf - status - ;; - *) - emsg "$(_ 'Usage:') $0 [start|stop|restart]" - newline - exit 1 - ;; + (start) + if active_pidfile $PIDFILE tinyproxy + then + _ '%s is already running.' $NAME + exit 1 + fi + action 'Starting %s: %s...' "$DESC" $NAME + $DAEMON $OPTION /etc/tinyproxy/tinyproxy.conf + status + ;; + (stop) + if ! active_pidfile $PIDFILE tinyproxy + then + _ '%s is not running.' $NAME + exit 1 + fi + action 'Stopping %s: %s...' "$DESC" $NAME + killall tinyproxy + rm $PIDFILE + status + ;; + (restart) + if ! active_pidfile $PIDFILE tinyproxy + then + _ '%s is not running.' $NAME + exit 1 + fi + action 'Restarting %s: %s...' "$DESC" $NAME + killall tinyproxy + rm $PIDFILE + sleep 2 + $DAEMON $OPTION /etc/tinyproxy/tinyproxy.conf + status + ;; + (*) + emsg "$(_ 'Usage:') $0 [start|stop|restart]" + newline + exit 1 + ;; esac exit 0