diff options
author | scrappy <scrappy@FreeBSD.org> | 2007-05-01 02:49:08 +0800 |
---|---|---|
committer | scrappy <scrappy@FreeBSD.org> | 2007-05-01 02:49:08 +0800 |
commit | 8ef3eb26d1791924207907f7761e982e0f3c25fc (patch) | |
tree | e276ad763addd26b9149e64eb472bf0ca6a35934 | |
parent | fa3c8cb940953d1bf4e22ba527a73607745844be (diff) | |
download | freebsd-ports-gnome-8ef3eb26d1791924207907f7761e982e0f3c25fc.tar.gz freebsd-ports-gnome-8ef3eb26d1791924207907f7761e982e0f3c25fc.tar.zst freebsd-ports-gnome-8ef3eb26d1791924207907f7761e982e0f3c25fc.zip |
clean up some warnings from portlint -avz and fix it so that if already
installed, and enabled, it properly enables in /etc/rc.conf also
-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 ******************** - |