aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/bsdstats
diff options
context:
space:
mode:
authorscrappy <scrappy@FreeBSD.org>2006-09-04 10:47:41 +0800
committerscrappy <scrappy@FreeBSD.org>2006-09-04 10:47:41 +0800
commitcbd8c371cd9a206fdafb8409058aef035eb3275c (patch)
treedd9b3b03f3a4e0a2db094ebe87491fd67659e870 /sysutils/bsdstats
parent555ad2680e990eb37d9890feb0726bca8d6075fa (diff)
downloadfreebsd-ports-gnome-cbd8c371cd9a206fdafb8409058aef035eb3275c.tar.gz
freebsd-ports-gnome-cbd8c371cd9a206fdafb8409058aef035eb3275c.tar.zst
freebsd-ports-gnome-cbd8c371cd9a206fdafb8409058aef035eb3275c.zip
have it prompt, similar to postfix, whether or not you wish to activate
the script when you install it Submitted by: Antony Mawer <antony@mawer.org>
Diffstat (limited to 'sysutils/bsdstats')
-rw-r--r--sysutils/bsdstats/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/sysutils/bsdstats/Makefile b/sysutils/bsdstats/Makefile
index 056d30108b15..e09748e2482b 100644
--- a/sysutils/bsdstats/Makefile
+++ b/sysutils/bsdstats/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= bsdstats
-PORTVERSION= 3.1
+PORTVERSION= 3.2
CATEGORIES= sysutils
DISTFILES=
@@ -25,5 +25,14 @@ do-install:
${CP} ${FILESDIR}/300.statistics ${LOCALBASE}/etc/periodic/monthly
post-install:
${CAT} ${PKGMESSAGE}
+.if defined(BATCH) || defined(PACKAGE_BUILDING)
+ @${ECHO_MSG} " To activate monthly statistics reporting in /etc/periodic.conf,"
+ @${ECHO_MSG} " execute the following as root user:"
+ @${ECHO_MSG}
+ @${ECHO_MSG} "PKG_PREFIX=\"${PREFIX}\" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL"
+ @${ECHO_MSG}
+.else
+ @PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+.endif
.include <bsd.port.post.mk>