| @@ -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 | |
3 | DISTNAME= postfix-2.8.9 | | 3 | DISTNAME= postfix-2.8.9 |
4 | CATEGORIES= mail | | 4 | CATEGORIES= mail |
5 | MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ | | 5 | MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ |
6 | MASTER_SITES+= http://postfix.it-austria.net/releases/official/ | | 6 | MASTER_SITES+= http://postfix.it-austria.net/releases/official/ |
7 | MASTER_SITES+= http://mirrors.isc.org/pub/postfix/official/ | | 7 | MASTER_SITES+= http://mirrors.isc.org/pub/postfix/official/ |
8 | MASTER_SITES+= http://mirror.postfix.jp/postfix-release/official/ | | 8 | MASTER_SITES+= http://mirror.postfix.jp/postfix-release/official/ |
9 | | | 9 | |
10 | MAINTAINER= pkgsrc-users@NetBSD.org | | 10 | MAINTAINER= pkgsrc-users@NetBSD.org |
11 | HOMEPAGE= http://www.postfix.org/ | | 11 | HOMEPAGE= http://www.postfix.org/ |
12 | COMMENT= Postfix SMTP server and tools | | 12 | COMMENT= 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. |
14 | LICENSE= cpl-1.0 | | 14 | LICENSE= cpl-1.0 |
| @@ -123,26 +123,34 @@ PKG_HOME.postfix= ${POSTFIX_QUEUE_DIR} | | | @@ -123,26 +123,34 @@ PKG_HOME.postfix= ${POSTFIX_QUEUE_DIR} |
123 | CONF_FILES= # empty | | 123 | CONF_FILES= # empty |
124 | .for i in main.cf master.cf | | 124 | .for i in main.cf master.cf |
125 | CONF_FILES+= ${EXAMPLEDIR}/${i} ${PKG_SYSCONFDIR}/${i} | | 125 | CONF_FILES+= ${EXAMPLEDIR}/${i} ${PKG_SYSCONFDIR}/${i} |
126 | .endfor | | 126 | .endfor |
127 | CONF_FILES_PERMS= # empty | | 127 | CONF_FILES_PERMS= # empty |
128 | | | 128 | |
129 | MAKE_ENV+= DEBUG= # empty | | 129 | MAKE_ENV+= DEBUG= # empty |
130 | | | 130 | |
131 | SUBST_CLASSES+= paths | | 131 | SUBST_CLASSES+= paths |
132 | SUBST_FILES.paths= ${WRKDIR}/mailer.conf | | 132 | SUBST_FILES.paths= ${WRKDIR}/mailer.conf |
133 | SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g' | | 133 | SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g' |
134 | SUBST_STAGE.paths= post-patch | | 134 | SUBST_STAGE.paths= post-patch |
135 | | | 135 | |
| | | 136 | .if ${OPSYS} == "SunOS" && !exists(/usr/include/rpcsvc/nis_cache.h) |
| | | 137 | SUBST_CLASSES+= nis |
| | | 138 | SUBST_FILES.nis= src/util/sys_defs.h |
| | | 139 | SUBST_MESSAGE.nis= Working around dropped support for NIS+ on SunOS |
| | | 140 | SUBST_STAGE.nis= post-patch |
| | | 141 | SUBST_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]) |
137 | DESTDIR_INSTALLOPTIONS=-package install_root="${DESTDIR}" | | 145 | DESTDIR_INSTALLOPTIONS=-package install_root="${DESTDIR}" |
138 | .endif | | 146 | .endif |
139 | | | 147 | |
140 | INSTALLATION_DIRS+= ${LIBEXECDIR} ${EXAMPLEDIR} ${DOCDIR} | | 148 | INSTALLATION_DIRS+= ${LIBEXECDIR} ${EXAMPLEDIR} ${DOCDIR} |
141 | | | 149 | |
142 | post-extract: | | 150 | post-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 | |
146 | do-configure: | | 154 | do-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 \ |