aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/bsdstats
diff options
context:
space:
mode:
authorscrappy <scrappy@FreeBSD.org>2006-12-04 09:44:24 +0800
committerscrappy <scrappy@FreeBSD.org>2006-12-04 09:44:24 +0800
commit22f711808c648497c4df6656243505a66eeb476f (patch)
treec0b3c74646677cd25b0d4217ee5a6108abe66830 /sysutils/bsdstats
parent1a50753ebfc78235ef8bd27d7e5cfe43eb842f1c (diff)
downloadfreebsd-ports-gnome-22f711808c648497c4df6656243505a66eeb476f.tar.gz
freebsd-ports-gnome-22f711808c648497c4df6656243505a66eeb476f.tar.zst
freebsd-ports-gnome-22f711808c648497c4df6656243505a66eeb476f.zip
make bsdstats's install a bit more friendly
PR: ports/106284 Submitted by: Mikko Tyolajarvi<mbsd@pacbell.net>
Diffstat (limited to 'sysutils/bsdstats')
-rw-r--r--sysutils/bsdstats/Makefile2
-rw-r--r--sysutils/bsdstats/files/300.statistics6
-rw-r--r--sysutils/bsdstats/files/300.statistics.in6
-rw-r--r--sysutils/bsdstats/pkg-install4
4 files changed, 9 insertions, 9 deletions
diff --git a/sysutils/bsdstats/Makefile b/sysutils/bsdstats/Makefile
index 360297a58d8d..438d012343f4 100644
--- a/sysutils/bsdstats/Makefile
+++ b/sysutils/bsdstats/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= bsdstats
-PORTVERSION= 5.0
+PORTVERSION= 5.1
CATEGORIES= sysutils
DISTFILES=
diff --git a/sysutils/bsdstats/files/300.statistics b/sysutils/bsdstats/files/300.statistics
index d3b4c704474a..57e58581f01c 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.34 2006-12-01 13:30:45 scrappy Exp $
+# $FreeBSD: /tmp/pcvs/ports/sysutils/bsdstats/files/Attic/300.statistics,v 1.35 2006-12-04 01:44:24 scrappy Exp $
#
# If there is a global system configuration file, suck it in.
@@ -22,7 +22,7 @@ fi
oldmask=$(umask)
umask 066
-version="5.0"
+version="5.1"
checkin_server=${monthly_statistics_checkin_server:-"rpt.bsdstats.org"}
bsdstats_log=${monthly_statistics_logfile:-"/var/log/bsdstats"}
id_token_file='/var/db/bsdstats'
@@ -402,7 +402,7 @@ case "$monthly_statistics_enable" in
ARCH=`/usr/bin/uname -m`
OS=`/usr/bin/uname -s`
get_id_token
- sleep `random`
+ test X"$1" = X-nodelay || sleep `random`
enable_token
report_system
echo "Posting monthly OS statistics to $checkin_server"
diff --git a/sysutils/bsdstats/files/300.statistics.in b/sysutils/bsdstats/files/300.statistics.in
index c3b5bb3df5a6..142c7de26167 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.34 2006-12-01 13:30:45 scrappy Exp $
+# $FreeBSD: /tmp/pcvs/ports/sysutils/bsdstats/files/300.statistics.in,v 1.35 2006-12-04 01:44:24 scrappy Exp $
#
# If there is a global system configuration file, suck it in.
@@ -22,7 +22,7 @@ fi
oldmask=$(umask)
umask 066
-version="5.0"
+version="5.1"
checkin_server=${monthly_statistics_checkin_server:-"rpt.bsdstats.org"}
bsdstats_log=${monthly_statistics_logfile:-"/var/log/bsdstats"}
id_token_file='/var/db/bsdstats'
@@ -402,7 +402,7 @@ case "$monthly_statistics_enable" in
ARCH=`/usr/bin/uname -m`
OS=`/usr/bin/uname -s`
get_id_token
- sleep `random`
+ test X"$1" = X-nodelay || sleep `random`
enable_token
report_system
echo "Posting monthly OS statistics to $checkin_server"
diff --git a/sysutils/bsdstats/pkg-install b/sysutils/bsdstats/pkg-install
index 5f452f804c01..0d667932620e 100644
--- a/sysutils/bsdstats/pkg-install
+++ b/sysutils/bsdstats/pkg-install
@@ -44,7 +44,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
+ /usr/local/etc/periodic/monthly/300.statistics -nodelay
fi
fi
fi
@@ -58,7 +58,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
+ /usr/local/etc/periodic/monthly/300.statistics -nodelay
fi
fi
fi