summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorjoerg <joerg>2006-01-19 02:31:12 +0000
committerjoerg <joerg>2006-01-19 02:31:12 +0000
commite3243ce473700d0f41a966895f730fa9c886d5cd (patch)
tree2cf8602f4224b6d5820a0046ab8a58caa731328b /mail
parentab2458a005a82bce00913b0af8d4006a00e94862 (diff)
downloadpkgsrc-e3243ce473700d0f41a966895f730fa9c886d5cd.tar.gz
Use SUBST framework.
Diffstat (limited to 'mail')
-rw-r--r--mail/dovecot/Makefile12
1 files changed, 5 insertions, 7 deletions
diff --git a/mail/dovecot/Makefile b/mail/dovecot/Makefile
index b29f82a2a55..13d7df554f1 100644
--- a/mail/dovecot/Makefile
+++ b/mail/dovecot/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.41 2006/01/10 12:39:04 ghen Exp $
+# $NetBSD: Makefile,v 1.42 2006/01/19 02:31:12 joerg Exp $
DISTNAME= dovecot-0.99.14
PKGREVISION= 2
@@ -35,12 +35,10 @@ CONF_FILES= ${EGDIR}/dovecot.conf.default ${PKG_SYSCONFDIR}/dovecot.conf
INSTALLATION_DIRS= libexec/dovecot sbin share/doc/dovecot \
share/examples/dovecot
-post-configure:
- @cd ${WRKSRC}; \
- for i in dovecot-example.conf; do \
- ${SED} ${FILES_SUBST_SED} $$i > $$i.new; \
- ${MV} -f $$i.new $$i; \
- done
+SUBST_CLASSES+= paths
+SUBST_FILES.paths= dovecot-example.conf
+SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g'
+SUBST_STAGE.paths= post-patch
post-install:
${INSTALL_DATA_DIR} ${EGDIR}