summaryrefslogtreecommitdiff
path: root/www/apache/patches
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2007-10-07 20:49:57 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2007-10-07 20:49:57 +0000
commit648ac07806bb0450a4f0a1b90dbec4e66fc071ef (patch)
treed5a9e6a816a31aacbdc208b541fdcbeb11cbad2f /www/apache/patches
parent643a873c93789c5f6ccb598fe060901099e45758 (diff)
downloadpkgsrc-648ac07806bb0450a4f0a1b90dbec4e66fc071ef.tar.gz
Be sure we actually use the db stuff as set up by bdb.buildlink3.mk.
This fixes a long standing build failure on SunOS-5.9/sparc and does not seem to break things on NetBSD.
Diffstat (limited to 'www/apache/patches')
-rw-r--r--www/apache/patches/patch-an48
1 files changed, 48 insertions, 0 deletions
diff --git a/www/apache/patches/patch-an b/www/apache/patches/patch-an
new file mode 100644
index 00000000000..d0742970868
--- /dev/null
+++ b/www/apache/patches/patch-an
@@ -0,0 +1,48 @@
+$NetBSD: patch-an,v 1.6 2007/10/07 20:49:57 dmcmahill Exp $
+
+--- src/modules/standard/mod_auth_db.module.orig 2004-11-24 14:10:19.000000000 -0500
++++ src/modules/standard/mod_auth_db.module
+@@ -1,37 +1,11 @@
+ Name: db_auth_module
+ ConfigStart
+- DB_VERSION=''
+- DB_LIB=''
+- if ./helpers/TestCompile func db_create; then
+- DB_VERSION='Berkeley-DB/3.x'
+- elif ./helpers/TestCompile lib db db_create; then
+- DB_VERSION='Berkeley-DB/3.x'
+- DB_LIB='-ldb'
+- elif ./helpers/TestCompile func db_open; then
+- DB_VERSION='Berkeley-DB/2.x'
+- elif ./helpers/TestCompile lib db db_open; then
+- DB_VERSION='Berkeley-DB/2.x'
+- DB_LIB='-ldb'
+- elif ./helpers/TestCompile lib db2 db_open; then
+- DB_VERSION='Berkeley-DB/2.x'
+- DB_LIB='-ldb2'
+- elif ./helpers/TestCompile func dbopen; then
+- DB_VERSION='Berkeley-DB/1.x'
+- elif ./helpers/TestCompile lib db dbopen; then
+- DB_VERSION='Berkeley-DB/1.x'
+- DB_LIB='-ldb'
+- elif ./helpers/TestCompile lib db1 dbopen; then
+- DB_VERSION='Berkeley-DB/1.x'
+- DB_LIB='-ldb1'
+- elif TCADDINCL='#include <db.h>' INCLUDES1="$INCLUDES1 -I/usr/include/db1" TLIB="-ldb1" \
+- helpers/TestCompile func dbm_open; then
+- # For Red Hat 7
+- DB_VERSION='Berkeley-DB/1.x'
+- DB_LIB='-ldb1'
+- CFLAGS="$CFLAGS -I/usr/include/db1"
+- fi
+- if [ ".$DB_VERSION" != . ]; then
+- if [ ".$DB_LIB" != . ]; then
++ DB_VERSION=@DB_VERSION@
++ DB_LIB=@DB_LIB@
++ CFLAGS="$CFLAGS @DB_CFLAGS@"
++
++ if [ ".$DB_VERSION" != "" ]; then
++ if [ ".$DB_LIB" != "" ]; then
+ LIBS="$LIBS $DB_LIB"
+ echo " using $DB_VERSION for mod_auth_db ($DB_LIB)"
+ else