pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/dovecot Use SUBST framework.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d38cf75f7665
branches:  trunk
changeset: 506570:d38cf75f7665
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Jan 19 02:31:12 2006 +0000

description:
Use SUBST framework.

diffstat:

 mail/dovecot/Makefile |  12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diffs (26 lines):

diff -r cb94237aeade -r d38cf75f7665 mail/dovecot/Makefile
--- a/mail/dovecot/Makefile     Thu Jan 19 02:14:13 2006 +0000
+++ b/mail/dovecot/Makefile     Thu Jan 19 02:31:12 2006 +0000
@@ -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 @@
 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}



Home | Main Index | Thread Index | Old Index