aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sysutils/bsdstats/Makefile2
-rw-r--r--sysutils/bsdstats/files/pkg-message.in5
-rw-r--r--sysutils/bsdstats/pkg-install13
-rw-r--r--sysutils/bsdstats/pkg-message5
4 files changed, 11 insertions, 14 deletions
diff --git a/sysutils/bsdstats/Makefile b/sysutils/bsdstats/Makefile
index 11924b9952fb..cb1b4b87d623 100644
--- a/sysutils/bsdstats/Makefile
+++ b/sysutils/bsdstats/Makefile
@@ -7,7 +7,7 @@
PORTNAME= bsdstats
PORTVERSION= 5.3
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= sysutils
DISTFILES=
diff --git a/sysutils/bsdstats/files/pkg-message.in b/sysutils/bsdstats/files/pkg-message.in
index 6e1549974348..64eb123de710 100644
--- a/sysutils/bsdstats/files/pkg-message.in
+++ b/sysutils/bsdstats/files/pkg-message.in
@@ -10,9 +10,12 @@ anything in the database that has been deemed as 'sensitive' (ie. IP of
the reporting server, and hostname).
********************
-To enable the port, edit or create /etc/periodic.conf and add this line:
+To enable monthly reporting, edit or create /etc/periodic.conf and add this line:
monthly_statistics_enable="YES"
+To enable boottime reporting, edit or create /etc/rc.conf and add this line:
+ bsdstats_enable="YES"
+
To enable device reporting, add this line:
monthly_statistics_report_devices="YES"
diff --git a/sysutils/bsdstats/pkg-install b/sysutils/bsdstats/pkg-install
index 487c4a3e51f9..8c643fcb4495 100644
--- a/sysutils/bsdstats/pkg-install
+++ b/sysutils/bsdstats/pkg-install
@@ -37,6 +37,7 @@ if [ ":$2" = ":POST-INSTALL" ]; 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
+ echo "bsdstats_enable=\"YES\"" >> /etc/rc.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
@@ -51,6 +52,7 @@ if [ ":$2" = ":POST-INSTALL" ]; then
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
+ echo "bsdstats_enable=\"YES\"" >> /etc/rc.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
@@ -62,16 +64,5 @@ if [ ":$2" = ":POST-INSTALL" ]; then
fi
fi
fi
- if [ -f "/etc/rc.conf" ]; then
- if [ `grep bsdstats_enable /etc/rc.conf | wc -l` = 0 ]; then
- if yesno "Would you like to activate reporting on reboot in /etc/rc.conf" n; then
- echo "bsdstats_enable=\"YES\"" >> /etc/rc.conf
- fi
- fi
- elif [ ! -f "/etc/periodic.conf" ]; then
- if yesno "Would you like to activate reporting on reboot in /etc/rc.conf" n; then
- echo "bsdstats_enable=\"YES\"" >> /etc/rc.conf
- fi
- fi
fi
diff --git a/sysutils/bsdstats/pkg-message b/sysutils/bsdstats/pkg-message
index 6e1549974348..64eb123de710 100644
--- a/sysutils/bsdstats/pkg-message
+++ b/sysutils/bsdstats/pkg-message
@@ -10,9 +10,12 @@ anything in the database that has been deemed as 'sensitive' (ie. IP of
the reporting server, and hostname).
********************
-To enable the port, edit or create /etc/periodic.conf and add this line:
+To enable monthly reporting, edit or create /etc/periodic.conf and add this line:
monthly_statistics_enable="YES"
+To enable boottime reporting, edit or create /etc/rc.conf and add this line:
+ bsdstats_enable="YES"
+
To enable device reporting, add this line:
monthly_statistics_report_devices="YES"