svn commit: r349114 - head/net/bird

Baptiste Daroussin bapt at FreeBSD.org
Tue Mar 25 08:17:17 UTC 2014


Author: bapt
Date: Tue Mar 25 08:17:16 2014
New Revision: 349114
URL: http://svnweb.freebsd.org/changeset/ports/349114
QAT: https://qat.redports.org/buildarchive/r349114/

Log:
  Support stage
  Use options helpers

Modified:
  head/net/bird/Makefile

Modified: head/net/bird/Makefile
==============================================================================
--- head/net/bird/Makefile	Tue Mar 25 08:14:07 2014	(r349113)
+++ head/net/bird/Makefile	Tue Mar 25 08:17:16 2014	(r349114)
@@ -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>


More information about the svn-ports-head mailing list