freebsd-ports/sysutils/bsdstats/Makefile
Boris Samorodov 86dbd367ef . do not remove (shared) directories periodic, periodic/monthly [1] [3]
at deinstall;
. fix useless use of cat(1);  [2]
. hardcoded directory name isreplaced with the appropriate variable.  [2]

PR:		105206 [1],  119453 [2],  126632 [3]
Submitted by:	delphij [1], olli [2], bsam [3]
Approved by:	maintainer timeout
2008-08-19 10:25:06 +00:00

42 lines
1.1 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.4
PORTREVISION= 2
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
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>