From 4e9969ca72a0df7accadd2dc00422b8a87dac81e Mon Sep 17 00:00:00 2001 From: "Marc G. Fournier" Date: Sat, 9 Dec 2006 06:06:13 +0000 Subject: Only depend on netcat if we are running an older version of FreeBSD that doesn't already include it ... PR: ports/106446 Submitted by: KIMURA Yasuhiro --- sysutils/bsdstats/Makefile | 7 +++++-- sysutils/bsdstats/files/pkg-message.in | 2 +- sysutils/bsdstats/pkg-message | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) (limited to 'sysutils') diff --git a/sysutils/bsdstats/Makefile b/sysutils/bsdstats/Makefile index 5a60b4b666ad..ab3f99263cdd 100644 --- a/sysutils/bsdstats/Makefile +++ b/sysutils/bsdstats/Makefile @@ -7,21 +7,24 @@ PORTNAME= bsdstats PORTVERSION= 5.3 +PORTREVISION= 1 CATEGORIES= sysutils DISTFILES= MAINTAINER= scrappy@freebsd.org COMMENT= Monthly script for reporting anonymous statistics about your machine +.include + +.if ${OSVERSION} < 503102 || (${OSVERSION} >= 600000 && ${OSVERSION} < 600010) RUN_DEPENDS= nc:${PORTSDIR}/net/netcat +.endif NO_BUILD= yes PLIST_FILES= etc/periodic/monthly/300.statistics PLIST_DIRS= etc/periodic/monthly \ etc/periodic -.include - do-install: ${MKDIR} ${LOCALBASE}/etc/periodic/monthly ${CP} ${FILESDIR}/300.statistics ${LOCALBASE}/etc/periodic/monthly diff --git a/sysutils/bsdstats/files/pkg-message.in b/sysutils/bsdstats/files/pkg-message.in index cf5eda09f142..6e1549974348 100644 --- a/sysutils/bsdstats/files/pkg-message.in +++ b/sysutils/bsdstats/files/pkg-message.in @@ -20,7 +20,7 @@ To enable ports reporting, add this line: monthly_statistics_report_ports="YES" To run it manually the first time, just run it as: - /usr/local/etc/periodic/monthly/300.statistics + /usr/local/etc/periodic/monthly/300.statistics -nodelay To view current statistics, go to: http://www.bsdstats.org diff --git a/sysutils/bsdstats/pkg-message b/sysutils/bsdstats/pkg-message index cf5eda09f142..6e1549974348 100644 --- a/sysutils/bsdstats/pkg-message +++ b/sysutils/bsdstats/pkg-message @@ -20,7 +20,7 @@ To enable ports reporting, add this line: monthly_statistics_report_ports="YES" To run it manually the first time, just run it as: - /usr/local/etc/periodic/monthly/300.statistics + /usr/local/etc/periodic/monthly/300.statistics -nodelay To view current statistics, go to: http://www.bsdstats.org -- cgit v1.2.3