summaryrefslogtreecommitdiff
path: root/mail/qmail
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2006-01-02 21:13:43 +0000
committerschmonz <schmonz@pkgsrc.org>2006-01-02 21:13:43 +0000
commit9038d7156c7f1a6032657746ac837357c58b6082 (patch)
tree9656d7e77181996f909fcbed5e36b6fccfccc725 /mail/qmail
parent492a424d50a75b2c4f4d6c72daae7470743133b4 (diff)
downloadpkgsrc-9038d7156c7f1a6032657746ac837357c58b6082.tar.gz
This already had a hack to fix building on OS X with BIND9 system
resolver. Convert it to the less hacky one used elsewhere, mainly so that I won't miss it when implementing a more general solution to this common problem.
Diffstat (limited to 'mail/qmail')
-rw-r--r--mail/qmail/hacks.mk9
-rw-r--r--mail/qmail/options.mk8
2 files changed, 10 insertions, 7 deletions
diff --git a/mail/qmail/hacks.mk b/mail/qmail/hacks.mk
new file mode 100644
index 00000000000..9d429571815
--- /dev/null
+++ b/mail/qmail/hacks.mk
@@ -0,0 +1,9 @@
+# $NetBSD: hacks.mk,v 1.1 2006/01/02 21:13:43 schmonz Exp $
+
+.include "../../mk/bsd.prefs.mk"
+
+# Fix build on OS X with BIND9 system resolver
+.if ${OPSYS} == "Darwin"
+PKG_HACKS+= macosx-bind9-bind8compat
+CFLAGS+= -DBIND_8_COMPAT=1
+.endif
diff --git a/mail/qmail/options.mk b/mail/qmail/options.mk
index 9257a42f979..d1d2aab0d19 100644
--- a/mail/qmail/options.mk
+++ b/mail/qmail/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.18 2005/12/05 20:50:35 rillig Exp $
+# $NetBSD: options.mk,v 1.19 2006/01/02 21:13:43 schmonz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.qmail
PKG_SUPPORTED_OPTIONS+= darwin sasl syncdir tls qmail-badrcptto qmail-bigdns
@@ -30,12 +30,6 @@ DARWIN_PATCH= panther.patch
PATCHFILES+= ${DARWIN_PATCH}
SITES_${DARWIN_PATCH}= http://http.netdevice.com:9080/qmail/patch/
PATCH_DIST_STRIP.${DARWIN_PATCH}= -p1
-post-wrapper:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- nameser8_compat_h="include/nameser8_compat.h"; \
- if [ ! -e /usr/$${nameser8_compat_h} ]; then \
- ${TOUCH} ${BUILDLINK_DIR}/$${nameser8_compat_h}; \
- fi
DARWINSUFX= .doc
.else
DARWINSUFX= # empty