Skip to content

Commit 3301535

Browse files
net/miniupnpd: Build improvements
1 parent c19c294 commit 3301535

File tree

1 file changed

+13
-17
lines changed

1 file changed

+13
-17
lines changed

net/miniupnpd/Makefile

Lines changed: 13 additions & 17 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,25 @@ 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 UPNP_VENDORCFG
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
44-
45-
CHECK_PORTINUSE_CONFIGURE_ON= --portinuse
46-
IPV6_CONFIGURE_ON= --ipv6
47-
LEASEFILE_CONFIGURE_ON= --leasefile
48-
UPNP_IGDV2_CONFIGURE_ON= --igd2
49-
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
41+
UPNP_DISABLEPPPCONN_DESC= Disable legacy (IGDv1 only) WANPPPConnection
42+
UPNP_VENDORCFG_DESC= Enable configuration of manufacturer info
43+
44+
CHECK_PORTINUSE_CONFIGURE_ON= --portinuse
45+
IPV6_CONFIGURE_ON= --ipv6
46+
LEASEFILE_CONFIGURE_ON= --leasefile
47+
UPNP_IGDV2_CONFIGURE_ON= --igd2
48+
UPNP_STRICT_CONFIGURE_ON= --strict
49+
UPNP_DISABLEPPPCONN_CONFIGURE_ON= --disable-pppconn
50+
UPNP_VENDORCFG_CONFIGURE_ON= --vendorcfg
5551

5652
.include <bsd.port.mk>

0 commit comments

Comments
 (0)