FreeBSD Bugzilla – Attachment 215469 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]
Revised patch (see my comment)
miniupnpd-revised1.patch (text/plain), 13.57 KB, created by
Emanuel Haupt
on 2020-06-11 20:47:12 UTC
(
hide
)
Description:
Revised patch (see my comment)
Filename:
MIME Type:
Creator:
Emanuel Haupt
Created:
2020-06-11 20:47:12 UTC
Size:
13.57 KB
patch
obsolete
>Index: ports/net/miniupnpd/Makefile >=================================================================== >--- ports/net/miniupnpd/Makefile (revision 538533) >+++ ports/net/miniupnpd/Makefile (working copy) >@@ -2,7 +2,7 @@ > # $FreeBSD$ > > PORTNAME= miniupnpd >-PORTVERSION= 2.1.20190210 >+PORTVERSION= 2.1.20200510 > PORTEPOCH= 1 > CATEGORIES= net > MASTER_SITES= http://miniupnp.tuxfamily.org/files/ \ >@@ -15,36 +15,40 @@ > > USES= cpe ssl > CPE_VENDOR= miniupnp_project >-PLIST_FILES= etc/miniupnpd.conf.sample sbin/miniupnpd \ >- man/man8/miniupnpd.8.gz >-MAKE_JOBS_UNSAFE=yes > USE_RC_SUBR= miniupnpd > >+HAS_CONFIGURE= yes >+MAKE_JOBS_UNSAFE= yes >+ > 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 >-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 >+PLIST_FILES= etc/miniupnpd.conf.sample \ >+ man/man8/miniupnpd.8.gz \ >+ sbin/miniupnpd > >-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 >+OPTIONS_DEFINE= CHECK_PORTINUSE IPV6 LEASEFILE UPNP_IGDV2 \ >+ UPNP_STRICT >+OPTIONS_DEFAULT= AUTODETECT_FW >+OPTIONS_SINGLE= FIREWALL >+OPTIONS_SINGLE_FIREWALL= AUTODETECT_FW PF IPFW >+AUTODETECT_FW_DESC= Try to autodetect firewall type >+CHECK_PORTINUSE_DESC= Check if ports are in use >+IPFW_DESC= Use IPFW as firewall type >+LEASEFILE_DESC= Enable lease file >+PF_DESC= Use PF as firewall type >+UPNP_IGDV2_DESC= Build an IGDv2 instead of an IGDv1 >+UPNP_STRICT_DESC= More strict UPnP specification compliance > >-.include <bsd.port.options.mk> >+CHECK_PORTINUSE_CONFIGURE_ON= --portinuse >+IPV6_CONFIGURE_ON= --ipv6 >+LEASEFILE_CONFIGURE_ON= --leasefile >+PF_CONFIGURE_ON= --firewall=pf >+UPNP_IGDV2_CONFIGURE_ON= --igd2 >+UPNP_STRICT_CONFIGURE_ON= --strict > >-.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200000 >-EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-portinuse.c >-.endif >+post-patch: >+ @${REINPLACE_CMD} -e 's|\(-lssl -lcrypto\)|$$(LDFLAGS) \1|g' \ >+ ${WRKSRC}/Makefile.bsd > >-post-patch: >- ${REINPLACE_CMD} -e 's|\(-lssl -lcrypto\)|$$(LDFLAGS) \1|g' \ >- ${WRKSRC}/Makefile >- > .include <bsd.port.mk> >Index: ports/net/miniupnpd/distinfo >=================================================================== >--- ports/net/miniupnpd/distinfo (revision 538533) >+++ ports/net/miniupnpd/distinfo (working copy) >@@ -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 >Index: ports/net/miniupnpd/files/enable_check_portinuse.patch >=================================================================== >--- ports/net/miniupnpd/files/enable_check_portinuse.patch (revision 538533) >+++ ports/net/miniupnpd/files/enable_check_portinuse.patch (nonexistent) >@@ -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} >- > >Property changes on: ports/net/miniupnpd/files/enable_check_portinuse.patch >___________________________________________________________________ >Deleted: fbsd:nokeywords >## -1 +0,0 ## >-yes >\ No newline at end of property >Index: ports/net/miniupnpd/files/enable_igdv2.patch >=================================================================== >--- ports/net/miniupnpd/files/enable_igdv2.patch (revision 538533) >+++ ports/net/miniupnpd/files/enable_igdv2.patch (nonexistent) >@@ -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} >- > >Property changes on: ports/net/miniupnpd/files/enable_igdv2.patch >___________________________________________________________________ >Deleted: fbsd:nokeywords >## -1 +0,0 ## >-yes >\ No newline at end of property >Index: ports/net/miniupnpd/files/enable_ipv6.patch >=================================================================== >--- ports/net/miniupnpd/files/enable_ipv6.patch (revision 538533) >+++ ports/net/miniupnpd/files/enable_ipv6.patch (nonexistent) >@@ -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} >- > >Property changes on: ports/net/miniupnpd/files/enable_ipv6.patch >___________________________________________________________________ >Deleted: fbsd:nokeywords >## -1 +0,0 ## >-yes >\ No newline at end of property >Index: ports/net/miniupnpd/files/enable_leasefile.patch >=================================================================== >--- ports/net/miniupnpd/files/enable_leasefile.patch (revision 538533) >+++ ports/net/miniupnpd/files/enable_leasefile.patch (nonexistent) >@@ -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} >- > >Property changes on: ports/net/miniupnpd/files/enable_leasefile.patch >___________________________________________________________________ >Deleted: fbsd:nokeywords >## -1 +0,0 ## >-yes >\ No newline at end of property >Index: ports/net/miniupnpd/files/enable_upnp_strict.patch >=================================================================== >--- ports/net/miniupnpd/files/enable_upnp_strict.patch (revision 538533) >+++ ports/net/miniupnpd/files/enable_upnp_strict.patch (nonexistent) >@@ -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} >- > >Property changes on: ports/net/miniupnpd/files/enable_upnp_strict.patch >___________________________________________________________________ >Deleted: fbsd:nokeywords >## -1 +0,0 ## >-yes >\ No newline at end of property >Index: ports/net/miniupnpd/files/extra-patch-portinuse.c >=================================================================== >--- ports/net/miniupnpd/files/extra-patch-portinuse.c (revision 538533) >+++ ports/net/miniupnpd/files/extra-patch-portinuse.c (nonexistent) >@@ -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 */ >- } > >Property changes on: ports/net/miniupnpd/files/extra-patch-portinuse.c >___________________________________________________________________ >Deleted: fbsd:nokeywords >## -1 +0,0 ## >-ON >\ No newline at end of property >Index: ports/net/miniupnpd/files/patch-Makefile >=================================================================== >--- ports/net/miniupnpd/files/patch-Makefile (revision 538533) >+++ ports/net/miniupnpd/files/patch-Makefile (nonexistent) >@@ -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) > >Property changes on: ports/net/miniupnpd/files/patch-Makefile >___________________________________________________________________ >Deleted: fbsd:nokeywords >## -1 +0,0 ## >-yes >\ No newline at end of property >Index: ports/net/miniupnpd/files/patch-Makefile.bsd >=================================================================== >--- ports/net/miniupnpd/files/patch-Makefile.bsd (nonexistent) >+++ ports/net/miniupnpd/files/patch-Makefile.bsd (working copy) >@@ -0,0 +1,35 @@ >+--- Makefile.bsd.orig 2020-05-10 16:58:42 UTC >++++ Makefile.bsd >+@@ -121,8 +121,7 @@ LIBS += -lssl -lcrypto >+ >+ INSTALLBINDIR = $(PREFIX)/sbin >+ INSTALLETCDIR = $(PREFIX)/etc >+-# INSTALLMANDIR = $(PREFIX)/man >+-INSTALLMANDIR = /usr/share/man >++INSTALLMANDIR = $(MANPREFIX)/man >+ >+ all: $(EXECUTABLES) >+ >+@@ -140,10 +139,10 @@ install: miniupnpd genuuid >+ $(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 >+@@ -187,7 +186,7 @@ dox: miniupnpd.doxyconf >+ $(DOXYGEN) $> >+ >+ miniupnpd: config.h $(ALLOBJS) >+- $(CC) $(LDFLAGS) -o $@ $(ALLOBJS) $(LIBS) >++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ALLOBJS) $(LIBS) >+ >+ # BSDmake : >+ # $(CC) $(LDFLAGS) -o $@ $> $(LIBS) >Index: ports/net/miniupnpd/files/pf_enable_filter_rules.patch >=================================================================== >--- ports/net/miniupnpd/files/pf_enable_filter_rules.patch (revision 538533) >+++ ports/net/miniupnpd/files/pf_enable_filter_rules.patch (nonexistent) >@@ -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} > >Property changes on: ports/net/miniupnpd/files/pf_enable_filter_rules.patch >___________________________________________________________________ >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
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?
(
squat
)
Actions:
View
|
Diff
Attachments on
bug 246925
:
215150
| 215469