From 1a4c970220d817c7682b9ecb1980ebbe91e66aad Mon Sep 17 00:00:00 2001 From: fhajny Date: Fri, 9 Mar 2012 14:58:41 +0000 Subject: Fix for recent SunOS platforms where support for NIS+ was dropped. --- mail/postfix/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'mail/postfix') diff --git a/mail/postfix/Makefile b/mail/postfix/Makefile index fac0997af00..80068e64b74 100644 --- a/mail/postfix/Makefile +++ b/mail/postfix/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.247 2012/03/06 11:10:22 taca Exp $ +# $NetBSD: Makefile,v 1.248 2012/03/09 14:58:41 fhajny Exp $ DISTNAME= postfix-2.8.9 CATEGORIES= mail @@ -133,6 +133,14 @@ SUBST_FILES.paths= ${WRKDIR}/mailer.conf SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g' SUBST_STAGE.paths= post-patch +.if ${OPSYS} == "SunOS" && !exists(/usr/include/rpcsvc/nis_cache.h) +SUBST_CLASSES+= nis +SUBST_FILES.nis= src/util/sys_defs.h +SUBST_MESSAGE.nis= Working around dropped support for NIS+ on SunOS +SUBST_STAGE.nis= post-patch +SUBST_SED.nis= -e 's,\#define HAS_NISPLUS,\#undef HAS_NISPLUS,g' +.endif + .if !empty(USE_DESTDIR:M[Yy][Ee][Ss]) DESTDIR_INSTALLOPTIONS=-package install_root="${DESTDIR}" .endif -- cgit v1.2.3