aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/bsdstats
diff options
context:
space:
mode:
authorbsam <bsam@FreeBSD.org>2008-08-19 18:25:06 +0800
committerbsam <bsam@FreeBSD.org>2008-08-19 18:25:06 +0800
commit70cd015cc99082bdaf3f66d2a431fd606fd08d78 (patch)
treeca7d742d034043ef4907e50d431a4922db0dc4db /sysutils/bsdstats
parent0dc091a181c68f7c4d331423c127ffa5df28dcc7 (diff)
downloadfreebsd-ports-gnome-70cd015cc99082bdaf3f66d2a431fd606fd08d78.tar.gz
freebsd-ports-gnome-70cd015cc99082bdaf3f66d2a431fd606fd08d78.tar.zst
freebsd-ports-gnome-70cd015cc99082bdaf3f66d2a431fd606fd08d78.zip
. do not remove (shared) directories periodic, periodic/monthly [1] [3]
at deinstall; . fix useless use of cat(1); [2] . hardcoded directory name isreplaced with the appropriate variable. [2] PR: 105206 [1], 119453 [2], 126632 [3] Submitted by: delphij [1], olli [2], bsam [3] Approved by: maintainer timeout
Diffstat (limited to 'sysutils/bsdstats')
-rw-r--r--sysutils/bsdstats/Makefile5
-rw-r--r--sysutils/bsdstats/files/300.statistics4
-rw-r--r--sysutils/bsdstats/files/300.statistics.in4
-rw-r--r--sysutils/bsdstats/pkg-plist4
4 files changed, 9 insertions, 8 deletions
diff --git a/sysutils/bsdstats/Makefile b/sysutils/bsdstats/Makefile
index 584d4d8e5417..d989b5a6cbea 100644
--- a/sysutils/bsdstats/Makefile
+++ b/sysutils/bsdstats/Makefile
@@ -7,7 +7,7 @@
PORTNAME= bsdstats
PORTVERSION= 5.4
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= sysutils
DISTFILES=
@@ -21,9 +21,6 @@ RUN_DEPENDS= nc:${PORTSDIR}/net/netcat
.endif
NO_BUILD= yes
-PLIST_FILES= etc/periodic/monthly/300.statistics etc/rc.d/bsdstats.sh
-PLIST_DIRS= etc/periodic/monthly \
- etc/periodic
do-install:
${MKDIR} ${LOCALBASE}/etc/periodic/monthly
diff --git a/sysutils/bsdstats/files/300.statistics b/sysutils/bsdstats/files/300.statistics
index 2ab7dc2d7d8d..86e9b02cbca1 100644
--- a/sysutils/bsdstats/files/300.statistics
+++ b/sysutils/bsdstats/files/300.statistics
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $FreeBSD: /tmp/pcvs/ports/sysutils/bsdstats/files/Attic/300.statistics,v 1.40 2007-12-20 04:36:39 scrappy Exp $
+# $FreeBSD: /tmp/pcvs/ports/sysutils/bsdstats/files/Attic/300.statistics,v 1.41 2008-08-19 10:25:06 bsam Exp $
#
# If there is a global system configuration file, suck it in.
@@ -239,7 +239,7 @@ report_devices () {
get_id_token () {
if [ -f $id_token_file ]
then
- if [ `cat /var/db/bsdstats | wc -l` -lt 3 ]
+ if [ `wc -l < $id_token_file` -lt 3 ]
then
rm $id_token_file
fi
diff --git a/sysutils/bsdstats/files/300.statistics.in b/sysutils/bsdstats/files/300.statistics.in
index 3bcfccaa551d..b99eb7dd2206 100644
--- a/sysutils/bsdstats/files/300.statistics.in
+++ b/sysutils/bsdstats/files/300.statistics.in
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $FreeBSD: /tmp/pcvs/ports/sysutils/bsdstats/files/300.statistics.in,v 1.40 2007-12-20 04:36:39 scrappy Exp $
+# $FreeBSD: /tmp/pcvs/ports/sysutils/bsdstats/files/300.statistics.in,v 1.41 2008-08-19 10:25:06 bsam Exp $
#
# If there is a global system configuration file, suck it in.
@@ -239,7 +239,7 @@ report_devices () {
get_id_token () {
if [ -f $id_token_file ]
then
- if [ `cat /var/db/bsdstats | wc -l` -lt 3 ]
+ if [ `wc -l < $id_token_file` -lt 3 ]
then
rm $id_token_file
fi
diff --git a/sysutils/bsdstats/pkg-plist b/sysutils/bsdstats/pkg-plist
new file mode 100644
index 000000000000..a3f926dfa107
--- /dev/null
+++ b/sysutils/bsdstats/pkg-plist
@@ -0,0 +1,4 @@
+etc/periodic/monthly/300.statistics
+etc/rc.d/bsdstats.sh
+@dirrmtry etc/periodic/monthly
+@dirrmtry etc/periodic