aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-03-25 08:17:16 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-03-25 08:17:16 +0000
commit0a1c5bdf9bc8e74d6750a180dd074db1be4ff45e (patch)
tree508ddda1e0a089c02e764b9d65b0198c4aa7e3bc
parent15f9a756178ad591cd1dbc94dca3a276f7a41246 (diff)
downloadports-0a1c5bdf9bc8e74d6750a180dd074db1be4ff45e.tar.gz
ports-0a1c5bdf9bc8e74d6750a180dd074db1be4ff45e.zip
Notes
-rw-r--r--net/bird/Makefile20
1 files changed, 4 insertions, 16 deletions
diff --git a/net/bird/Makefile b/net/bird/Makefile
index f134df4a058f..d1baaa2be418 100644
--- a/net/bird/Makefile
+++ b/net/bird/Makefile
@@ -31,16 +31,10 @@ SUB_LIST+= PORTNAME=${PORTNAME}
PLIST_SUB?= VER=""
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
+FIREWALL_EXTRA_PATCHES+= ${FILESDIR}/firewall_support.patch
+AGG_EXTRA_PATCHES+= ${FILESDIR}/agg_support.patch
-.if ${PORT_OPTIONS:MFIREWALL}
-EXTRA_PATCHES+= ${FILESDIR}/firewall_support.patch
-.endif
-
-.if ${PORT_OPTIONS:MAGG}
-EXTRA_PATCHES+= ${FILESDIR}/agg_support.patch
-.endif
+.include <bsd.port.options.mk>
post-patch:
.if ${PORT_OPTIONS:MAGG}
@@ -59,10 +53,4 @@ post-patch:
@${REINPLACE_CMD} -e 's/\(proto_bfd\)/\1, proto_firewall/' ${WRKSRC}/nest/protocol.h
.endif
-post-install:
- @if [ ! -f ${PREFIX}/etc/${PORTNAME}.conf ]; then \
- ${CP} -p ${PREFIX}/etc/${PORTNAME}.conf.example ${PREFIX}/etc/${PORTNAME}.conf ; \
- ${CHMOD} 0640 ${PREFIX}/etc/${PORTNAME}.conf ; \
- fi
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>