aboutsummaryrefslogtreecommitdiff
path: root/sysutils/bsdstats
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@FreeBSD.org>2006-11-05 18:56:10 +0000
committerMarc G. Fournier <scrappy@FreeBSD.org>2006-11-05 18:56:10 +0000
commit802c78e1e242af9fb3946bb3d646c459c64fffe2 (patch)
tree986f72634f21d4b0d292f3590ffa47670d900d12 /sysutils/bsdstats
parentcca2141326d08387ed70fae13ae291477fe8cb7a (diff)
downloadports-802c78e1e242af9fb3946bb3d646c459c64fffe2.tar.gz
ports-802c78e1e242af9fb3946bb3d646c459c64fffe2.zip
Notes
Diffstat (limited to 'sysutils/bsdstats')
-rw-r--r--sysutils/bsdstats/Makefile2
-rw-r--r--sysutils/bsdstats/pkg-install14
2 files changed, 14 insertions, 2 deletions
diff --git a/sysutils/bsdstats/Makefile b/sysutils/bsdstats/Makefile
index 69114a8ea02d..4cc82582a508 100644
--- a/sysutils/bsdstats/Makefile
+++ b/sysutils/bsdstats/Makefile
@@ -7,7 +7,7 @@
PORTNAME= bsdstats
PORTVERSION= 4.8
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= sysutils
DISTFILES=
diff --git a/sysutils/bsdstats/pkg-install b/sysutils/bsdstats/pkg-install
index f4e5450de907..3ab8de033995 100644
--- a/sysutils/bsdstats/pkg-install
+++ b/sysutils/bsdstats/pkg-install
@@ -33,7 +33,19 @@ yesno() {
}
if [ ":$2" = ":POST-INSTALL" ]; then
- if [ `grep monthly_statistics /etc/periodic.conf | wc -l` = 0 ]; then
+ if [ -f "/etc/periodic.conf" ]; then
+ if [ `grep monthly_statistics /etc/periodic.conf | wc -l` = 0 ]; then
+ if yesno "Would you like to activate monthly reporting in /etc/periodic.conf" n; then
+ echo "monthly_statistics_enable=\"YES\"" >> /etc/periodic.conf
+ if yesno "Would you like to send a list of installed hardware as well" n; then
+ echo "monthly_statistics_report_devices=\"YES\"" >> /etc/periodic.conf
+ fi
+ if yesno "Would you like to run it now" y; then
+ /usr/local/etc/periodic/monthly/300.statistics
+ fi
+ fi
+ fi
+ elif [ ! -f "/etc/periodic.conf" ]; then
if yesno "Would you like to activate monthly reporting in /etc/periodic.conf" n; then
echo "monthly_statistics_enable=\"YES\"" >> /etc/periodic.conf
if yesno "Would you like to send a list of installed hardware as well" n; then