Files
ports/sysutils/bsdstats/Makefile
T
Marc G. Fournier 5f578bbd6f The point of bsdstats is to be as painless as possible, but also to be
run monthly ... change the behaviour such that when it is run with the
-nodelay option, it *only* reports the operating system, even if both
devices and ports reporting are also enabled ...

... this when, when run as part of the original port install, *or*
on system reboot if enabled in /etc/rc.conf, it is 'quick n painless',
and we get the critical number we are looking for ...
2007-10-16 04:34:49 +00:00

46 lines
1.3 KiB
Makefile

# New ports collection makefile for: bsdstats
# Date created: 5 August 2006
# Whom: Marc G. Fournier <scrappy@freebsd.org>
#
# $FreeBSD$
#
PORTNAME= bsdstats
PORTVERSION= 5.3
PORTREVISION= 7
CATEGORIES= sysutils
DISTFILES=
MAINTAINER= scrappy@freebsd.org
COMMENT= Monthly script for reporting anonymous statistics about your machine
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 503102 || (${OSVERSION} >= 600000 && ${OSVERSION} < 600010)
RUN_DEPENDS= nc:${PORTSDIR}/net/netcat
.endif
NO_BUILD= yes
PLIST_FILES= etc/periodic/monthly/300.statistics etc/rc.d/bsdstats.sh
PLIST_DIRS= etc/periodic/monthly \
etc/periodic
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
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>