1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00

Apparently Sparc doesn't like using openssl to generate a random value ... it

created a 41 year 'sleep' time for one ...

Fix it to use sum instead of openssl
This commit is contained in:
Marc G. Fournier 2006-09-07 04:22:27 +00:00
parent f837815f89
commit 13dce54b33
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=172441
3 changed files with 13 additions and 5 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME= bsdstats
PORTVERSION= 3.6
PORTVERSION= 3.7
CATEGORIES= sysutils
DISTFILES=

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $FreeBSD: /tmp/pcvs/ports/sysutils/bsdstats/files/Attic/300.statistics,v 1.19 2006-09-06 00:36:03 scrappy Exp $
# $FreeBSD: /tmp/pcvs/ports/sysutils/bsdstats/files/Attic/300.statistics,v 1.20 2006-09-07 04:22:27 scrappy Exp $
#
# If there is a global system configuration file, suck it in.
@ -27,6 +27,10 @@ unset HTTP_USER_AGENT
IFS="
"
random () {
( ps ax && netstat -a && date ) | sum | cut -c4-5
}
send_devices () {
case $(uname) in
NetBSD | OpenBSD)
@ -120,7 +124,7 @@ uri_escape () {
do_fetch () {
url="http://$checkin_server/scripts/$1"
sleep `openssl rand -base64 1 | hexdump -n 1 -e '"%u"'`
sleep `random`
case $(uname) in
NetBSD | OpenBSD) /usr/bin/ftp -V -o - "$url" ;;
FreeBSD | *) /usr/bin/fetch -q -o - "$url" ;;

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $FreeBSD: /tmp/pcvs/ports/sysutils/bsdstats/files/300.statistics.in,v 1.19 2006-09-06 00:36:03 scrappy Exp $
# $FreeBSD: /tmp/pcvs/ports/sysutils/bsdstats/files/300.statistics.in,v 1.20 2006-09-07 04:22:27 scrappy Exp $
#
# If there is a global system configuration file, suck it in.
@ -27,6 +27,10 @@ unset HTTP_USER_AGENT
IFS="
"
random () {
( ps ax && netstat -a && date ) | sum | cut -c4-5
}
send_devices () {
case $(uname) in
NetBSD | OpenBSD)
@ -120,7 +124,7 @@ uri_escape () {
do_fetch () {
url="http://$checkin_server/scripts/$1"
sleep `openssl rand -base64 1 | hexdump -n 1 -e '"%u"'`
sleep `random`
case $(uname) in
NetBSD | OpenBSD) /usr/bin/ftp -V -o - "$url" ;;
FreeBSD | *) /usr/bin/fetch -q -o - "$url" ;;