aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2009-09-19 05:19:34 +0800
committerpav <pav@FreeBSD.org>2009-09-19 05:19:34 +0800
commit4cc80686251c32b45f3934271aabf58a1154b9c3 (patch)
treef77d2f3f4c6582cb5fbd0387c81aa4471a3f6357 /sysutils
parent89e12076fc716e6262aa85798d31629689f060b1 (diff)
downloadfreebsd-ports-gnome-4cc80686251c32b45f3934271aabf58a1154b9c3.tar.gz
freebsd-ports-gnome-4cc80686251c32b45f3934271aabf58a1154b9c3.tar.zst
freebsd-ports-gnome-4cc80686251c32b45f3934271aabf58a1154b9c3.zip
- Set HTTP Timeout to prevent blocking
PR: ports/136124 Submitted by: Alexander Best <alexbestms@math.uni-muenster.de> Feature safe: yes
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/bsdstats/Makefile3
-rw-r--r--sysutils/bsdstats/files/300.statistics9
-rw-r--r--sysutils/bsdstats/files/300.statistics.in9
3 files changed, 11 insertions, 10 deletions
diff --git a/sysutils/bsdstats/Makefile b/sysutils/bsdstats/Makefile
index 8656e2f4b475..34271efea964 100644
--- a/sysutils/bsdstats/Makefile
+++ b/sysutils/bsdstats/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= bsdstats
-PORTVERSION= 5.4
-PORTREVISION= 2
+PORTVERSION= 5.5
CATEGORIES= sysutils
DISTFILES=
diff --git a/sysutils/bsdstats/files/300.statistics b/sysutils/bsdstats/files/300.statistics
index 86e9b02cbca1..09485d96085f 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.41 2008-08-19 10:25:06 bsam Exp $
+# $FreeBSD: /tmp/pcvs/ports/sysutils/bsdstats/files/Attic/300.statistics,v 1.42 2009-09-18 21:19:34 pav Exp $
#
# If there is a global system configuration file, suck it in.
@@ -21,8 +21,9 @@ fi
oldmask=$(umask)
umask 066
+timeout=10
-version="5.4"
+version="5.5"
checkin_server=${monthly_statistics_checkin_server:-"rpt.bsdstats.org"}
bsdstats_log=${monthly_statistics_logfile:-"/var/log/bsdstats"}
id_token_file='/var/db/bsdstats'
@@ -61,10 +62,10 @@ do_fetch () {
url="http://$checkin_server/scripts/$1"
case $(uname) in
FreeBSD )
- /usr/bin/fetch -q -o - "$url"
+ /usr/bin/fetch -T "$timeout" -q -o - "$url"
;;
* )
- /usr/bin/ftp -V -o - "$url"
+ /usr/bin/ftp -q "$timeout" -V -o - "$url"
;;
esac
}
diff --git a/sysutils/bsdstats/files/300.statistics.in b/sysutils/bsdstats/files/300.statistics.in
index b99eb7dd2206..ab1e974b1c8a 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.41 2008-08-19 10:25:06 bsam Exp $
+# $FreeBSD: /tmp/pcvs/ports/sysutils/bsdstats/files/300.statistics.in,v 1.42 2009-09-18 21:19:34 pav Exp $
#
# If there is a global system configuration file, suck it in.
@@ -21,8 +21,9 @@ fi
oldmask=$(umask)
umask 066
+timeout=10
-version="5.4"
+version="5.5"
checkin_server=${monthly_statistics_checkin_server:-"rpt.bsdstats.org"}
bsdstats_log=${monthly_statistics_logfile:-"/var/log/bsdstats"}
id_token_file='/var/db/bsdstats'
@@ -61,10 +62,10 @@ do_fetch () {
url="http://$checkin_server/scripts/$1"
case $(uname) in
FreeBSD )
- /usr/bin/fetch -q -o - "$url"
+ /usr/bin/fetch -T "$timeout" -q -o - "$url"
;;
* )
- /usr/bin/ftp -V -o - "$url"
+ /usr/bin/ftp -q "$timeout" -V -o - "$url"
;;
esac
}