aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/bsdstats/Makefile
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2010-08-19 11:06:13 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2010-08-19 11:06:13 +0800
commit4b0b98818d0afe07c934565785f9b4a6a3c19361 (patch)
tree5e6e381ebb5b748b0b26bb742cdb96cbf193c8d7 /sysutils/bsdstats/Makefile
parentb7ccdfd3d7e6cd33194ff9b145602ef563e63604 (diff)
downloadfreebsd-ports-gnome-4b0b98818d0afe07c934565785f9b4a6a3c19361.tar.gz
freebsd-ports-gnome-4b0b98818d0afe07c934565785f9b4a6a3c19361.tar.zst
freebsd-ports-gnome-4b0b98818d0afe07c934565785f9b4a6a3c19361.zip
- Respect LOCALBASE
- Switch to modern style of rc script handling - Installation-related nits PR: 146257 Submitted by: Anonymous <swell.k@gmail.com>
Diffstat (limited to 'sysutils/bsdstats/Makefile')
-rw-r--r--sysutils/bsdstats/Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/sysutils/bsdstats/Makefile b/sysutils/bsdstats/Makefile
index 522ea71b545f..e0aaa2000e83 100644
--- a/sysutils/bsdstats/Makefile
+++ b/sysutils/bsdstats/Makefile
@@ -7,6 +7,7 @@
PORTNAME= bsdstats
PORTVERSION= 5.5
+PORTREVISION= 1
CATEGORIES= sysutils
DISTFILES=
@@ -14,15 +15,14 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Monthly script for reporting anonymous statistics about your machine
NO_BUILD= yes
+USE_RC_SUBR= bsdstats
+SUB_FILES= 300.statistics pkg-message
do-install:
- ${MKDIR} ${LOCALBASE}/etc/periodic/monthly
- ${CP} ${FILESDIR}/300.statistics ${LOCALBASE}/etc/periodic/monthly
- ${CP} ${FILESDIR}/bsdstats.sh ${LOCALBASE}/etc/rc.d
- ${CHMOD} 0755 ${LOCALBASE}/etc/rc.d/bsdstats.sh
- ${CHMOD} 0755 ${LOCALBASE}/etc/periodic/monthly/300.statistics
+ ${MKDIR} ${PREFIX}/etc/periodic/monthly
+ ${INSTALL_SCRIPT} ${WRKDIR}/300.statistics ${PREFIX}/etc/periodic/monthly
post-install:
- ${CAT} ${PKGMESSAGE}
+ @${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:"