2006-08-06 05:34:08 +02:00
|
|
|
# New ports collection makefile for: bsdstats
|
|
|
|
# Date created: 5 August 2006
|
|
|
|
# Whom: Marc G. Fournier <scrappy@freebsd.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= bsdstats
|
2009-09-18 23:19:34 +02:00
|
|
|
PORTVERSION= 5.5
|
2006-08-06 05:34:08 +02:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
DISTFILES=
|
|
|
|
|
2009-06-13 22:56:59 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-08-06 05:34:08 +02:00
|
|
|
COMMENT= Monthly script for reporting anonymous statistics about your machine
|
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${LOCALBASE}/etc/periodic/monthly
|
|
|
|
${CP} ${FILESDIR}/300.statistics ${LOCALBASE}/etc/periodic/monthly
|
2007-04-28 21:12:31 +02:00
|
|
|
${CP} ${FILESDIR}/bsdstats.sh ${LOCALBASE}/etc/rc.d
|
|
|
|
${CHMOD} 0755 ${LOCALBASE}/etc/rc.d/bsdstats.sh
|
2010-06-02 14:05:48 +02:00
|
|
|
${CHMOD} 0755 ${LOCALBASE}/etc/periodic/monthly/300.statistics
|
2006-08-06 05:34:08 +02:00
|
|
|
post-install:
|
2006-08-08 04:17:35 +02:00
|
|
|
${CAT} ${PKGMESSAGE}
|
2006-09-04 04:47:41 +02:00
|
|
|
.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
|
2006-08-06 05:34:08 +02:00
|
|
|
|
2009-01-06 18:59:31 +01:00
|
|
|
.include <bsd.port.mk>
|