Use SUBST framework for mailer.conf as well.

This commit is contained in:
joerg 2006-01-10 20:31:00 +00:00
parent 53e65c5b84
commit 89eaa0081e

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.175 2006/01/10 06:38:14 martti Exp $
# $NetBSD: Makefile,v 1.176 2006/01/10 20:31:00 joerg Exp $
DISTNAME= postfix-2.2.8
#PKGREVISION= 1
@ -106,14 +106,20 @@ CONF_FILES+= ${EXAMPLEDIR}/smtpd.conf ${SASLLIBDIR}/smtpd.conf
MAKE_ENV+= DEBUG= # empty
SUBST_CLASSES+= paths
SUBST_FILES.paths= ${WRKDIR}/mailer.conf
SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g'
SUBST_STAGE.paths= post-patch
post-extract:
${CP} ${FILESDIR}/mailer.conf ${WRKDIR}/mailer.conf
do-configure:
cd ${WRKSRC} && \
${SETENV} ${MAKE_ENV} ${MAKE} -f Makefile.init makefiles \
'CCARGS=${CCARGS}' 'AUXLIBS=${AUXLIBS}'
post-build:
@${SED} ${FILES_SUBST_SED} ${FILESDIR}/mailer.conf \
> ${WRKDIR}/mailer.conf
.if !empty(PKG_OPTIONS:Msasl)
${ECHO} "pwcheck_method: ${PWCHECK_METHOD}" > ${WRKDIR}/smtpd.conf
.endif