diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2015-03-03 02:54:57 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2015-03-03 02:54:57 +0000 |
commit | 037d0b8f2b6b335439518512e8ff2dfc37b42abc (patch) | |
tree | 0744471c5ee64f786cdd2f29b4f9cb880868a3df /sysutils/utcount | |
parent | 9fa3b658620200e9987a134f5c4641c2312f6bcd (diff) | |
download | ports-037d0b8f2b6b335439518512e8ff2dfc37b42abc.tar.gz ports-037d0b8f2b6b335439518512e8ff2dfc37b42abc.zip |
Notes
Diffstat (limited to 'sysutils/utcount')
-rw-r--r-- | sysutils/utcount/Makefile | 5 | ||||
-rw-r--r-- | sysutils/utcount/pkg-plist | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/sysutils/utcount/Makefile b/sysutils/utcount/Makefile index 297454a6f42b..4a807cdc34b9 100644 --- a/sysutils/utcount/Makefile +++ b/sysutils/utcount/Makefile @@ -3,6 +3,7 @@ PORTNAME= utcount PORTVERSION= 0.1 +PORTREVISION= 1 CATEGORIES= sysutils net MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} @@ -16,4 +17,8 @@ MAKE_ARGS= PREFIX="${STAGEDIR}${PREFIX}" \ post-build: ${STRIP_CMD} ${WRKSRC}/bin/count_client +post-install: + ${MV} ${STAGEDIR}${PREFIX}/etc/utcount.conf.default \ + ${STAGEDIR}${PREFIX}/etc/utcount.conf.sample + .include <bsd.port.mk> diff --git a/sysutils/utcount/pkg-plist b/sysutils/utcount/pkg-plist index 36788c970b5f..79eaadf4b938 100644 --- a/sysutils/utcount/pkg-plist +++ b/sysutils/utcount/pkg-plist @@ -6,6 +6,4 @@ bin/count_pppd bin/count_samba bin/count_user etc/rc.d/utcount.sh.default -@unexec if [ -f %D/etc/utcount.conf ] && cmp -s %D/etc/utcount.conf %D/etc/utcount.conf.default; then rm -f %D/etc/utcount.conf; fi -etc/utcount.conf.default -@exec if [ ! -f %D/etc/utcount.conf ] ; then cp -p %D/%F %B/utcount.conf; fi +@sample etc/utcount.conf.sample |