FreeBSD Bugzilla – Attachment 215150 Details for
Bug 246925
net/miniupnpd: Update to 2.1.20200510
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch against current ports.
patch-Miniupnpd (text/plain), 11.51 KB, created by
Tor Halvard Furulund
on 2020-06-01 21:49:38 UTC
(
hide
)
Description:
Patch against current ports.
Filename:
MIME Type:
Creator:
Tor Halvard Furulund
Created:
2020-06-01 21:49:38 UTC
Size:
11.51 KB
patch
obsolete
>diff -ruN miniupnpd.orig/Makefile miniupnpd/Makefile >--- miniupnpd.orig/Makefile 2019-12-16 09:13:39.000000000 +0100 >+++ miniupnpd/Makefile 2020-06-01 22:57:52.648410000 +0200 >@@ -2,7 +2,7 @@ > # $FreeBSD: head/net/miniupnpd/Makefile 520227 2019-12-16 08:13:39Z pi $ > > PORTNAME= miniupnpd >-PORTVERSION= 2.1.20190210 >+PORTVERSION= 2.1.20200510 > PORTEPOCH= 1 > CATEGORIES= net > MASTER_SITES= http://miniupnp.tuxfamily.org/files/ \ >@@ -14,6 +14,7 @@ > LICENSE= BSD3CLAUSE > > USES= cpe ssl >+HAS_CONFIGURE= yes > CPE_VENDOR= miniupnp_project > PLIST_FILES= etc/miniupnpd.conf.sample sbin/miniupnpd \ > man/man8/miniupnpd.8.gz >@@ -23,28 +24,44 @@ > CFLAGS+= -I${OPENSSLINC} > LDFLAGS+= -L${OPENSSLLIB} > >-OPTIONS_DEFINE= PF_FILTER_RULES CHECK_PORTINUSE IPV6 UPNP_IGDV2 UPNP_STRICT LEASEFILE >-PF_FILTER_RULES_DESC= Enable pf generation of filter rules >+OPTIONS_DEFINE= CHECK_PORTINUSE IPV6 UPNP_IGDV2 UPNP_STRICT LEASEFILE >+OPTIONS_DEFAULT= AUTODETECT_FW >+OPTIONS_SINGLE= FIREWALL >+OPTIONS_SINGLE_FIREWALL= AUTODETECT_FW PF IPFW >+AUTODETECT_FW_DESC= Try to autodetect firewall type >+PF_DESC= Use PF as firewall type >+IPFW_DESC= Use IPFW as firewall type > CHECK_PORTINUSE_DESC= Check if ports are in use > UPNP_IGDV2_DESC= Build an IGDv2 instead of an IGDv1 > UPNP_STRICT_DESC= More strict UPnP specification compliance > LEASEFILE_DESC= Enable lease file > >-PF_FILTER_RULES_EXTRA_PATCHES= ${PATCHDIR}/pf_enable_filter_rules.patch >-CHECK_PORTINUSE_EXTRA_PATCHES= ${PATCHDIR}/enable_check_portinuse.patch >-IPV6_EXTRA_PATCHES= ${PATCHDIR}/enable_ipv6.patch >-UPNP_IGDV2_EXTRA_PATCHES= ${PATCHDIR}/enable_igdv2.patch >-UPNP_STRICT_EXTRA_PATCHES= ${PATCHDIR}/enable_upnp_strict.patch >-LEASEFILE_EXTRA_PATCHES= ${PATCHDIR}/enable_leasefile.patch >- > .include <bsd.port.options.mk> > >-.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200000 >-EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-portinuse.c >+.if ${PORT_OPTIONS:MPF} >+CONFIGURE_ARGS+= --firewall=pf > .endif >+#if ${PORT_OPTIONS:MIPFW} >+#CONFIGURE_ARGS+= --firewall=ipfw >+#.endif >+.if ${PORT_OPTIONS:MCHECK_PORTINUSE} >+CONFIGURE_ARGS+= --portinuse >+.endif >+.if ${PORT_OPTIONS:MIPV6} >+CONFIGURE_ARGS+= --ipv6 >+.endif >+.if ${PORT_OPTIONS:MUPNP_IGDV2} >+CONFIGURE_ARGS+= --igd2 >+.endif >+.if ${PORT_OPTIONS:MUPNP_STRICT} >+CONFIGURE_ARGS+= --strict >+.endif >+.if ${PORT_OPTIONS:MLEASEFILE} >+CONFIGURE_ARGS+= --leasefile >+.endif > > post-patch: > ${REINPLACE_CMD} -e 's|\(-lssl -lcrypto\)|$$(LDFLAGS) \1|g' \ >- ${WRKSRC}/Makefile >+ ${WRKSRC}/Makefile.bsd > > .include <bsd.port.mk> >diff -ruN miniupnpd.orig/distinfo miniupnpd/distinfo >--- miniupnpd.orig/distinfo 2019-03-25 14:28:37.000000000 +0100 >+++ miniupnpd/distinfo 2020-06-01 21:01:52.379490000 +0200 >@@ -1,3 +1,3 @@ >-TIMESTAMP = 1551791337 >-SHA256 (miniupnpd-2.1.20190210.tar.gz) = 1aaecd25cf152d99557dfe80c7508af9cb06e97ecad4786ce5dafb4c958d196b >-SIZE (miniupnpd-2.1.20190210.tar.gz) = 235093 >+TIMESTAMP = 1591038112 >+SHA256 (miniupnpd-2.1.20200510.tar.gz) = 821e708f369cc1fb851506441fbc3a1f4a1b5a8bf8e84a9e71758a32f5127e8b >+SIZE (miniupnpd-2.1.20200510.tar.gz) = 245426 >diff -ruN miniupnpd.orig/files/enable_check_portinuse.patch miniupnpd/files/enable_check_portinuse.patch >--- miniupnpd.orig/files/enable_check_portinuse.patch 2014-06-21 17:52:16.000000000 +0200 >+++ miniupnpd/files/enable_check_portinuse.patch 1970-01-01 01:00:00.000000000 +0100 >@@ -1,11 +0,0 @@ >---- genconfig.sh.orig 2014-04-22 00:37:51.000000000 -0700 >-+++ genconfig.sh 2014-04-22 09:30:24.000000000 -0700 >-@@ -401,7 +401,7 @@ >- if [ -n "$PORTINUSE" ]; then >- echo "#define CHECK_PORTINUSE" >> ${CONFIGFILE} >- else >-- echo "/*#define CHECK_PORTINUSE*/" >> ${CONFIGFILE} >-+ echo "#define CHECK_PORTINUSE" >> ${CONFIGFILE} >- fi >- echo "" >> ${CONFIGFILE} >- >diff -ruN miniupnpd.orig/files/enable_igdv2.patch miniupnpd/files/enable_igdv2.patch >--- miniupnpd.orig/files/enable_igdv2.patch 2014-06-21 17:52:16.000000000 +0200 >+++ miniupnpd/files/enable_igdv2.patch 1970-01-01 01:00:00.000000000 +0100 >@@ -1,11 +0,0 @@ >---- genconfig.sh.orig 2014-04-11 01:16:49.000000000 -0700 >-+++ genconfig.sh 2014-04-26 18:22:26.000000000 -0700 >-@@ -436,7 +436,7 @@ >- if [ -n "$IGD2" ]; then >- echo "#define IGD_V2" >> ${CONFIGFILE} >- else >-- echo "/*#define IGD_V2*/" >> ${CONFIGFILE} >-+ echo "#define IGD_V2" >> ${CONFIGFILE} >- fi >- echo "" >> ${CONFIGFILE} >- >diff -ruN miniupnpd.orig/files/enable_ipv6.patch miniupnpd/files/enable_ipv6.patch >--- miniupnpd.orig/files/enable_ipv6.patch 2014-06-21 17:52:16.000000000 +0200 >+++ miniupnpd/files/enable_ipv6.patch 1970-01-01 01:00:00.000000000 +0100 >@@ -1,11 +0,0 @@ >---- genconfig.sh.orig 2014-04-11 01:16:49.000000000 -0700 >-+++ genconfig.sh 2014-04-26 18:23:04.000000000 -0700 >-@@ -417,7 +417,7 @@ >- if [ -n "$IPV6" ]; then >- echo "#define ENABLE_IPV6" >> ${CONFIGFILE} >- else >-- echo "/*#define ENABLE_IPV6*/" >> ${CONFIGFILE} >-+ echo "#define ENABLE_IPV6" >> ${CONFIGFILE} >- fi >- echo "" >> ${CONFIGFILE} >- >diff -ruN miniupnpd.orig/files/enable_leasefile.patch miniupnpd/files/enable_leasefile.patch >--- miniupnpd.orig/files/enable_leasefile.patch 2014-06-21 17:52:16.000000000 +0200 >+++ miniupnpd/files/enable_leasefile.patch 1970-01-01 01:00:00.000000000 +0100 >@@ -1,11 +0,0 @@ >---- genconfig.sh.orig 2014-04-22 00:37:51.000000000 -0700 >-+++ genconfig.sh 2014-04-26 18:01:49.000000000 -0700 >-@@ -393,7 +393,7 @@ >- if [ -n "$LEASEFILE" ] ; then >- echo "#define ENABLE_LEASEFILE" >> ${CONFIGFILE} >- else >-- echo "/*#define ENABLE_LEASEFILE*/" >> ${CONFIGFILE} >-+ echo "#define ENABLE_LEASEFILE" >> ${CONFIGFILE} >- fi >- echo "" >> ${CONFIGFILE} >- >diff -ruN miniupnpd.orig/files/enable_upnp_strict.patch miniupnpd/files/enable_upnp_strict.patch >--- miniupnpd.orig/files/enable_upnp_strict.patch 2014-06-21 17:52:16.000000000 +0200 >+++ miniupnpd/files/enable_upnp_strict.patch 1970-01-01 01:00:00.000000000 +0100 >@@ -1,11 +0,0 @@ >---- genconfig.sh.orig 2014-04-11 01:16:49.000000000 -0700 >-+++ genconfig.sh 2014-04-26 18:23:27.000000000 -0700 >-@@ -472,7 +472,7 @@ >- if [ -n "$STRICT" ] ; then >- echo "#define UPNP_STRICT" >> ${CONFIGFILE} >- else >-- echo "/*#define UPNP_STRICT*/" >> ${CONFIGFILE} >-+ echo "#define UPNP_STRICT" >> ${CONFIGFILE} >- fi >- echo "" >> ${CONFIGFILE} >- >diff -ruN miniupnpd.orig/files/extra-patch-portinuse.c miniupnpd/files/extra-patch-portinuse.c >--- miniupnpd.orig/files/extra-patch-portinuse.c 2019-12-16 09:13:39.000000000 +0100 >+++ miniupnpd/files/extra-patch-portinuse.c 1970-01-01 01:00:00.000000000 +0100 >@@ -1,49 +0,0 @@ >---- portinuse.c.orig 2017-11-02 17:38:02 UTC >-+++ portinuse.c >-@@ -280,7 +280,7 @@ static struct nlist list[] = { >- struct xinpgen *xig, *exig; >- struct xinpcb *xip; >- struct xtcpcb *xtp; >-- struct inpcb *inp; >-+ struct in_conninfo *inc; >- void *buf = NULL; >- size_t len; >- >-@@ -339,7 +339,8 @@ static struct nlist list[] = { >- free(buf); >- return -1; >- } >-- inp = &xtp->xt_inp; >-+ xip = &xtp->xt_inp; >-+ inc = &xip->inp_inc; >- break; >- case IPPROTO_UDP: >- xip = (struct xinpcb *)xig; >-@@ -349,21 +350,21 @@ static struct nlist list[] = { >- free(buf); >- return -1; >- } >-- inp = &xip->xi_inp; >-+ inc = &xip->inp_inc; >- break; >- default: >- abort(); >- } >- /* no support for IPv6 */ >-- if ((inp->inp_vflag & INP_IPV6) != 0) >-+ if ((xip->inp_vflag & INP_IPV6) != 0) >- continue; >- syslog(LOG_DEBUG, "%08lx:%hu %08lx:%hu <=> %hu %08lx:%hu", >-- (u_long)inp->inp_laddr.s_addr, ntohs(inp->inp_lport), >-- (u_long)inp->inp_faddr.s_addr, ntohs(inp->inp_fport), >-+ (u_long)inc->inc_laddr.s_addr, ntohs(inc->inc_lport), >-+ (u_long)inc->inc_faddr.s_addr, ntohs(inc->inc_fport), >- eport, (u_long)ip_addr.s_addr, iport >- ); >-- if (eport == (unsigned)ntohs(inp->inp_lport)) { >-- if (inp->inp_laddr.s_addr == INADDR_ANY || inp->inp_laddr.s_addr == ip_addr.s_addr) { >-+ if (eport == (unsigned)ntohs(inc->inc_lport)) { >-+ if (inc->inc_laddr.s_addr == INADDR_ANY || inc->inc_laddr.s_addr == ip_addr.s_addr) { >- found++; >- break; /* don't care how many, just that we found at least one */ >- } >diff -ruN miniupnpd.orig/files/patch-Makefile miniupnpd/files/patch-Makefile >--- miniupnpd.orig/files/patch-Makefile 2018-06-04 06:55:48.000000000 +0200 >+++ miniupnpd/files/patch-Makefile 1970-01-01 01:00:00.000000000 +0100 >@@ -1,35 +0,0 @@ >---- Makefile.orig 2018-05-08 01:27:03.541852000 +0800 >-+++ Makefile 2018-05-08 01:28:27.611102000 +0800 >-@@ -162,8 +162,7 @@ >- >- INSTALLBINDIR = $(PREFIX)/sbin >- INSTALLETCDIR = $(PREFIX)/etc >--# INSTALLMANDIR = $(PREFIX)/man >--INSTALLMANDIR = /usr/share/man >-+INSTALLMANDIR = $(MANPREFIX)/man >- >- all: $(EXECUTABLES) >- >-@@ -181,10 +180,10 @@ >- $(INSTALL) -d $(DESTDIR)$(INSTALLBINDIR) >- $(INSTALL) -m 755 miniupnpd $(DESTDIR)$(INSTALLBINDIR) >- $(INSTALL) -d $(DESTDIR)$(INSTALLETCDIR) >-- $(INSTALL) -b miniupnpd.conf $(DESTDIR)$(INSTALLETCDIR) >-+ $(INSTALL) -b miniupnpd.conf $(DESTDIR)$(INSTALLETCDIR)/miniupnpd.conf.sample >- # TODO : install man page correctly >--# $(INSTALL) -d $(INSTALLMANDIR) >--# $(INSTALL) miniupnpd.8 $(INSTALLMANDIR)/cat8/miniupnpd.0 >-+ $(INSTALL) -d $(DESTDIR)$(INSTALLMANDIR)/man8 >-+ $(INSTALL) miniupnpd.8 $(DESTDIR)$(INSTALLMANDIR)/man8/miniupnpd.8 >- >- # genuuid is using the uuid cli tool available under OpenBSD 4.0 in >- # the uuid-1.5.0 package >-@@ -225,7 +224,7 @@ >- testssdppktgen.c >- >- miniupnpd: config.h $(ALLOBJS) >-- $(CC) $(LDFLAGS) -o $@ $(ALLOBJS) $(LIBS) >-+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ALLOBJS) $(LIBS) >- >- # BSDmake : >- # $(CC) $(LDFLAGS) -o $@ $> $(LIBS) >diff -ruN miniupnpd.orig/files/patch-Makefile.bsd miniupnpd/files/patch-Makefile.bsd >--- miniupnpd.orig/files/patch-Makefile.bsd 1970-01-01 01:00:00.000000000 +0100 >+++ miniupnpd/files/patch-Makefile.bsd 2020-06-01 22:04:46.706193000 +0200 >@@ -0,0 +1,35 @@ >+--- Makefile.bsd.orig 2018-05-08 01:27:03.541852000 +0800 >++++ Makefile.bsd 2018-05-08 01:28:27.611102000 +0800 >+@@ -162,8 +162,7 @@ >+ >+ INSTALLBINDIR = $(PREFIX)/sbin >+ INSTALLETCDIR = $(PREFIX)/etc >+-# INSTALLMANDIR = $(PREFIX)/man >+-INSTALLMANDIR = /usr/share/man >++INSTALLMANDIR = $(MANPREFIX)/man >+ >+ all: $(EXECUTABLES) >+ >+@@ -181,10 +180,10 @@ >+ $(INSTALL) -d $(DESTDIR)$(INSTALLBINDIR) >+ $(INSTALL) -m 755 miniupnpd $(DESTDIR)$(INSTALLBINDIR) >+ $(INSTALL) -d $(DESTDIR)$(INSTALLETCDIR) >+- $(INSTALL) -b miniupnpd.conf $(DESTDIR)$(INSTALLETCDIR) >++ $(INSTALL) -b miniupnpd.conf $(DESTDIR)$(INSTALLETCDIR)/miniupnpd.conf.sample >+ # TODO : install man page correctly >+-# $(INSTALL) -d $(INSTALLMANDIR) >+-# $(INSTALL) miniupnpd.8 $(INSTALLMANDIR)/cat8/miniupnpd.0 >++ $(INSTALL) -d $(DESTDIR)$(INSTALLMANDIR)/man8 >++ $(INSTALL) miniupnpd.8 $(DESTDIR)$(INSTALLMANDIR)/man8/miniupnpd.8 >+ >+ # genuuid is using the uuid cli tool available under OpenBSD 4.0 in >+ # the uuid-1.5.0 package >+@@ -225,7 +224,7 @@ >+ testssdppktgen.c >+ >+ miniupnpd: config.h $(ALLOBJS) >+- $(CC) $(LDFLAGS) -o $@ $(ALLOBJS) $(LIBS) >++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ALLOBJS) $(LIBS) >+ >+ # BSDmake : >+ # $(CC) $(LDFLAGS) -o $@ $> $(LIBS) >diff -ruN miniupnpd.orig/files/pf_enable_filter_rules.patch miniupnpd/files/pf_enable_filter_rules.patch >--- miniupnpd.orig/files/pf_enable_filter_rules.patch 2014-01-24 01:14:07.000000000 +0100 >+++ miniupnpd/files/pf_enable_filter_rules.patch 1970-01-01 01:00:00.000000000 +0100 >@@ -1,11 +0,0 @@ >---- genconfig.sh.orig 2012-06-18 18:14:32.899227837 +0200 >-+++ genconfig.sh 2012-06-18 18:14:45.089227683 +0200 >-@@ -302,7 +302,7 @@ >- >- echo "/* Uncomment the following line to enable generation of" >> ${CONFIGFILE} >- echo " * filter rules with pf */" >> ${CONFIGFILE} >--echo "/*#define PF_ENABLE_FILTER_RULES*/">> ${CONFIGFILE} >-+echo "#define PF_ENABLE_FILTER_RULES">> ${CONFIGFILE} >- echo "" >> ${CONFIGFILE} >- >- echo "/* Uncomment the following line to enable caching of results of" >> ${CONFIGFILE}
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:
squat
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 246925
: 215150 |
215469