FreeBSD Bugzilla – Attachment 172005 Details for
Bug 207051
www/tinyproxy: Only binds to all (*) interfaces for IPv6, but not IPv4, when "Listen" is disabled (fixed in 1.8.4)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
New patch
tinyproxy-1.8.4,1.diff (text/plain), 10.28 KB, created by
Jason Mann
on 2016-07-01 15:26:23 UTC
(
hide
)
Description:
New patch
Filename:
MIME Type:
Creator:
Jason Mann
Created:
2016-07-01 15:26:23 UTC
Size:
10.28 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 415100) >+++ Makefile (working copy) >@@ -2,19 +2,18 @@ > # $FreeBSD$ > > PORTNAME= tinyproxy >-PORTVERSION= 1.8.3 >-PORTREVISION= 1 >+PORTVERSION= 1.8.4 > PORTEPOCH= 1 > CATEGORIES= www >-MASTER_SITES= https://banu.com/pub/tinyproxy/${PORTVERSION:R}/ \ >- LOCAL/sunpoet > >-MAINTAINER= sunpoet@FreeBSD.org >+MAINTAINER= jason.mann+freebsd-ports@gmail.com > COMMENT= Small, efficient HTTP proxy server > >-LICENSE= GPLv2 GPLv3 >-LICENSE_COMB= dual >+LICENSE= GPLv2 >+LICENSE_FILE= ${WRKSRC}/COPYING > >+USE_GITHUB= yes >+ > OPTIONS_DEFINE= REVERSE TRANSPARENT XHEADER > REVERSE_DESC= Reverse proxy support > TRANSPARENT_DESC= Transparent proxy support >@@ -25,7 +24,7 @@ > --program-transform-name="" > GNU_CONFIGURE= yes > USE_RC_SUBR= ${PORTNAME} >-USES= gmake >+USES= autoreconf gmake > > REVERSE_CONFIGURE_ENABLE= reverse > TRANSPARENT_CONFIGURE_ENABLE= transparent >@@ -32,12 +31,12 @@ > XHEADER_CONFIGURE_ENABLE= xtinyproxy > > post-patch: >- @${REINPLACE_CMD} -e 's|-O2||' ${WRKSRC}/configure > @${REINPLACE_CMD} -e 's|tinyproxy/tinyproxy|tinyproxy|g; s|/etc/tinyproxy|${PREFIX}&|' \ > ${WRKSRC}/docs/man5/tinyproxy.conf.txt.in \ > ${WRKSRC}/docs/man8/tinyproxy.txt.in \ > ${WRKSRC}/etc/tinyproxy.conf.in > @${REINPLACE_CMD} -e '/\/usr\/share\/tinyproxy/d' ${WRKSRC}/etc/tinyproxy.conf.in >+ @${REINPLACE_CMD} -e 's/^#LogFile/LogFile/; s/^#PidFile/PidFile/' ${WRKSRC}/etc/tinyproxy.conf.in > > post-install: > ${INSTALL_DATA} ${WRKSRC}/etc/tinyproxy.conf ${STAGEDIR}${PREFIX}/etc/tinyproxy.conf.sample >Index: distinfo >=================================================================== >--- distinfo (revision 415100) >+++ distinfo (working copy) >@@ -1,2 +1,2 @@ >-SHA256 (tinyproxy-1.8.3.tar.gz) = 682416c8f0f733a8106c87bb395c631222569751fe4617bc381d0499b0f0c017 >-SIZE (tinyproxy-1.8.3.tar.gz) = 266744 >+SHA256 (tinyproxy-tinyproxy-1.8.4_GH0.tar.gz) = 1999c88c43e31ff4cb5e8379b76776a65fa3d326eea868cb5f88ef58a8f631de >+SIZE (tinyproxy-tinyproxy-1.8.4_GH0.tar.gz) = 124634 >Index: files/patch-Makefile.am >=================================================================== >--- files/patch-Makefile.am (nonexistent) >+++ files/patch-Makefile.am (working copy) >@@ -0,0 +1,10 @@ >+--- Makefile.am.orig 2014-12-13 00:57:23 UTC >++++ Makefile.am >+@@ -2,7 +2,6 @@ SUBDIRS = \ >+ src \ >+ data \ >+ etc \ >+- docs \ >+ m4macros \ >+ tests >+ > >Property changes on: files/patch-Makefile.am >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: files/patch-Makefile.in >=================================================================== >--- files/patch-Makefile.in (revision 415100) >+++ files/patch-Makefile.in (nonexistent) >@@ -1,10 +0,0 @@ >---- Makefile.in.orig 2011-08-16 12:27:58 UTC >-+++ Makefile.in >-@@ -222,7 +222,6 @@ SUBDIRS = \ >- src \ >- data \ >- etc \ >-- docs \ >- m4macros \ >- tests >- > >Property changes on: files/patch-Makefile.in >___________________________________________________________________ >Deleted: fbsd:nokeywords >## -1 +0,0 ## >-yes >\ No newline at end of property >Deleted: svn:eol-style >## -1 +0,0 ## >-native >\ No newline at end of property >Deleted: svn:mime-type >## -1 +0,0 ## >-text/plain >\ No newline at end of property >Index: files/patch-configure >=================================================================== >--- files/patch-configure (revision 415100) >+++ files/patch-configure (nonexistent) >@@ -1,47 +0,0 @@ >---- configure.orig 2011-08-16 12:27:59 UTC >-+++ configure >-@@ -3626,13 +3626,13 @@ if test "$ac_test_CFLAGS" = set; then >- CFLAGS=$ac_save_CFLAGS >- elif test $ac_cv_prog_cc_g = yes; then >- if test "$GCC" = yes; then >-- CFLAGS="-g -O2" >-+ CFLAGS="-g " >- else >- CFLAGS="-g" >- fi >- else >- if test "$GCC" = yes; then >-- CFLAGS="-O2" >-+ CFLAGS="" >- else >- CFLAGS= >- fi >-@@ -4889,13 +4889,13 @@ if test "$ac_test_CFLAGS" = set; then >- CFLAGS=$ac_save_CFLAGS >- elif test $ac_cv_prog_cc_g = yes; then >- if test "$GCC" = yes; then >-- CFLAGS="-g -O2" >-+ CFLAGS="-g " >- else >- CFLAGS="-g" >- fi >- else >- if test "$GCC" = yes; then >-- CFLAGS="-O2" >-+ CFLAGS="" >- else >- CFLAGS= >- fi >-@@ -6865,11 +6865,7 @@ else >- HAVE_A2X_FALSE= >- fi >- >--if test x"$A2X" = x"no"; then >-- as_fn_error $? "Test for asciidoc failed. See the file 'INSTALL' for help." "$LINENO" 5 >--fi >-- >--ac_config_files="$ac_config_files Makefile src/Makefile data/Makefile data/templates/Makefile etc/Makefile docs/Makefile docs/man5/Makefile docs/man5/tinyproxy.conf.txt docs/man8/Makefile docs/man8/tinyproxy.txt m4macros/Makefile tests/Makefile tests/scripts/Makefile" >-+ac_config_files="$ac_config_files Makefile src/Makefile data/Makefile data/templates/Makefile etc/Makefile m4macros/Makefile tests/Makefile tests/scripts/Makefile" >- >- >- cat >confcache <<\_ACEOF > >Property changes on: files/patch-configure >___________________________________________________________________ >Deleted: fbsd:nokeywords >## -1 +0,0 ## >-yes >\ No newline at end of property >Deleted: svn:eol-style >## -1 +0,0 ## >-native >\ No newline at end of property >Deleted: svn:mime-type >## -1 +0,0 ## >-text/plain >\ No newline at end of property >Index: files/patch-configure.ac >=================================================================== >--- files/patch-configure.ac (nonexistent) >+++ files/patch-configure.ac (working copy) >@@ -0,0 +1,27 @@ >+--- configure.ac.orig 2014-12-13 00:57:23 UTC >++++ configure.ac >+@@ -284,24 +284,12 @@ AC_SUBST(CPPFLAGS) >+ AC_SUBST(LIBS) >+ AC_SUBST(ADDITIONAL_OBJECTS) >+ >+-# Check for asciidoc >+-AC_PATH_PROG(A2X, a2x, no) >+-AM_CONDITIONAL(HAVE_A2X, test "x$A2X" != "xno") >+-if test x"$A2X" = x"no"; then >+- AC_MSG_ERROR([Test for asciidoc failed. See the file 'INSTALL' for help.]) >+-fi >+- >+ AC_CONFIG_FILES([ >+ Makefile >+ src/Makefile >+ data/Makefile >+ data/templates/Makefile >+ etc/Makefile >+-docs/Makefile >+-docs/man5/Makefile >+-docs/man5/tinyproxy.conf.txt >+-docs/man8/Makefile >+-docs/man8/tinyproxy.txt >+ m4macros/Makefile >+ tests/Makefile >+ tests/scripts/Makefile > >Property changes on: files/patch-configure.ac >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: files/patch-etc-Makefile.in >=================================================================== >--- files/patch-etc-Makefile.in (revision 415100) >+++ files/patch-etc-Makefile.in (nonexistent) >@@ -1,15 +0,0 @@ >---- etc/Makefile.in.orig 2011-08-16 12:27:58 UTC >-+++ etc/Makefile.in >-@@ -248,8 +248,10 @@ install-sysconfDATA: $(sysconf_DATA) >- echo "$$d$$p"; \ >- done | $(am__base_list) | \ >- while read files; do \ >-- echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(sysconfdir)'"; \ >-- $(INSTALL_DATA) $$files "$(DESTDIR)$(sysconfdir)" || exit $$?; \ >-+ nfile="$$files.sample"; \ >-+ cp $$files $$nfile; \ >-+ echo " $(INSTALL_DATA) $$nfile '$(DESTDIR)$(sysconfdir)'"; \ >-+ $(INSTALL_DATA) $$nfile "$(DESTDIR)$(sysconfdir)" || exit $$?; \ >- done >- >- uninstall-sysconfDATA: > >Property changes on: files/patch-etc-Makefile.in >___________________________________________________________________ >Deleted: fbsd:nokeywords >## -1 +0,0 ## >-yes >\ No newline at end of property >Deleted: svn:eol-style >## -1 +0,0 ## >-native >\ No newline at end of property >Deleted: svn:mime-type >## -1 +0,0 ## >-text/plain >\ No newline at end of property >Index: files/patch-src-main.c >=================================================================== >--- files/patch-src-main.c (revision 415100) >+++ files/patch-src-main.c (working copy) >@@ -1,6 +1,6 @@ >---- src/main.c.orig 2011-08-16 12:14:34 UTC >+--- src/main.c.orig 2014-12-13 00:57:23 UTC > +++ src/main.c >-@@ -407,12 +407,9 @@ main (int argc, char **argv) >+@@ -417,12 +417,9 @@ main (int argc, char **argv) > exit (EX_OSERR); > } > >@@ -10,16 +10,16 @@ > - else > - log_message (LOG_WARNING, > - "Not running as root, so not changing UID/GID."); >-+ /*To get this to run correctly on FreeBSD, we must >-+ ceate the PID and log files before we drop privileges. >-+ Other ideas are welcome */ >++ /* To get this to run correctly on FreeBSD, we must >++ create the PID and log files before we drop privileges. >++ Other ideas are welcome */ > > /* Create log file after we drop privileges */ > if (setup_logging ()) { >-@@ -427,6 +424,13 @@ main (int argc, char **argv) >- exit (EX_OSERR); >+@@ -438,6 +435,13 @@ main (int argc, char **argv) > } > } >+ > + /* Switch to a different user if we're running as root */ > + if (geteuid () == 0) > + change_user (argv[0]); >@@ -27,6 +27,6 @@ > + log_message (LOG_WARNING, > + "Not running as root, so not changing UID/GID."); > + >- > if (child_pool_create () < 0) { > fprintf (stderr, >+ "%s: Could not create the pool of children.\n", >Index: pkg-descr >=================================================================== >--- pkg-descr (revision 415100) >+++ pkg-descr (working copy) >@@ -1,11 +1,11 @@ >-tinyproxy is a GPLed, lightweight HTTP proxy. Designed from the ground up to be >-fast and yet small, it is an ideal solution for sites where a full-featured >-HTTP proxy is required, but the system resources required to run a more >-demanding HTTP proxy are unavailable. tinyproxy is fully compatible with all >-existing web browsers, and has a number of useful features including >-anonymous mode. >+Tinyproxy is a light-weight HTTP/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. > >+Tinyproxy is distributed using the GNU GPL license (version 2 or above). >+ > Note that tinyproxy requires configuration to run in anonymizing > mode. See tinyproxy.conf.sample for detail. > >-WWW: https://banu.com/tinyproxy/ >+WWW: https://tinyproxy.github.io/
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
koobs
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 207051
:
170242
| 172005