diff options
author | Marc G. Fournier <scrappy@FreeBSD.org> | 2007-04-30 18:49:08 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@FreeBSD.org> | 2007-04-30 18:49:08 +0000 |
commit | aa79c55203e4a213976b3521317922d850870ff4 (patch) | |
tree | 1971e74a4839cc76f9ccc8bf3417ff686fc82fd5 /sysutils/bsdstats | |
parent | 4c93108101b23986e6ea96c73975dc033b9713fe (diff) | |
download | ports-aa79c55203e4a213976b3521317922d850870ff4.tar.gz ports-aa79c55203e4a213976b3521317922d850870ff4.zip |
Notes
Diffstat (limited to 'sysutils/bsdstats')
-rw-r--r-- | sysutils/bsdstats/Makefile | 2 | ||||
-rw-r--r-- | sysutils/bsdstats/files/pkg-message.in | 3 | ||||
-rw-r--r-- | sysutils/bsdstats/pkg-install | 12 | ||||
-rw-r--r-- | sysutils/bsdstats/pkg-message | 3 |
4 files changed, 12 insertions, 8 deletions
diff --git a/sysutils/bsdstats/Makefile b/sysutils/bsdstats/Makefile index cb1b4b87d623..8ffc32108d38 100644 --- a/sysutils/bsdstats/Makefile +++ b/sysutils/bsdstats/Makefile @@ -7,7 +7,7 @@ PORTNAME= bsdstats PORTVERSION= 5.3 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= sysutils DISTFILES= diff --git a/sysutils/bsdstats/files/pkg-message.in b/sysutils/bsdstats/files/pkg-message.in index 64eb123de710..88ed8e4b87a4 100644 --- a/sysutils/bsdstats/files/pkg-message.in +++ b/sysutils/bsdstats/files/pkg-message.in @@ -23,9 +23,8 @@ 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 -nodelay + ${LOCALBASE}/etc/periodic/monthly/300.statistics -nodelay To view current statistics, go to: http://www.bsdstats.org ******************** - diff --git a/sysutils/bsdstats/pkg-install b/sysutils/bsdstats/pkg-install index 8c643fcb4495..afec6afef4b8 100644 --- a/sysutils/bsdstats/pkg-install +++ b/sysutils/bsdstats/pkg-install @@ -1,6 +1,6 @@ #!/bin/sh # -# pkg-install : based off /usr/ports/mail/courier/files/pkg-install.in +# pkg-install : based off ${PORTSDIR}/mail/courier/files/pkg-install.in # ask() { @@ -45,7 +45,13 @@ if [ ":$2" = ":POST-INSTALL" ]; then echo "monthly_statistics_report_ports=\"YES\"" >> /etc/periodic.conf fi if yesno "Would you like to run it now" y; then - /usr/local/etc/periodic/monthly/300.statistics -nodelay + ${LOCALBASE}/etc/periodic/monthly/300.statistics -nodelay + fi + fi + else + if [ `grep 'monthly_statistics_enable="YES"' /etc/periodic.conf | wc -l` = 1 ]; then + if [ `grep 'bsdstats_enable="YES"' /etc/rc.conf | wc -l` = 0 ]; then + echo "bsdstats_enable=\"YES\"" >> /etc/rc.conf fi fi fi @@ -60,7 +66,7 @@ if [ ":$2" = ":POST-INSTALL" ]; then echo "monthly_statistics_report_ports=\"YES\"" >> /etc/periodic.conf fi if yesno "Would you like to run it now" y; then - /usr/local/etc/periodic/monthly/300.statistics -nodelay + ${LOCALBASE}/etc/periodic/monthly/300.statistics -nodelay fi fi fi diff --git a/sysutils/bsdstats/pkg-message b/sysutils/bsdstats/pkg-message index 64eb123de710..88ed8e4b87a4 100644 --- a/sysutils/bsdstats/pkg-message +++ b/sysutils/bsdstats/pkg-message @@ -23,9 +23,8 @@ 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 -nodelay + ${LOCALBASE}/etc/periodic/monthly/300.statistics -nodelay To view current statistics, go to: http://www.bsdstats.org ******************** - |