svn commit: r345826 - head/net-mgmt/rotorouter

Emanuel Haupt ehaupt at FreeBSD.org
Mon Feb 24 12:49:56 UTC 2014


Author: ehaupt
Date: Mon Feb 24 12:49:55 2014
New Revision: 345826
URL: http://svnweb.freebsd.org/changeset/ports/345826
QAT: https://qat.redports.org/buildarchive/r345826/

Log:
  Support staging

Modified:
  head/net-mgmt/rotorouter/Makefile
  head/net-mgmt/rotorouter/pkg-plist

Modified: head/net-mgmt/rotorouter/Makefile
==============================================================================
--- head/net-mgmt/rotorouter/Makefile	Mon Feb 24 12:47:37 2014	(r345825)
+++ head/net-mgmt/rotorouter/Makefile	Mon Feb 24 12:49:55 2014	(r345826)
@@ -17,22 +17,18 @@ SUB_FILES=	pkg-message
 
 USE_RC_SUBR=	rotorouter
 
-NO_STAGE=	yes
-.include <bsd.port.pre.mk>
-
 do-extract:
 	${MKDIR} ${WRKSRC}/src
 	${CP} ${FILESDIR}/rotorouter.c ${WRKSRC}/src
 
 do-build:
-		${CC} -lpcap -o ${WRKSRC}/src/rotorouter ${WRKSRC}/src/rotorouter.c
+	${CC} ${CFLAGS} -lpcap -o ${WRKSRC}/src/rotorouter ${WRKSRC}/src/rotorouter.c
 
 do-install:
-		@${INSTALL_DATA} -m 640 ${FILESDIR}/rotorouter.conf-example ${PREFIX}/etc
-		@${INSTALL_DATA} -m 640 ${FILESDIR}/rotorouter.conf-example ${PREFIX}/etc/rotorouter.conf
-		@${INSTALL_PROGRAM} ${WRKSRC}/src/rotorouter ${PREFIX}/sbin
-
-post-install:
-		@${CAT} ${PKGMESSAGE}
+	${INSTALL_DATA} ${FILESDIR}/rotorouter.conf-example \
+		${STAGEDIR}${PREFIX}/etc
+	${INSTALL_DATA} ${FILESDIR}/rotorouter.conf-example \
+		${STAGEDIR}${PREFIX}/etc/rotorouter.conf
+	${INSTALL_PROGRAM} ${WRKSRC}/src/rotorouter ${STAGEDIR}${PREFIX}/sbin
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/net-mgmt/rotorouter/pkg-plist
==============================================================================
--- head/net-mgmt/rotorouter/pkg-plist	Mon Feb 24 12:47:37 2014	(r345825)
+++ head/net-mgmt/rotorouter/pkg-plist	Mon Feb 24 12:49:55 2014	(r345826)
@@ -1,3 +1,4 @@
 sbin/rotorouter
- at unexec if cmp -s %D/etc/rotorouter.conf %D/etc/rotorouter.conf-example; then rm -f %D/etc/rotorouter.conf; fi
+ at unexec if cmp -s %D/etc/rotorouter.conf %D/etc/rotorouter.conf-example ; then rm -f %D/etc/rotorouter.conf; fi
 etc/rotorouter.conf-example
+ at exec if [ ! -f %D/etc/rotorouter.conf ]; then cp -p %D/%F %B/rotorouter.conf; fi


More information about the svn-ports-all mailing list