Skip to content

Commit d0420ae

Browse files
net/miniupnpd: Build improvements
Close freebsd#402
1 parent e599f10 commit d0420ae

File tree

2 files changed

+5
-81
lines changed

2 files changed

+5
-81
lines changed

net/miniupnpd/Makefile

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PORTNAME= miniupnpd
22
DISTVERSION= 2.3.9
3-
PORTREVISION= 1
3+
PORTREVISION= 2
44
PORTEPOCH= 1
55
CATEGORIES= net
66
MASTER_SITES= http://miniupnp.free.fr/files/ \
@@ -17,7 +17,7 @@ LICENSE= BSD3CLAUSE
1717

1818
LIB_DEPENDS= libpfctl.so:net/libpfctl
1919

20-
USES= cpe localbase:ldflags ssl
20+
USES= cpe
2121
CPE_VENDOR= miniupnp_project
2222

2323
USE_RC_SUBR= ${PORTNAME}
@@ -28,29 +28,23 @@ CONFIGURE_ARGS= --firewall=pf --libpfctl
2828

2929
MAKE_JOBS_UNSAFE= yes
3030

31-
CFLAGS+= -I${OPENSSLINC}
32-
LDFLAGS+= -L${OPENSSLLIB} -lpfctl
33-
3431
PLIST_FILES= etc/miniupnpd.conf.sample \
3532
share/man/man8/miniupnpd.8.gz \
3633
sbin/miniupnpd
3734

3835
OPTIONS_DEFINE= CHECK_PORTINUSE IPV6 LEASEFILE UPNP_IGDV2 \
39-
UPNP_STRICT
36+
UPNP_STRICT UPNP_DISABLEPPPCONN
4037
CHECK_PORTINUSE_DESC= Check if ports are in use
4138
LEASEFILE_DESC= Enable lease file
4239
UPNP_IGDV2_DESC= Build an IGDv2 instead of an IGDv1
4340
UPNP_STRICT_DESC= More strict UPnP specification compliance
41+
UPNP_DISABLEPPPCONN_DESC= Disable legacy (IGDv1 only) WANPPPConnection
4442

4543
CHECK_PORTINUSE_CONFIGURE_ON= --portinuse
4644
IPV6_CONFIGURE_ON= --ipv6
4745
LEASEFILE_CONFIGURE_ON= --leasefile
4846
UPNP_IGDV2_CONFIGURE_ON= --igd2
4947
UPNP_STRICT_CONFIGURE_ON= --strict
50-
51-
post-patch:
52-
@${REINPLACE_CMD} -e 's|\(-lssl -lcrypto\)|$$(LDFLAGS) \1|g' \
53-
-e 's|^INSTALLMANDIR.*|INSTALLMANDIR = ${PREFIX}/share/man|' \
54-
${WRKSRC}/Makefile.bsd
48+
UPNP_DISABLEPPPCONN_CONFIGURE_ON= --disable-pppconn
5549

5650
.include <bsd.port.mk>

net/miniupnpd/files/miniupnpd.conf.sample.in

Lines changed: 0 additions & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)