1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00

slight change to better handle boottime reporting, as well as to document

it in the pkg-message
This commit is contained in:
Marc G. Fournier 2007-04-28 19:23:40 +00:00
parent e4cbc73c1d
commit 8637298280
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=191078
4 changed files with 11 additions and 14 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= bsdstats
PORTVERSION= 5.3
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= sysutils
DISTFILES=

View File

@ -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"

View File

@ -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

View File

@ -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"