diff options
author | joerg <joerg> | 2007-07-03 13:54:45 +0000 |
---|---|---|
committer | joerg <joerg> | 2007-07-03 13:54:45 +0000 |
commit | b22ee580b2475a5e88db73792c79412d11938fc2 (patch) | |
tree | f0384614f91c073d547064a3c7e0dd2d67393d7e /net/nocol/patches | |
parent | 36efe843f5019429645b370f087cfe0f21b9d7c5 (diff) | |
download | pkgsrc-b22ee580b2475a5e88db73792c79412d11938fc2.tar.gz |
Add common handling for libresolv similiar to dlopen(3) wrapping.
For now, DragonFly and FreeBSD use the libc version, it is not reentrant,
but thread-safe. NetBSD 3.0+ and Darwin 8.0+ use libresolv from base
(the BIND9 resolver), all other fall back to net/bind9. Feel free to add
your favorite platform if it has a thread-safe resolver in base.
Modify mail/libspf-alf, mail/milter-greylist, mail/spamdyke and
net/nocol accordingly. Testing on !DragonFly and feedback from tron@
Diffstat (limited to 'net/nocol/patches')
-rw-r--r-- | net/nocol/patches/patch-am | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/net/nocol/patches/patch-am b/net/nocol/patches/patch-am index e73f74d6e6a..42a1658ea6e 100644 --- a/net/nocol/patches/patch-am +++ b/net/nocol/patches/patch-am @@ -1,8 +1,25 @@ -$NetBSD: patch-am,v 1.2 2005/12/27 13:47:11 joerg Exp $ +$NetBSD: patch-am,v 1.3 2007/07/03 13:54:46 joerg Exp $ --- Configure.orig 2000-01-19 04:34:04.000000000 +0000 +++ Configure -@@ -207,7 +207,7 @@ case "$OS" in +@@ -167,15 +167,7 @@ export PSFLAGS + (ps $PSFLAGS) 2>&1 | egrep -i '^usage' >/dev/null 2>&1 + if [ $? = 0 ]; then PSFLAGS='-ef' ; fi + +-LIBRESOLV="-lresolv" +-ls /usr/lib/libresolv* >/dev/null 2>&1 +-if [ $? = 1 ]; then +- ls /lib/libresolv* >/dev/null 2>&1 +- if [ $? = 1 ]; then +- ls /usr/lib/libbind* >/dev/null 2>&1 +- if [ $? = 1 ]; then LIBRESOLV="" ; else LIBRESOLV="-lbind" ; fi +- fi +-fi ++LIBRESOLV="${RESOLV_LDFLAGS}" + + # mainly for Solaris systems + WHOAMI="/usr/ucb/whoami" +@@ -207,7 +199,7 @@ case "$OS" in OS_LIBS="${LIBRESOLV}" # -lcompat PING=`which ping` # can do ping -c cnt host ;; |