summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoritojun <itojun>2002-06-18 02:17:17 +0000
committeritojun <itojun>2002-06-18 02:17:17 +0000
commitfaa46884c2c4a3170005a52aea7042306ed34055 (patch)
tree3a0b836baa7d43f3e520e761ac618eda749588f0
parent0b641e87b13c2f5dc07f3fff67309bfa35fc9d6c (diff)
downloadpkgsrc-faa46884c2c4a3170005a52aea7042306ed34055.tar.gz
use /dev/urandom, not /dev/random, for random number source.
(if you don't have Pentium 4, httpd will need more than 1 minutes to start up)
-rw-r--r--www/apache2/distinfo4
-rw-r--r--www/apache2/patches/patch-an23
-rw-r--r--www/apache2/patches/patch-ao34
3 files changed, 60 insertions, 1 deletions
diff --git a/www/apache2/distinfo b/www/apache2/distinfo
index a1c07a8a75d..75ba18f4fd9 100644
--- a/www/apache2/distinfo
+++ b/www/apache2/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.6 2002/06/01 13:18:01 itojun Exp $
+$NetBSD: distinfo,v 1.7 2002/06/18 02:17:17 itojun Exp $
SHA1 (httpd-2.0.36.tar.gz) = 7080a7ab9cb1289b4b0f934e81439f9d21076784
Size (httpd-2.0.36.tar.gz) = 4558484 bytes
@@ -10,3 +10,5 @@ SHA1 (patch-ai) = d04ed1f2999be97e1e764e9e4f0decbff202d76b
SHA1 (patch-ak) = f11a86b1235d5c595fa381bbb474db4fe8448215
SHA1 (patch-al) = 0dcba1455b4fa3fc40fbd488813608b7e2350309
SHA1 (patch-am) = ff60a7b69ad949363ebec194141e9b95cb796426
+SHA1 (patch-an) = 2a5b54b7e63410756f8ff7b1b8da0a9f8e4c9fa5
+SHA1 (patch-ao) = fd8211a4b9e2b58ab418168d27cbbd96a61f0537
diff --git a/www/apache2/patches/patch-an b/www/apache2/patches/patch-an
new file mode 100644
index 00000000000..8cd8cab6bfa
--- /dev/null
+++ b/www/apache2/patches/patch-an
@@ -0,0 +1,23 @@
+$NetBSD: patch-an,v 1.1 2002/06/18 02:17:18 itojun Exp $
+
+--- srclib/apr/configure.in- Tue Jun 18 11:12:46 2002
++++ srclib/apr/configure.in Tue Jun 18 11:13:38 2002
+@@ -1450,13 +1450,13 @@
+ dnl #----------------------------- Checking for /dev/random
+ AC_MSG_CHECKING(for /dev/random)
+
+-if test -r "/dev/random"; then
+- AC_DEFINE(DEV_RANDOM, [/dev/random])
+- AC_MSG_RESULT(/dev/random)
+- rand="1"
+-elif test -r "/dev/urandom"; then
++if test -r "/dev/urandom"; then
+ AC_DEFINE(DEV_RANDOM, [/dev/urandom])
+ AC_MSG_RESULT(/dev/urandom)
++ rand="1"
++elif test -r "/dev/random"; then
++ AC_DEFINE(DEV_RANDOM, [/dev/random])
++ AC_MSG_RESULT(/dev/random)
+ rand="1"
+ else
+ case $host in
diff --git a/www/apache2/patches/patch-ao b/www/apache2/patches/patch-ao
new file mode 100644
index 00000000000..db30e1ed3ab
--- /dev/null
+++ b/www/apache2/patches/patch-ao
@@ -0,0 +1,34 @@
+$NetBSD: patch-ao,v 1.1 2002/06/18 02:17:18 itojun Exp $
+
+--- srclib/apr/configure- Tue Jun 18 11:12:43 2002
++++ srclib/apr/configure Tue Jun 18 11:13:27 2002
+@@ -24882,21 +24882,21 @@
+ echo "$as_me:$LINENO: checking for /dev/random" >&5
+ echo $ECHO_N "checking for /dev/random... $ECHO_C" >&6
+
+-if test -r "/dev/random"; then
++if test -r "/dev/urandom"; then
+ cat >>confdefs.h <<\_ACEOF
+-#define DEV_RANDOM /dev/random
++#define DEV_RANDOM /dev/urandom
+ _ACEOF
+
+- echo "$as_me:$LINENO: result: /dev/random" >&5
+-echo "${ECHO_T}/dev/random" >&6
++ echo "$as_me:$LINENO: result: /dev/urandom" >&5
++echo "${ECHO_T}/dev/urandom" >&6
+ rand="1"
+-elif test -r "/dev/urandom"; then
++elif test -r "/dev/random"; then
+ cat >>confdefs.h <<\_ACEOF
+-#define DEV_RANDOM /dev/urandom
++#define DEV_RANDOM /dev/random
+ _ACEOF
+
+- echo "$as_me:$LINENO: result: /dev/urandom" >&5
+-echo "${ECHO_T}/dev/urandom" >&6
++ echo "$as_me:$LINENO: result: /dev/random" >&5
++echo "${ECHO_T}/dev/random" >&6
+ rand="1"
+ else
+ case $host in