aboutsummaryrefslogtreecommitdiffstats
path: root/net/miniupnpd/Makefile
blob: d7c6cf13fc91ce92d84430ccabdf57efbdd6466f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Created by: Daniel O'Connor <darius@dons.net.au>
# $FreeBSD$

PORTNAME=   miniupnpd
PORTVERSION=    1.8.20140523
PORTEPOCH=  1
CATEGORIES= net
MASTER_SITES=   http://miniupnp.tuxfamily.org/files/ \
        http://miniupnp.free.fr/files/

MAINTAINER= squat@squat.no
COMMENT=    UPnP IGD implementation which uses pf/ipf

SUB_FILES=  miniupnpd.conf.sample
SUB_LIST=   UUID=${UUID}

UUID!=      uuidgen
PLIST_FILES=    etc/miniupnpd.conf.sample sbin/miniupnpd \
        man/man8/miniupnpd.8.gz
MAKE_JOBS_UNSAFE=yes

USE_RC_SUBR=    miniupnpd

OPTIONS_DEFINE= PF_ENABLE_FILTER_RULES CHECK_PORTINUSE IPV6 UPNP_IGDV2 UPNP_STRICT LEASEFILE
PF_ENABLE_FILTER_RULES_DESC=    Enable pf generation of filter rules
CHECK_PORTINUSE_DESC=   Check if ports are in use
IPV6_DESC=  Enable IPv6
UPNP_IGDV2_DESC=    Build an IGDv2 instead of an IGDv1
UPNP_STRICT_DESC=   Be more strict regarding compliance with UPnP specifications
LEASEFILE_DESC= Enable lease file

PF_ENABLE_FILTER_RULES_EXTRA_PATCHES=   ${PATCHDIR}/pf_enable_filter_rules.patch
CHECK_PORTINUSE_EXTRA_PATCHES=  ${PATCHDIR}/enable_check_portinuse.patch
IPV6_EXTRA_PATCHES= ${PATCHDIR}/enable_ipv6.patch
UPNP_IGDV2_EXTRA_PATCHES=   ${PATCHDIR}/enable_igdv2.patch
UPNP_STRICT_EXTRA_PATCHES=  ${PATCHDIR}/enable_upnp_strict.patch
LEASEFILE_EXTRA_PATCHES=    ${PATCHDIR}/enable_leasefile.patch

post-patch:
    @${REINPLACE_CMD} 's|CFLAGS ?= -pipe -Os|CFLAGS ?= -pipe|' \
        ${WRKSRC}/Makefile

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/miniupnpd ${STAGEDIR}${PREFIX}/sbin
    ${INSTALL_DATA} ${WRKDIR}/miniupnpd.conf.sample \
        ${STAGEDIR}${PREFIX}/etc/miniupnpd.conf.sample
    ${INSTALL_MAN} ${WRKSRC}/miniupnpd.8 \
        ${STAGEDIR}${MAN8PREFIX}/man/man8/miniupnpd.8

.include <bsd.port.mk>