diff options
author | scrappy <scrappy@FreeBSD.org> | 2007-04-29 03:23:40 +0800 |
---|---|---|
committer | scrappy <scrappy@FreeBSD.org> | 2007-04-29 03:23:40 +0800 |
commit | ae35520a67cd5a1dba282f0f822d9fe911f20e72 (patch) | |
tree | 882180d1aed4f30eab688e13b5d5c92237733c24 /sysutils | |
parent | 2c3513c52e256e5b7a4e42d0ebc2119645e6585a (diff) | |
download | freebsd-ports-gnome-ae35520a67cd5a1dba282f0f822d9fe911f20e72.tar.gz freebsd-ports-gnome-ae35520a67cd5a1dba282f0f822d9fe911f20e72.tar.zst freebsd-ports-gnome-ae35520a67cd5a1dba282f0f822d9fe911f20e72.zip |
slight change to better handle boottime reporting, as well as to document
it in the pkg-message
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/bsdstats/Makefile | 2 | ||||
-rw-r--r-- | sysutils/bsdstats/files/pkg-message.in | 5 | ||||
-rw-r--r-- | sysutils/bsdstats/pkg-install | 13 | ||||
-rw-r--r-- | sysutils/bsdstats/pkg-message | 5 |
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" |