Fri Mar 9 14:58:41 2012 UTC ()
Fix for recent SunOS platforms where support for NIS+ was dropped.


(fhajny)
diff -r1.247 -r1.248 pkgsrc/mail/postfix/Makefile

cvs diff -r1.247 -r1.248 pkgsrc/mail/postfix/Makefile (expand / switch to unified diff)

--- pkgsrc/mail/postfix/Makefile 2012/03/06 11:10:22 1.247
+++ pkgsrc/mail/postfix/Makefile 2012/03/09 14:58:41 1.248
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.247 2012/03/06 11:10:22 taca Exp $ 1# $NetBSD: Makefile,v 1.248 2012/03/09 14:58:41 fhajny Exp $
2 2
3DISTNAME= postfix-2.8.9 3DISTNAME= postfix-2.8.9
4CATEGORIES= mail 4CATEGORIES= mail
5MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ 5MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/
6MASTER_SITES+= http://postfix.it-austria.net/releases/official/ 6MASTER_SITES+= http://postfix.it-austria.net/releases/official/
7MASTER_SITES+= http://mirrors.isc.org/pub/postfix/official/ 7MASTER_SITES+= http://mirrors.isc.org/pub/postfix/official/
8MASTER_SITES+= http://mirror.postfix.jp/postfix-release/official/ 8MASTER_SITES+= http://mirror.postfix.jp/postfix-release/official/
9 9
10MAINTAINER= pkgsrc-users@NetBSD.org 10MAINTAINER= pkgsrc-users@NetBSD.org
11HOMEPAGE= http://www.postfix.org/ 11HOMEPAGE= http://www.postfix.org/
12COMMENT= Postfix SMTP server and tools 12COMMENT= Postfix SMTP server and tools
13# The postfix license has only very minor diffs from cpl-1.0. 13# The postfix license has only very minor diffs from cpl-1.0.
14LICENSE= cpl-1.0 14LICENSE= cpl-1.0
@@ -123,26 +123,34 @@ PKG_HOME.postfix= ${POSTFIX_QUEUE_DIR} @@ -123,26 +123,34 @@ PKG_HOME.postfix= ${POSTFIX_QUEUE_DIR}
123CONF_FILES= # empty 123CONF_FILES= # empty
124.for i in main.cf master.cf 124.for i in main.cf master.cf
125CONF_FILES+= ${EXAMPLEDIR}/${i} ${PKG_SYSCONFDIR}/${i} 125CONF_FILES+= ${EXAMPLEDIR}/${i} ${PKG_SYSCONFDIR}/${i}
126.endfor 126.endfor
127CONF_FILES_PERMS= # empty 127CONF_FILES_PERMS= # empty
128 128
129MAKE_ENV+= DEBUG= # empty 129MAKE_ENV+= DEBUG= # empty
130 130
131SUBST_CLASSES+= paths 131SUBST_CLASSES+= paths
132SUBST_FILES.paths= ${WRKDIR}/mailer.conf 132SUBST_FILES.paths= ${WRKDIR}/mailer.conf
133SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g' 133SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g'
134SUBST_STAGE.paths= post-patch 134SUBST_STAGE.paths= post-patch
135 135
 136.if ${OPSYS} == "SunOS" && !exists(/usr/include/rpcsvc/nis_cache.h)
 137SUBST_CLASSES+= nis
 138SUBST_FILES.nis= src/util/sys_defs.h
 139SUBST_MESSAGE.nis= Working around dropped support for NIS+ on SunOS
 140SUBST_STAGE.nis= post-patch
 141SUBST_SED.nis= -e 's,\#define HAS_NISPLUS,\#undef HAS_NISPLUS,g'
 142.endif
 143
136.if !empty(USE_DESTDIR:M[Yy][Ee][Ss]) 144.if !empty(USE_DESTDIR:M[Yy][Ee][Ss])
137DESTDIR_INSTALLOPTIONS=-package install_root="${DESTDIR}" 145DESTDIR_INSTALLOPTIONS=-package install_root="${DESTDIR}"
138.endif 146.endif
139 147
140INSTALLATION_DIRS+= ${LIBEXECDIR} ${EXAMPLEDIR} ${DOCDIR} 148INSTALLATION_DIRS+= ${LIBEXECDIR} ${EXAMPLEDIR} ${DOCDIR}
141 149
142post-extract: 150post-extract:
143 cp ${FILESDIR}/mailer.conf ${WRKDIR}/mailer.conf 151 cp ${FILESDIR}/mailer.conf ${WRKDIR}/mailer.conf
144 rm -f ${WRKSRC}/auxiliary/MacOSX/Postfix.StartupItem/Postfix 152 rm -f ${WRKSRC}/auxiliary/MacOSX/Postfix.StartupItem/Postfix
145 153
146do-configure: 154do-configure:
147 cd ${WRKSRC} && \ 155 cd ${WRKSRC} && \
148 env ${MAKE_ENV} ${MAKE} -f Makefile.init makefiles \ 156 env ${MAKE_ENV} ${MAKE} -f Makefile.init makefiles \