Lines 2-8
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= miniupnpd |
4 |
PORTNAME= miniupnpd |
5 |
PORTVERSION= 2.1.20190210 |
5 |
PORTVERSION= 2.1.20200510 |
6 |
PORTEPOCH= 1 |
6 |
PORTEPOCH= 1 |
7 |
CATEGORIES= net |
7 |
CATEGORIES= net |
8 |
MASTER_SITES= http://miniupnp.tuxfamily.org/files/ \ |
8 |
MASTER_SITES= http://miniupnp.tuxfamily.org/files/ \ |
Lines 15-50
Link Here
|
15 |
|
15 |
|
16 |
USES= cpe ssl |
16 |
USES= cpe ssl |
17 |
CPE_VENDOR= miniupnp_project |
17 |
CPE_VENDOR= miniupnp_project |
18 |
PLIST_FILES= etc/miniupnpd.conf.sample sbin/miniupnpd \ |
|
|
19 |
man/man8/miniupnpd.8.gz |
20 |
MAKE_JOBS_UNSAFE=yes |
21 |
USE_RC_SUBR= miniupnpd |
18 |
USE_RC_SUBR= miniupnpd |
22 |
|
19 |
|
|
|
20 |
HAS_CONFIGURE= yes |
21 |
MAKE_JOBS_UNSAFE= yes |
22 |
|
23 |
CFLAGS+= -I${OPENSSLINC} |
23 |
CFLAGS+= -I${OPENSSLINC} |
24 |
LDFLAGS+= -L${OPENSSLLIB} |
24 |
LDFLAGS+= -L${OPENSSLLIB} |
25 |
|
25 |
|
26 |
OPTIONS_DEFINE= PF_FILTER_RULES CHECK_PORTINUSE IPV6 UPNP_IGDV2 UPNP_STRICT LEASEFILE |
26 |
PLIST_FILES= etc/miniupnpd.conf.sample \ |
27 |
PF_FILTER_RULES_DESC= Enable pf generation of filter rules |
27 |
man/man8/miniupnpd.8.gz \ |
28 |
CHECK_PORTINUSE_DESC= Check if ports are in use |
28 |
sbin/miniupnpd |
29 |
UPNP_IGDV2_DESC= Build an IGDv2 instead of an IGDv1 |
|
|
30 |
UPNP_STRICT_DESC= More strict UPnP specification compliance |
31 |
LEASEFILE_DESC= Enable lease file |
32 |
|
29 |
|
33 |
PF_FILTER_RULES_EXTRA_PATCHES= ${PATCHDIR}/pf_enable_filter_rules.patch |
30 |
OPTIONS_DEFINE= CHECK_PORTINUSE IPV6 LEASEFILE UPNP_IGDV2 \ |
34 |
CHECK_PORTINUSE_EXTRA_PATCHES= ${PATCHDIR}/enable_check_portinuse.patch |
31 |
UPNP_STRICT |
35 |
IPV6_EXTRA_PATCHES= ${PATCHDIR}/enable_ipv6.patch |
32 |
OPTIONS_DEFAULT= AUTODETECT_FW |
36 |
UPNP_IGDV2_EXTRA_PATCHES= ${PATCHDIR}/enable_igdv2.patch |
33 |
OPTIONS_SINGLE= FIREWALL |
37 |
UPNP_STRICT_EXTRA_PATCHES= ${PATCHDIR}/enable_upnp_strict.patch |
34 |
OPTIONS_SINGLE_FIREWALL= AUTODETECT_FW PF IPFW |
38 |
LEASEFILE_EXTRA_PATCHES= ${PATCHDIR}/enable_leasefile.patch |
35 |
AUTODETECT_FW_DESC= Try to autodetect firewall type |
|
|
36 |
CHECK_PORTINUSE_DESC= Check if ports are in use |
37 |
IPFW_DESC= Use IPFW as firewall type |
38 |
LEASEFILE_DESC= Enable lease file |
39 |
PF_DESC= Use PF as firewall type |
40 |
UPNP_IGDV2_DESC= Build an IGDv2 instead of an IGDv1 |
41 |
UPNP_STRICT_DESC= More strict UPnP specification compliance |
39 |
|
42 |
|
40 |
.include <bsd.port.options.mk> |
43 |
CHECK_PORTINUSE_CONFIGURE_ON= --portinuse |
|
|
44 |
IPV6_CONFIGURE_ON= --ipv6 |
45 |
LEASEFILE_CONFIGURE_ON= --leasefile |
46 |
PF_CONFIGURE_ON= --firewall=pf |
47 |
UPNP_IGDV2_CONFIGURE_ON= --igd2 |
48 |
UPNP_STRICT_CONFIGURE_ON= --strict |
41 |
|
49 |
|
42 |
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200000 |
50 |
post-patch: |
43 |
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-portinuse.c |
51 |
@${REINPLACE_CMD} -e 's|\(-lssl -lcrypto\)|$$(LDFLAGS) \1|g' \ |
44 |
.endif |
52 |
${WRKSRC}/Makefile.bsd |
45 |
|
53 |
|
46 |
post-patch: |
|
|
47 |
${REINPLACE_CMD} -e 's|\(-lssl -lcrypto\)|$$(LDFLAGS) \1|g' \ |
48 |
${WRKSRC}/Makefile |
49 |
|
50 |
.include <bsd.port.mk> |
54 |
.include <bsd.port.mk> |