aboutsummaryrefslogtreecommitdiff
path: root/sysutils/bsdstats
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@FreeBSD.org>2007-04-30 18:49:08 +0000
committerMarc G. Fournier <scrappy@FreeBSD.org>2007-04-30 18:49:08 +0000
commitaa79c55203e4a213976b3521317922d850870ff4 (patch)
tree1971e74a4839cc76f9ccc8bf3417ff686fc82fd5 /sysutils/bsdstats
parent4c93108101b23986e6ea96c73975dc033b9713fe (diff)
downloadports-aa79c55203e4a213976b3521317922d850870ff4.tar.gz
ports-aa79c55203e4a213976b3521317922d850870ff4.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
Notes
Notes: svn path=/head/; revision=191223
Diffstat (limited to 'sysutils/bsdstats')
-rw-r--r--sysutils/bsdstats/Makefile2
-rw-r--r--sysutils/bsdstats/files/pkg-message.in3
-rw-r--r--sysutils/bsdstats/pkg-install12
-rw-r--r--sysutils/bsdstats/pkg-message3
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
********************
-