aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2014-02-24 20:49:55 +0800
committerehaupt <ehaupt@FreeBSD.org>2014-02-24 20:49:55 +0800
commit7cd2c733973247eec6658ec3aef97193f9a2dd29 (patch)
treea6a8ecb31e82f13c2048c785c10a596e0e15762f /net-mgmt
parent2debe3e3a445bdd7cce31cb688f1320da8ceb37c (diff)
downloadfreebsd-ports-gnome-7cd2c733973247eec6658ec3aef97193f9a2dd29.tar.gz
freebsd-ports-gnome-7cd2c733973247eec6658ec3aef97193f9a2dd29.tar.zst
freebsd-ports-gnome-7cd2c733973247eec6658ec3aef97193f9a2dd29.zip
Support staging
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/rotorouter/Makefile18
-rw-r--r--net-mgmt/rotorouter/pkg-plist3
2 files changed, 9 insertions, 12 deletions
diff --git a/net-mgmt/rotorouter/Makefile b/net-mgmt/rotorouter/Makefile
index 80fe069ba8e8..9492e6a92e6a 100644
--- a/net-mgmt/rotorouter/Makefile
+++ b/net-mgmt/rotorouter/Makefile
@@ -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>
diff --git a/net-mgmt/rotorouter/pkg-plist b/net-mgmt/rotorouter/pkg-plist
index ba5c7ea7a498..7904a04f8955 100644
--- a/net-mgmt/rotorouter/pkg-plist
+++ b/net-mgmt/rotorouter/pkg-plist
@@ -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