Date: Mon, 24 Feb 2014 12:49:55 +0000 (UTC) From: Emanuel Haupt <ehaupt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r345826 - head/net-mgmt/rotorouter Message-ID: <201402241249.s1OCntf2012217@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 -@unexec if cmp -s %D/etc/rotorouter.conf %D/etc/rotorouter.conf-example; then rm -f %D/etc/rotorouter.conf; fi +@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 +@exec if [ ! -f %D/etc/rotorouter.conf ]; then cp -p %D/%F %B/rotorouter.conf; fi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402241249.s1OCntf2012217>