Updated net/dante to 1.4.2 -------------------------- *** *** Monday, February 6, 2017 -- Dante v1.4.2 *** o Support new version of libminiupnp. Patch from Michele Testa <themike@libero.it.example.com> o Fix memory bug in the client that would lead to a crash when resolving hostnames on certain platforms. Diagnosis and patch from Jeremie Courreges-Anglas <jca@wxcvbn.org.example.org>. Thank you. o A new environment variable has been added to aid application compatibility with socksify: SOCKS_FORCE_BLOCKING_CONNECT. See the socksify manpage for more information. o Fixed bug in configure that broke compilation with rpmbuild on newer Linux versions. Multiple bug reports received, thanks to everyone that reported this problem. o Add glibc-devel as Dante rpm requirement. Requires entry for librt, used by socksify. Suggested by <ealogar@gmail.com.example.com>. Also needed for libdl.so. o Various NetBSD configure and server related fixes. Thanks to Anthony Howe <achowe@snert.com.example.com> for bug reports and testing. o Corrected srchost values in examples/sockd.conf. Thanks to Danesh Pajoh, Babak <Babak.DaneshPajoh@gwl.ca.example.com> for bug report. o Various build fixes, affecting RHEL 7 and potentially other platforms. Thanks to Thomas Petazzoni <thomas.petazzoni@free-electrons.com.example.com> for submitting related patch. o Updates to hostid/TCP_IPA code to use newer API version. o Added check for OpenBSD getpwnam_shadow(). o Added workaround for __FD_ELT() fortify related bug in recent glibc versions.diff -r1.24 -r1.25 pkgsrc/net/dante/Makefile
(mef)
@@ -1,16 +1,16 @@ | @@ -1,16 +1,16 @@ | |||
1 | # $NetBSD: Makefile,v 1.24 2015/09/13 21:55:15 leot Exp $ | 1 | # $NetBSD: Makefile,v 1.25 2017/02/12 01:01:19 mef Exp $ | |
2 | 2 | |||
3 | DISTNAME= dante-1.4.1 | 3 | DISTNAME= dante-1.4.2 | |
4 | CATEGORIES= net security | 4 | CATEGORIES= net security | |
5 | MASTER_SITES= http://www.inet.no/dante/files/ | 5 | MASTER_SITES= http://www.inet.no/dante/files/ | |
6 | 6 | |||
7 | MAINTAINER= pkgsrc-users@NetBSD.org | 7 | MAINTAINER= pkgsrc-users@NetBSD.org | |
8 | HOMEPAGE= http://www.inet.no/dante/ | 8 | HOMEPAGE= http://www.inet.no/dante/ | |
9 | COMMENT= BSD-licensed socks 4/5 proxy suite | 9 | COMMENT= BSD-licensed socks 4/5 proxy suite | |
10 | LICENSE= modified-bsd | 10 | LICENSE= modified-bsd | |
11 | 11 | |||
12 | CONFLICTS= socks4-[0-9]* | 12 | CONFLICTS= socks4-[0-9]* | |
13 | 13 | |||
14 | USE_LIBTOOL= yes | 14 | USE_LIBTOOL= yes | |
15 | GNU_CONFIGURE= yes | 15 | GNU_CONFIGURE= yes | |
16 | CONFIGURE_ARGS+= --with-socks-conf=${PKG_SYSCONFDIR}/socks.conf | 16 | CONFIGURE_ARGS+= --with-socks-conf=${PKG_SYSCONFDIR}/socks.conf |
@@ -1,9 +1,9 @@ | @@ -1,9 +1,9 @@ | |||
1 | $NetBSD: distinfo,v 1.15 2015/11/04 00:34:56 agc Exp $ | 1 | $NetBSD: distinfo,v 1.16 2017/02/12 01:01:19 mef Exp $ | |
2 | 2 | |||
3 | SHA1 (dante-1.4.1.tar.gz) = 17ded4322d78b7b031da23cd4e03dbb14f397d71 | 3 | SHA1 (dante-1.4.2.tar.gz) = 671c4df0f0689620c8e7cfe43bae3d7f89c8cc4e | |
4 | RMD160 (dante-1.4.1.tar.gz) = b01a09375f45d226ffc564ca0d26e0285721fda3 | 4 | RMD160 (dante-1.4.2.tar.gz) = 8d48b6efa0d551215943c31dc140a0dccac950b9 | |
5 | SHA512 (dante-1.4.1.tar.gz) = 1c8e2966ba68c8584fb99ff76ae1d9c8dfe669c7e5e61c7e6e7f87295d1280c3e7849491a6369ce27795040f951dcc11f4f2b3d7e46c54219594c89315d0487e | 5 | SHA512 (dante-1.4.2.tar.gz) = 38d4e3086f851fac78e2dbe7f928eba3b8bf1fb9219c42d929b9e1ea324882b0ae583dc59964a2772af4202dfc977387c6f723b320b5abbbe70e1990cd94f53b | |
6 | Size (dante-1.4.1.tar.gz) = 1284288 bytes | 6 | Size (dante-1.4.2.tar.gz) = 1307254 bytes | |
7 | SHA1 (patch-aa) = a201b0ec844a2dd610cd4bfb5ffce2f37132fc77 | 7 | SHA1 (patch-aa) = a201b0ec844a2dd610cd4bfb5ffce2f37132fc77 | |
8 | SHA1 (patch-ab) = baedbd12c4b77031e58167a0ecba2f286a504822 | 8 | SHA1 (patch-ab) = 77890d2eab9f2e487c571c5c3a1b7f181918f382 | |
9 | SHA1 (patch-dlib_Makefile.in) = cb3af4c1549a6581698b3702fb7af58352c7683a | 9 | SHA1 (patch-dlib_Makefile.in) = ac3f8687b9437fec2306a92c8ce91c57df79de0f |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | $NetBSD: patch-ab,v 1.10 2015/09/13 21:55:15 leot Exp $ | 1 | $NetBSD: patch-ab,v 1.11 2017/02/12 01:01:19 mef Exp $ | |
2 | 2 | |||
3 | o Delete the -Werror flag in order to recognise the type of sa_len: | 3 | o Delete the -Werror flag in order to recognise the type of sa_len: | |
4 | 4 | |||
5 | In function ‘main’: | 5 | In function ‘main’: | |
6 | warning: variable ‘sa_len_ptr’ set but not used [-Wunused-but-set-variable] uint8_t *sa_len_ptr; | 6 | warning: variable ‘sa_len_ptr’ set but not used [-Wunused-but-set-variable] uint8_t *sa_len_ptr; | |
7 | 7 | |||
8 | o Add support for DragonFly BSD | 8 | o Add support for DragonFly BSD | |
9 | 9 | |||
10 | --- configure.orig 2014-09-03 14:52:29.000000000 +0000 | 10 | --- configure.orig 2014-09-03 14:52:29.000000000 +0000 | |
11 | +++ configure | 11 | +++ configure | |
12 | @@ -12804,8 +12804,6 @@ if test x"${debug_enabled}" = xt; then | 12 | @@ -12804,8 +12804,6 @@ if test x"${debug_enabled}" = xt; then | |
13 | else | 13 | else | |
14 | #autoconf_compflags is set to "-g -O2" with GCC | 14 | #autoconf_compflags is set to "-g -O2" with GCC | |
@@ -17,44 +17,26 @@ o Add support for DragonFly BSD | @@ -17,44 +17,26 @@ o Add support for DragonFly BSD | |||
17 | - CFLAGS="$CFLAGS${CFLAGS:+ }$autoconf_compflags" | 17 | - CFLAGS="$CFLAGS${CFLAGS:+ }$autoconf_compflags" | |
18 | 18 | |||
19 | case $COMPTYPE in | 19 | case $COMPTYPE in | |
20 | gcc) | 20 | gcc) | |
21 | @@ -15424,7 +15422,7 @@ if test x"${have_sa_len}" != x; then | 21 | @@ -15424,7 +15422,7 @@ if test x"${have_sa_len}" != x; then | |
22 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_len type" >&5 | 22 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_len type" >&5 | |
23 | $as_echo_n "checking for sa_len type... " >&6; } | 23 | $as_echo_n "checking for sa_len type... " >&6; } | |
24 | oCFLAGS="$CFLAGS" | 24 | oCFLAGS="$CFLAGS" | |
25 | - CFLAGS="$CFLAGS${CFLAGS:+ }$FAILWARN" | 25 | - CFLAGS="$CFLAGS${CFLAGS:+ }$FAILWARN" | |
26 | + CFLAGS="$CFLAGS${CFLAGS:+ }" | 26 | + CFLAGS="$CFLAGS${CFLAGS:+ }" | |
27 | unset sa_len_type_found | 27 | unset sa_len_type_found | |
28 | for type in uint8_t "unsigned char"; do | 28 | for type in uint8_t "unsigned char"; do | |
29 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 29 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30 | @@ -21835,7 +21833,7 @@ keyword="no-route" | |||
31 | keycnt=0 | |||
32 | for keyval in ${ERRNO_NOROUTE}; do | |||
33 | for errno in $ERRNOVALS; do | |||
34 | - if test x"$keyval" == x"$errno"; then | |||
35 | + if test x"$keyval" = x"$errno"; then | |||
36 | echo " { \"$keyword\", $errno }," >>$ERRNOSRC | |||
37 | keycnt=`expr $keycnt + 1` | |||
38 | fi | |||
39 | @@ -22633,7 +22631,7 @@ keyword="foo" | |||
40 | keycnt=0 | |||
41 | for keyval in ${ERRNO_foo}; do | |||
42 | for errno in $GAIERRVALS; do | |||
43 | - if test x"$keyval" == x"$errno"; then | |||
44 | + if test x"$keyval" = x"$errno"; then | |||
45 | echo " { \"$keyword\", $errno }," >>$ERRNOSRC | |||
46 | keycnt=`expr $keycnt + 1` | |||
47 | fi | |||
48 | @@ -24719,8 +24717,13 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ | 30 | @@ -24719,8 +24717,13 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ | |
49 | #include <netdb.h> | 31 | #include <netdb.h> | |
50 | #include <unistd.h> | 32 | #include <unistd.h> | |
51 | 33 | |||
52 | +#if defined(__DragonFly__) | 34 | +#if defined(__DragonFly__) | |
53 | struct hostent * | 35 | struct hostent * | |
54 | gethostbyaddr( const char *, int, int | 36 | gethostbyaddr( const char *, int, int | |
55 | +#else | 37 | +#else | |
56 | +struct hostent * | 38 | +struct hostent * | |
57 | +gethostbyaddr( const char *, socklen_t, int | 39 | +gethostbyaddr( const char *, socklen_t, int | |
58 | +#endif | 40 | +#endif | |
59 | ); | 41 | ); | |
60 | int | 42 | int |
@@ -1,27 +1,27 @@ | @@ -1,27 +1,27 @@ | |||
1 | $NetBSD: patch-dlib_Makefile.in,v 1.1 2015/09/13 21:55:15 leot Exp $ | 1 | $NetBSD: patch-dlib_Makefile.in,v 1.2 2017/02/12 01:01:19 mef Exp $ | |
2 | 2 | |||
3 | o Do not use ssp(3) when compiling interposition.c: | 3 | o Do not use ssp(3) when compiling interposition.c: | |
4 | 4 | |||
5 | interposition.c:1616:1: error: redefinition of 'read' | 5 | interposition.c:1616:1: error: redefinition of 'read' | |
6 | read(d, buf, nbytes) | 6 | read(d, buf, nbytes) | |
7 | ^ | 7 | ^ | |
8 | In file included from /usr/include/ssp/stdio.h:34:0, | 8 | In file included from /usr/include/ssp/stdio.h:34:0, | |
9 | from /usr/include/stdio.h:597, | 9 | from /usr/include/stdio.h:597, | |
10 | from ../include/osdep.h:158, | 10 | from ../include/osdep.h:158, | |
11 | from ../include/common.h:56, | 11 | from ../include/common.h:56, | |
12 | from interposition.c:47: | 12 | from interposition.c:47: | |
13 | /usr/include/ssp/unistd.h:39:1: note: previous definition of 'read' was here | 13 | /usr/include/ssp/unistd.h:39:1: note: previous definition of 'read' was here | |
14 | __ssp_redirect0(ssize_t, read, (int __fd, void *__buf, size_t __len), \ | 14 | __ssp_redirect0(ssize_t, read, (int __fd, void *__buf, size_t __len), \ | |
15 | ^ | 15 | ^ | |
16 | 16 | |||
17 | --- dlib/Makefile.in.orig 2014-09-03 14:52:38.000000000 +0000 | 17 | --- dlib/Makefile.in.orig 2017-02-03 23:17:27.000000000 +0900 | |
18 | +++ dlib/Makefile.in | 18 | +++ dlib/Makefile.in 2017-02-12 09:45:51.954887981 +0900 | |
19 | @@ -508,7 +508,7 @@ distclean-compile: | 19 | @@ -592,7 +592,7 @@ distclean-compile: | |
20 | @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< | 20 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< | |
21 | 21 | |||
22 | libdsocks_la-interposition.lo: interposition.c | 22 | libdsocks_la-interposition.lo: interposition.c | |
23 | -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(libdsocks_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT libdsocks_la-interposition.lo -MD -MP -MF $(DEPDIR)/libdsocks_la-interposition.Tpo -c -o libdsocks_la-interposition.lo `test -f 'interposition.c' || echo '$(srcdir)/'`interposition.c | 23 | -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(libdsocks_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT libdsocks_la-interposition.lo -MD -MP -MF $(DEPDIR)/libdsocks_la-interposition.Tpo -c -o libdsocks_la-interposition.lo `test -f 'interposition.c' || echo '$(srcdir)/'`interposition.c | |
24 | +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(libdsocks_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS:S/-D_FORTIFY_SOURCE=2//) $(AM_CFLAGS) $(CFLAGS) -MT libdsocks_la-interposition.lo -MD -MP -MF $(DEPDIR)/libdsocks_la-interposition.Tpo -c -o libdsocks_la-interposition.lo `test -f 'interposition.c' || echo '$(srcdir)/'`interposition.c | 24 | + @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(libdsocks_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS:S/-D_FORTIFY_SOURCE=2//) $(AM_CFLAGS) $(CFLAGS) -MT libdsocks_la-interposition.lo -MD -MP -MF $(DEPDIR)/libdsocks_la-interposition.Tpo -c -o libdsocks_la-interposition.lo `test -f 'interposition.c' || cho '$(srcdir)/'`interposition.c | |
25 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdsocks_la-interposition.Tpo $(DEPDIR)/libdsocks_la-interposition.Plo | 25 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdsocks_la-interposition.Tpo $(DEPDIR)/libdsocks_la-interposition.Plo | |
26 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | 26 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='interposition.c' object='libdsocks_la-interposition.lo' libtool=yes @AMDEPBACKSLASH@ | |
27 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='interposition.c' object='libdsocks_la-interposition.lo' libtool=yes @AMDEPBACKSLASH@ | 27 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |