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 | 251c68ad34c413c38ed49d674cf1402b669eb817 (patch) | |
tree | 7a07d426295c0fe030b886c0403b4fff943f7526 /mail | |
parent | e2bde9832c0dc113af7ba948f8d289c19b0297e5 (diff) | |
download | pkgsrc-251c68ad34c413c38ed49d674cf1402b669eb817.tar.gz |
Fix for recent SunOS platforms where support for NIS+ was dropped.
Diffstat (limited to 'mail')
-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 |