summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2012-03-20 16:34:32 +0000
committerdholland <dholland@pkgsrc.org>2012-03-20 16:34:32 +0000
commit9cb248d2222e7549ee96050bd4c249731cc10eba (patch)
tree5481175d09b2c4c5268973d94b98dfee6869d713 /mail
parent9c06a86a8a976d08b0d7bf938270bc239526f6ef (diff)
downloadpkgsrc-9cb248d2222e7549ee96050bd4c249731cc10eba.tar.gz
If OPSYS is NetBSD and there is no PAM header in /usr/include, include
pam.buildlink3.mk. This is wrong and a hack, but it gets the package building again in my test environment. Someone please revert this and do it right. Currently there seems to be logic for enabling PAM in the build or not on various platforms depending on whether native PAM appears to exist. This is higly bogus; the package should be cleaned up so it either depends on PAM or doesn't, regardless of platform, or preferably makes it a build option. XXX.
Diffstat (limited to 'mail')
-rw-r--r--mail/imap-uw/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/mail/imap-uw/Makefile b/mail/imap-uw/Makefile
index 710adda0483..071c7ceabd5 100644
--- a/mail/imap-uw/Makefile
+++ b/mail/imap-uw/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.134 2011/01/30 01:33:44 markd Exp $
+# $NetBSD: Makefile,v 1.135 2012/03/20 16:34:32 dholland Exp $
#
# ATTENTION:
# The Kerberos support in this software is known to be problematic. If you
@@ -69,6 +69,12 @@ BUILD_TARGET.OpenBSD= bso
BUILD_TARGET.*= neb
MESSAGE_SRC= ${PKGDIR}/MESSAGE
+# XXX this is not the right approach - should either depend on pam or
+# not, or make it an option.
+.if ${OPSYS} == NetBSD && !exists(/usr/include/security/pam_appl.h)
+.include "../../mk/pam.buildlink3.mk"
+.endif
+
.include "options.mk"
# The defaults for these values are set in pkgsrc/mk/defaults/mk.conf.