Fri Oct 12 13:57:46 2018 UTC ()
tinyproxy: updated to 1.10.0

Tinyproxy version 1.10.0

Major changes in this release
-----------------------------
Add support for basic HTTP authentication
Add socks upstream support
Log to stdout if no logfile is specified
Activate reverse proxy by default
Support bind with transparent mode
Install tinyproxy to bin/ instead of sbin/
Ship manpages as part of distribution tarball
Allow multiple listen statements in the configuration
Coverity fixes
Simplified configure and build
Improved selftest environment

Included security fixes
-----------------------
Fix CVE-2017-11747: Create PID file before dropping privileges.
Fix CVE-2012-3505: algorithmic complexity DoS in hashmap

Bugfixes
--------
fix algorithmic complexity DoS in hashmap
fix CONNECT requests with IPv6 literal addresses as host
fix invalid free for GET requests to ipv6 literal address
conf: Allow multiple Listen statements in the config
allow listening on multiple families when no Listen is provided in config
Drop supplementary groups
build: fix build with autoconf >= 2.69
Move files installed in /etc/ to /etc/tinyproxy/
Fix crash (infinite loop) when writing to log file fails
Fix bug in ACL netmask generation
Fix FilterURLs with transparent proxy support
Fix upstream proxy support
Create log and pid files after we drop privs
Don't recompile regular expressions
Use output of id instead of $USER
keep track of error codes in return codes in tests


(adam)
diff -r1.38 -r1.39 pkgsrc/www/tinyproxy/Makefile
diff -r1.7 -r1.8 pkgsrc/www/tinyproxy/PLIST
diff -r1.12 -r1.13 pkgsrc/www/tinyproxy/distinfo
diff -r1.3 -r1.4 pkgsrc/www/tinyproxy/files/tinyproxy.sh
diff -r1.2 -r0 pkgsrc/www/tinyproxy/patches/patch-configure
diff -r1.1 -r1.2 pkgsrc/www/tinyproxy/patches/patch-etc_Makefile.in
diff -r1.2 -r1.3 pkgsrc/www/tinyproxy/patches/patch-etc_tinyproxy.conf.in

cvs diff -r1.38 -r1.39 pkgsrc/www/tinyproxy/Makefile (expand / switch to unified diff)

--- pkgsrc/www/tinyproxy/Makefile 2018/06/21 11:31:33 1.38
+++ pkgsrc/www/tinyproxy/Makefile 2018/10/12 13:57:46 1.39
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1# $NetBSD: Makefile,v 1.38 2018/06/21 11:31:33 adam Exp $ 1# $NetBSD: Makefile,v 1.39 2018/10/12 13:57:46 adam Exp $
2 2
3DISTNAME= tinyproxy-1.8.4 3DISTNAME= tinyproxy-1.10.0
4CATEGORIES= www 4CATEGORIES= www
5MASTER_SITES= ${MASTER_SITE_GITHUB:=tinyproxy/} 5MASTER_SITES= ${MASTER_SITE_GITHUB:=tinyproxy/}
6GITHUB_RELEASE= ${PKGVERSION_NOREV} 6GITHUB_RELEASE= ${PKGVERSION_NOREV}
7EXTRACT_SUFX= .tar.xz 7EXTRACT_SUFX= .tar.xz
8 8
9MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= https://tinyproxy.github.io/ 10HOMEPAGE= https://tinyproxy.github.io/
11COMMENT= Lightweight HTTP/SSL proxy 11COMMENT= Lightweight HTTP/SSL proxy
12LICENSE= gnu-gpl-v2 12LICENSE= gnu-gpl-v2
13 13
14BUILD_DEPENDS+= asciidoc-[0-9]*:../../textproc/asciidoc 14BUILD_DEPENDS+= asciidoc-[0-9]*:../../textproc/asciidoc
15BUILD_DEFS+= VARBASE 15BUILD_DEFS+= VARBASE
16 16
@@ -36,27 +36,27 @@ FILES_SUBST+= TINYPROXY_GROUP=${TINYPRO @@ -36,27 +36,27 @@ FILES_SUBST+= TINYPROXY_GROUP=${TINYPRO
36EGDIR= ${PREFIX}/share/examples/tinyproxy 36EGDIR= ${PREFIX}/share/examples/tinyproxy
37CONF_FILES= ${EGDIR}/tinyproxy.conf.default ${PKG_SYSCONFDIR}/tinyproxy.conf 37CONF_FILES= ${EGDIR}/tinyproxy.conf.default ${PKG_SYSCONFDIR}/tinyproxy.conf
38 38
39SUBST_CLASSES+= docs 39SUBST_CLASSES+= docs
40SUBST_STAGE.docs= pre-configure 40SUBST_STAGE.docs= pre-configure
41SUBST_FILES.docs= docs/man5/tinyproxy.conf.txt.in docs/man8/tinyproxy.txt.in etc/tinyproxy.conf.in 41SUBST_FILES.docs= docs/man5/tinyproxy.conf.txt.in docs/man8/tinyproxy.txt.in etc/tinyproxy.conf.in
42SUBST_SED.docs+= -e 's,@TINYPROXY_USER@,${TINYPROXY_USER},g' 42SUBST_SED.docs+= -e 's,@TINYPROXY_USER@,${TINYPROXY_USER},g'
43SUBST_SED.docs+= -e 's,@TINYPROXY_GROUP@,${TINYPROXY_GROUP},g' 43SUBST_SED.docs+= -e 's,@TINYPROXY_GROUP@,${TINYPROXY_GROUP},g'
44SUBST_SED.docs+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g' 44SUBST_SED.docs+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
45SUBST_SED.docs+= -e 's,@VARBASE@,${VARBASE},g' 45SUBST_SED.docs+= -e 's,@VARBASE@,${VARBASE},g'
46 46
47INSTALLATION_DIRS= ${EGDIR} share/doc/tinyproxy 47INSTALLATION_DIRS= ${EGDIR} share/doc/tinyproxy
48 48
49PLIST_SUBST+= VARBASE=${VARBASE:Q} 49PLIST_SUBST+= VARBASE=${VARBASE}
50PLIST_SUBST+= TINYPROXY_USER=${TINYPROXY_USER:Q} 50PLIST_SUBST+= TINYPROXY_USER=${TINYPROXY_USER:Q}
51PLIST_SUBST+= TINYPROXY_GROUP=${TINYPROXY_GROUP:Q} 51PLIST_SUBST+= TINYPROXY_GROUP=${TINYPROXY_GROUP:Q}
52PLIST_SUBST+= MKDIR=${MKDIR:Q} RMDIR=${RMDIR:Q} TRUE=${TRUE:Q} 52PLIST_SUBST+= MKDIR=${MKDIR:Q} RMDIR=${RMDIR:Q} TRUE=${TRUE:Q}
53PLIST_SUBST+= CHMOD=${CHMOD:Q} CHOWN=${CHOWN:Q} 53PLIST_SUBST+= CHMOD=${CHMOD:Q} CHOWN=${CHOWN:Q}
54 54
55post-install: 55post-install:
56 ${INSTALL_DATA} ${WRKSRC}/etc/tinyproxy.conf \ 56 ${INSTALL_DATA} ${WRKSRC}/etc/tinyproxy.conf \
57 ${DESTDIR}${EGDIR}/tinyproxy.conf.default 57 ${DESTDIR}${EGDIR}/tinyproxy.conf.default
58 ${INSTALL_DATA} ${WRKSRC}/docs/filter-howto.txt \ 58 ${INSTALL_DATA} ${WRKSRC}/docs/filter-howto.txt \
59 ${DESTDIR}${PREFIX}/share/doc/tinyproxy/ 59 ${DESTDIR}${PREFIX}/share/doc/tinyproxy/
60 60
61.include "../../security/openssl/buildlink3.mk" 61.include "../../security/openssl/buildlink3.mk"
62.include "../../mk/bsd.pkg.mk" 62.include "../../mk/bsd.pkg.mk"

cvs diff -r1.7 -r1.8 pkgsrc/www/tinyproxy/PLIST (expand / switch to unified diff)

--- pkgsrc/www/tinyproxy/PLIST 2017/02/18 05:59:23 1.7
+++ pkgsrc/www/tinyproxy/PLIST 2018/10/12 13:57:46 1.8
@@ -1,17 +1,21 @@ @@ -1,17 +1,21 @@
1@comment $NetBSD: PLIST,v 1.7 2017/02/18 05:59:23 nonaka Exp $ 1@comment $NetBSD: PLIST,v 1.8 2018/10/12 13:57:46 adam Exp $
 2bin/tinyproxy
2man/man5/tinyproxy.conf.5 3man/man5/tinyproxy.conf.5
3man/man8/tinyproxy.8 4man/man8/tinyproxy.8
4sbin/tinyproxy 5share/doc/tinyproxy/AUTHORS
 6share/doc/tinyproxy/NEWS
 7share/doc/tinyproxy/README
 8share/doc/tinyproxy/README.md
5share/doc/tinyproxy/filter-howto.txt 9share/doc/tinyproxy/filter-howto.txt
6share/examples/tinyproxy/tinyproxy.conf.default 10share/examples/tinyproxy/tinyproxy.conf.default
7share/tinyproxy/debug.html 11share/tinyproxy/debug.html
8share/tinyproxy/default.html 12share/tinyproxy/default.html
9share/tinyproxy/stats.html 13share/tinyproxy/stats.html
10@exec ${MKDIR} ${VARBASE}/log/tinyproxy || ${TRUE} 14@exec ${MKDIR} ${VARBASE}/log/tinyproxy || ${TRUE}
11@exec ${CHOWN} ${TINYPROXY_USER}:${TINYPROXY_GROUP} ${VARBASE}/log/tinyproxy || ${TRUE} 15@exec ${CHOWN} ${TINYPROXY_USER}:${TINYPROXY_GROUP} ${VARBASE}/log/tinyproxy || ${TRUE}
12@exec ${CHMOD} 755 ${VARBASE}/log/tinyproxy || ${TRUE} 16@exec ${CHMOD} 755 ${VARBASE}/log/tinyproxy || ${TRUE}
13@exec ${MKDIR} ${VARBASE}/run/tinyproxy || ${TRUE} 17@exec ${MKDIR} ${VARBASE}/run/tinyproxy || ${TRUE}
14@exec ${CHOWN} ${TINYPROXY_USER}:${TINYPROXY_GROUP} ${VARBASE}/run/tinyproxy || ${TRUE} 18@exec ${CHOWN} ${TINYPROXY_USER}:${TINYPROXY_GROUP} ${VARBASE}/run/tinyproxy || ${TRUE}
15@exec ${CHMOD} 755 ${VARBASE}/run/tinyproxy || ${TRUE} 19@exec ${CHMOD} 755 ${VARBASE}/run/tinyproxy || ${TRUE}
16@unexec ${RMDIR} ${VARBASE}/log/tinyproxy 2>/dev/null || ${TRUE} 20@unexec ${RMDIR} ${VARBASE}/log/tinyproxy 2>/dev/null || ${TRUE}
17@unexec ${RMDIR} ${VARBASE}/run/tinyproxy 2>/dev/null || ${TRUE} 21@unexec ${RMDIR} ${VARBASE}/run/tinyproxy 2>/dev/null || ${TRUE}

cvs diff -r1.12 -r1.13 pkgsrc/www/tinyproxy/distinfo (expand / switch to unified diff)

--- pkgsrc/www/tinyproxy/distinfo 2018/06/21 11:31:33 1.12
+++ pkgsrc/www/tinyproxy/distinfo 2018/10/12 13:57:46 1.13
@@ -1,11 +1,10 @@ @@ -1,11 +1,10 @@
1$NetBSD: distinfo,v 1.12 2018/06/21 11:31:33 adam Exp $ 1$NetBSD: distinfo,v 1.13 2018/10/12 13:57:46 adam Exp $
2 2
3SHA1 (tinyproxy-1.8.4.tar.xz) = 2ecc31268b386c282f4c9f4ed53dd9b76f3c3aee 3SHA1 (tinyproxy-1.10.0.tar.xz) = c69fccde7aabd89434f94789a156847edde9aa28
4RMD160 (tinyproxy-1.8.4.tar.xz) = 5fd68912b1977badf261756b34a1de7efc183a72 4RMD160 (tinyproxy-1.10.0.tar.xz) = 8c22dadf2b50dbb841fb730395fd33244f5f2d33
5SHA512 (tinyproxy-1.8.4.tar.xz) = 23398a2c8a6d926b371086ba96032d0fd8dd06d114edf24950b868f53bb6b4235cd0f5d6b9a0131879fcc16bbe6b71142a6855de593a937ef7b0c323b50e0aec 5SHA512 (tinyproxy-1.10.0.tar.xz) = 8d82598c5f9c89bc672f4632139ac52696d5c7788963de51688a8aeb576c69004f8338fe1e1897bf704a21dfd25ab1effb092003b6afaa9a88c2b5d0608310f5
6Size (tinyproxy-1.8.4.tar.xz) = 192300 bytes 6Size (tinyproxy-1.10.0.tar.xz) = 176060 bytes
7SHA1 (patch-configure) = c0d7af647d06eac76835506823a8df4f1bd7bd49 
8SHA1 (patch-docs_man5_tinyproxy.conf.txt.in) = 1641f7c44ce84f2ebac6e945760af3ba77976f31 7SHA1 (patch-docs_man5_tinyproxy.conf.txt.in) = 1641f7c44ce84f2ebac6e945760af3ba77976f31
9SHA1 (patch-docs_man8_tinyproxy.txt.in) = 12c43d0f874a8794cbe8da7c702e406e8b10a99b 8SHA1 (patch-docs_man8_tinyproxy.txt.in) = 12c43d0f874a8794cbe8da7c702e406e8b10a99b
10SHA1 (patch-etc_Makefile.in) = 34ab3402bf11be5d2c1521f8ca0254ecbf19fc3c 9SHA1 (patch-etc_Makefile.in) = 05586bae07900c24dd418bddcbf0157ba2b302ef
11SHA1 (patch-etc_tinyproxy.conf.in) = 2694a3f4cd1c2481eb765c8c9a26a58ac94f2574 10SHA1 (patch-etc_tinyproxy.conf.in) = 19481a177119b266034280d8923ea855021d8663

cvs diff -r1.3 -r1.4 pkgsrc/www/tinyproxy/files/tinyproxy.sh (expand / switch to unified diff)

--- pkgsrc/www/tinyproxy/files/tinyproxy.sh 2017/02/18 05:59:23 1.3
+++ pkgsrc/www/tinyproxy/files/tinyproxy.sh 2018/10/12 13:57:46 1.4
@@ -1,18 +1,18 @@ @@ -1,18 +1,18 @@
1#!@RCD_SCRIPTS_SHELL@ 1#!@RCD_SCRIPTS_SHELL@
2# 2#
3# $NetBSD: tinyproxy.sh,v 1.3 2017/02/18 05:59:23 nonaka Exp $ 3# $NetBSD: tinyproxy.sh,v 1.4 2018/10/12 13:57:46 adam Exp $
4# 4#
5 5
6# PROVIDE: tinyproxy 6# PROVIDE: tinyproxy
7# REQUIRE: DAEMON 7# REQUIRE: DAEMON
8 8
9. /etc/rc.subr 9. /etc/rc.subr
10 10
11name="tinyproxy" 11name="tinyproxy"
12rcvar=$name 12rcvar=$name
13command="@PREFIX@/sbin/${name}" 13command="@PREFIX@/bin/${name}"
14pidfile="@VARBASE@/run/tinyproxy/${name}.pid" 14pidfile="@VARBASE@/run/tinyproxy/${name}.pid"
15required_files="@PKG_SYSCONFDIR@/${name}.conf" 15required_files="@PKG_SYSCONFDIR@/${name}.conf"
16 16
17load_rc_config $name 17load_rc_config $name
18run_rc_command "$1" 18run_rc_command "$1"

File Deleted: pkgsrc/www/tinyproxy/patches/Attic/patch-configure

cvs diff -r1.1 -r1.2 pkgsrc/www/tinyproxy/patches/patch-etc_Makefile.in (expand / switch to unified diff)

--- pkgsrc/www/tinyproxy/patches/patch-etc_Makefile.in 2012/12/12 13:01:23 1.1
+++ pkgsrc/www/tinyproxy/patches/patch-etc_Makefile.in 2018/10/12 13:57:46 1.2
@@ -1,15 +1,15 @@ @@ -1,15 +1,15 @@
1$NetBSD: patch-etc_Makefile.in,v 1.1 2012/12/12 13:01:23 wiz Exp $ 1$NetBSD: patch-etc_Makefile.in,v 1.2 2018/10/12 13:57:46 adam Exp $
2 2
3Use pkgsrc framework for config files. 3Use pkgsrc framework for config files.
4 4
5--- etc/Makefile.in.orig 2012-10-04 23:12:45.697375000 +0000 5--- etc/Makefile.in.orig 2018-10-12 13:51:26.000000000 +0000
6+++ etc/Makefile.in 6+++ etc/Makefile.in
7@@ -355,7 +355,7 @@ install-dvi: install-dvi-am 7@@ -424,7 +424,7 @@ info: info-am
8  8
9 install-dvi-am: 9 info-am:
10  10
11-install-exec-am: install-sysconfDATA 11-install-data-am: install-pkgsysconfDATA
12+install-exec-am: 12+install-data-am:
13  13
14 install-html: install-html-am 14 install-dvi: install-dvi-am
15  15

cvs diff -r1.2 -r1.3 pkgsrc/www/tinyproxy/patches/patch-etc_tinyproxy.conf.in (expand / switch to unified diff)

--- pkgsrc/www/tinyproxy/patches/patch-etc_tinyproxy.conf.in 2018/06/21 11:31:33 1.2
+++ pkgsrc/www/tinyproxy/patches/patch-etc_tinyproxy.conf.in 2018/10/12 13:57:46 1.3
@@ -1,26 +1,26 @@ @@ -1,26 +1,26 @@
1$NetBSD: patch-etc_tinyproxy.conf.in,v 1.2 2018/06/21 11:31:33 adam Exp $ 1$NetBSD: patch-etc_tinyproxy.conf.in,v 1.3 2018/10/12 13:57:46 adam Exp $
2 2
3Customize settings. 3Customize settings.
4 4
5--- etc/tinyproxy.conf.in.orig 2010-03-03 18:37:24.000000000 +0900 5--- etc/tinyproxy.conf.in.orig 2018-08-31 23:03:36.000000000 +0000
6+++ etc/tinyproxy.conf.in 2016-12-15 11:05:42.000000000 +0900 6+++ etc/tinyproxy.conf.in
7@@ -12,8 +12,8 @@ 7@@ -12,8 +12,8 @@
8 # as the root user. Either the user or group name or the UID or GID 8 # as the root user. Either the user or group name or the UID or GID
9 # number may be used. 9 # number may be used.
10 # 10 #
11-User nobody 11-User nobody
12-Group nobody 12-Group nobody
13+User @TINYPROXY_USER@ 13+User @TINYPROXY_USER@
14+Group @TINYPROXY_GROUP@ 14+Group @TINYPROXY_GROUP@
15  15
16 # 16 #
17 # Port: Specify the port which tinyproxy will listen on. Please note 17 # Port: Specify the port which tinyproxy will listen on. Please note
18@@ -122,7 +122,7 @@ LogLevel Info 18@@ -124,7 +124,7 @@ LogLevel Info
19 # PidFile: Write the PID of the main tinyproxy thread to this file so it 
20 # can be used for signalling purposes. 19 # can be used for signalling purposes.
 20 # If not specified, no pidfile will be written.
21 # 21 #
22-#PidFile "@localstatedir@/run/tinyproxy/tinyproxy.pid" 22-#PidFile "@localstatedir@/run/tinyproxy/tinyproxy.pid"
23+PidFile "@localstatedir@/run/tinyproxy/tinyproxy.pid" 23+PidFile "@localstatedir@/run/tinyproxy/tinyproxy.pid"
24  24
25 # 25 #
26 # XTinyproxy: Tell Tinyproxy to include the X-Tinyproxy header, which 26 # XTinyproxy: Tell Tinyproxy to include the X-Tinyproxy header, which