diff options
author | fhajny <fhajny@pkgsrc.org> | 2012-03-09 14:58:41 +0000 |
---|---|---|
committer | fhajny <fhajny@pkgsrc.org> | 2012-03-09 14:58:41 +0000 |
commit | 1a4c970220d817c7682b9ecb1980ebbe91e66aad (patch) | |
tree | 7a07d426295c0fe030b886c0403b4fff943f7526 /mail/postfix | |
parent | 8474eaf51a5243c9474b14b123b07576a5aef792 (diff) | |
download | pkgsrc-1a4c970220d817c7682b9ecb1980ebbe91e66aad.tar.gz |
Fix for recent SunOS platforms where support for NIS+ was dropped.
Diffstat (limited to 'mail/postfix')
-rw-r--r-- | mail/postfix/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
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 |