Lines 2-8
Link Here
|
2 |
# $FreeBSD: head/net/miniupnpd/Makefile 520227 2019-12-16 08:13:39Z pi $ |
2 |
# $FreeBSD: head/net/miniupnpd/Makefile 520227 2019-12-16 08:13:39Z pi $ |
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 14-19
Link Here
|
14 |
LICENSE= BSD3CLAUSE |
14 |
LICENSE= BSD3CLAUSE |
15 |
|
15 |
|
16 |
USES= cpe ssl |
16 |
USES= cpe ssl |
|
|
17 |
HAS_CONFIGURE= yes |
17 |
CPE_VENDOR= miniupnp_project |
18 |
CPE_VENDOR= miniupnp_project |
18 |
PLIST_FILES= etc/miniupnpd.conf.sample sbin/miniupnpd \ |
19 |
PLIST_FILES= etc/miniupnpd.conf.sample sbin/miniupnpd \ |
19 |
man/man8/miniupnpd.8.gz |
20 |
man/man8/miniupnpd.8.gz |
Lines 23-50
Link Here
|
23 |
CFLAGS+= -I${OPENSSLINC} |
24 |
CFLAGS+= -I${OPENSSLINC} |
24 |
LDFLAGS+= -L${OPENSSLLIB} |
25 |
LDFLAGS+= -L${OPENSSLLIB} |
25 |
|
26 |
|
26 |
OPTIONS_DEFINE= PF_FILTER_RULES CHECK_PORTINUSE IPV6 UPNP_IGDV2 UPNP_STRICT LEASEFILE |
27 |
OPTIONS_DEFINE= CHECK_PORTINUSE IPV6 UPNP_IGDV2 UPNP_STRICT LEASEFILE |
27 |
PF_FILTER_RULES_DESC= Enable pf generation of filter rules |
28 |
OPTIONS_DEFAULT= AUTODETECT_FW |
|
|
29 |
OPTIONS_SINGLE= FIREWALL |
30 |
OPTIONS_SINGLE_FIREWALL= AUTODETECT_FW PF IPFW |
31 |
AUTODETECT_FW_DESC= Try to autodetect firewall type |
32 |
PF_DESC= Use PF as firewall type |
33 |
IPFW_DESC= Use IPFW as firewall type |
28 |
CHECK_PORTINUSE_DESC= Check if ports are in use |
34 |
CHECK_PORTINUSE_DESC= Check if ports are in use |
29 |
UPNP_IGDV2_DESC= Build an IGDv2 instead of an IGDv1 |
35 |
UPNP_IGDV2_DESC= Build an IGDv2 instead of an IGDv1 |
30 |
UPNP_STRICT_DESC= More strict UPnP specification compliance |
36 |
UPNP_STRICT_DESC= More strict UPnP specification compliance |
31 |
LEASEFILE_DESC= Enable lease file |
37 |
LEASEFILE_DESC= Enable lease file |
32 |
|
38 |
|
33 |
PF_FILTER_RULES_EXTRA_PATCHES= ${PATCHDIR}/pf_enable_filter_rules.patch |
|
|
34 |
CHECK_PORTINUSE_EXTRA_PATCHES= ${PATCHDIR}/enable_check_portinuse.patch |
35 |
IPV6_EXTRA_PATCHES= ${PATCHDIR}/enable_ipv6.patch |
36 |
UPNP_IGDV2_EXTRA_PATCHES= ${PATCHDIR}/enable_igdv2.patch |
37 |
UPNP_STRICT_EXTRA_PATCHES= ${PATCHDIR}/enable_upnp_strict.patch |
38 |
LEASEFILE_EXTRA_PATCHES= ${PATCHDIR}/enable_leasefile.patch |
39 |
|
40 |
.include <bsd.port.options.mk> |
39 |
.include <bsd.port.options.mk> |
41 |
|
40 |
|
42 |
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200000 |
41 |
.if ${PORT_OPTIONS:MPF} |
43 |
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-portinuse.c |
42 |
CONFIGURE_ARGS+= --firewall=pf |
44 |
.endif |
43 |
.endif |
|
|
44 |
#if ${PORT_OPTIONS:MIPFW} |
45 |
#CONFIGURE_ARGS+= --firewall=ipfw |
46 |
#.endif |
47 |
.if ${PORT_OPTIONS:MCHECK_PORTINUSE} |
48 |
CONFIGURE_ARGS+= --portinuse |
49 |
.endif |
50 |
.if ${PORT_OPTIONS:MIPV6} |
51 |
CONFIGURE_ARGS+= --ipv6 |
52 |
.endif |
53 |
.if ${PORT_OPTIONS:MUPNP_IGDV2} |
54 |
CONFIGURE_ARGS+= --igd2 |
55 |
.endif |
56 |
.if ${PORT_OPTIONS:MUPNP_STRICT} |
57 |
CONFIGURE_ARGS+= --strict |
58 |
.endif |
59 |
.if ${PORT_OPTIONS:MLEASEFILE} |
60 |
CONFIGURE_ARGS+= --leasefile |
61 |
.endif |
45 |
|
62 |
|
46 |
post-patch: |
63 |
post-patch: |
47 |
${REINPLACE_CMD} -e 's|\(-lssl -lcrypto\)|$$(LDFLAGS) \1|g' \ |
64 |
${REINPLACE_CMD} -e 's|\(-lssl -lcrypto\)|$$(LDFLAGS) \1|g' \ |
48 |
${WRKSRC}/Makefile |
65 |
${WRKSRC}/Makefile.bsd |
49 |
|
66 |
|
50 |
.include <bsd.port.mk> |
67 |
.include <bsd.port.mk> |