Skip to content

Commit fb2368d

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

File tree

2 files changed

+21
-93
lines changed

2 files changed

+21
-93
lines changed

net/miniupnpd/Makefile

Lines changed: 21 additions & 23 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/ \
@@ -11,46 +11,44 @@ PATCHFILES= 7949a7acb3b8471681157863387339ea2ca749fb.patch:-p2
1111

1212
MAINTAINER= [email protected]
1313
COMMENT= Lightweight UPnP IGD & PCP/NAT-PMP daemon which uses pf
14-
WWW= http://miniupnp.free.fr/
14+
WWW= https://miniupnp.tuxfamily.org/
1515

1616
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}
2424

2525
HAS_CONFIGURE= yes
2626
# unconditionally use pf, ipfw does not work on FreeBSD
27-
CONFIGURE_ARGS= --firewall=pf --libpfctl
28-
27+
CONFIGURE_ARGS= --firewall=pf \
28+
--libpfctl
29+
MAKE_ENV= MANPREFIX=${PREFIX}/share
2930
MAKE_JOBS_UNSAFE= yes
3031

31-
CFLAGS+= -I${OPENSSLINC}
32-
LDFLAGS+= -L${OPENSSLLIB} -lpfctl
33-
3432
PLIST_FILES= etc/miniupnpd.conf.sample \
35-
share/man/man8/miniupnpd.8.gz \
36-
sbin/miniupnpd
33+
sbin/miniupnpd \
34+
share/man/man8/miniupnpd.8.gz
3735

38-
OPTIONS_DEFINE= CHECK_PORTINUSE IPV6 LEASEFILE UPNP_IGDV2 \
39-
UPNP_STRICT
36+
OPTIONS_DEFINE= CHECK_PORTINUSE IPV6 LEASEFILE \
37+
UPNP_DISABLEPPPCONN UPNP_IGDV2 UPNP_STRICT \
38+
UPNP_VENDORCFG
4039
CHECK_PORTINUSE_DESC= Check if ports are in use
4140
LEASEFILE_DESC= Enable lease file
41+
UPNP_DISABLEPPPCONN_DESC= Disable additional legacy (IGDv1 only) WANPPPConnection
4242
UPNP_IGDV2_DESC= Build an IGDv2 instead of an IGDv1
4343
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
44+
UPNP_VENDORCFG_DESC= Enable configuration of manufacturer info
45+
46+
CHECK_PORTINUSE_CONFIGURE_ON= --portinuse
47+
IPV6_CONFIGURE_ON= --ipv6
48+
LEASEFILE_CONFIGURE_ON= --leasefile
49+
UPNP_DISABLEPPPCONN_CONFIGURE_ON= --disable-pppconn
50+
UPNP_IGDV2_CONFIGURE_ON= --igd2
51+
UPNP_STRICT_CONFIGURE_ON= --strict
52+
UPNP_VENDORCFG_CONFIGURE_ON= --vendorcfg
5553

5654
.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)