From 1b531b59d5351b03e422616048ab410346104d57 Mon Sep 17 00:00:00 2001 From: pgollucci Date: Sun, 31 Jan 2010 03:51:05 +0000 Subject: - use $SUB_FILES to dynamically adjust pkg-message PR: ports/142768 Submitted by: Sevan Janiyan Approved by: maintainer timeout (sexbear@tmu.edu.tw; > 2 weeks) --- mail/mailmgr/Makefile | 4 +--- mail/mailmgr/files/pkg-message.in | 4 ++++ mail/mailmgr/pkg-message | 4 ---- 3 files changed, 5 insertions(+), 7 deletions(-) create mode 100644 mail/mailmgr/files/pkg-message.in delete mode 100644 mail/mailmgr/pkg-message (limited to 'mail/mailmgr') diff --git a/mail/mailmgr/Makefile b/mail/mailmgr/Makefile index 4dc9ef83a9a7..7e37144b736a 100644 --- a/mail/mailmgr/Makefile +++ b/mail/mailmgr/Makefile @@ -15,8 +15,7 @@ COMMENT= Sendmail Analysis Report Generator GNU_CONFIGURE= yes -MSG_FILE= ${PKGDIR}/pkg-message -PKGMESSAGE= ${WRKSRC}/pkg-message +SUB_FILES= pkg-message do-install: ${INSTALL_DATA} ${WRKSRC}/mailmgr.conf ${PREFIX}/etc/mailmgr.conf.default @@ -24,7 +23,6 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/mailmgr.conf ${PREFIX}/etc/mailmgr.conf .endif ${INSTALL_PROGRAM} ${WRKSRC}/mailmgr ${PREFIX}/bin - @${SED} 's|%%PREFIX%%|${PREFIX}|g' ${MSG_FILE} > ${PKGMESSAGE} @${CAT} ${PKGMESSAGE} .include diff --git a/mail/mailmgr/files/pkg-message.in b/mail/mailmgr/files/pkg-message.in new file mode 100644 index 000000000000..636ec82ac55d --- /dev/null +++ b/mail/mailmgr/files/pkg-message.in @@ -0,0 +1,4 @@ +--------------------------------------------------------------- +You need to configure the %%PREFIX%%/etc/mailmgr.conf before using it. +See http://sarg.sourceforge.net/mailmgr.README.txt +--------------------------------------------------------------- diff --git a/mail/mailmgr/pkg-message b/mail/mailmgr/pkg-message deleted file mode 100644 index 636ec82ac55d..000000000000 --- a/mail/mailmgr/pkg-message +++ /dev/null @@ -1,4 +0,0 @@ ---------------------------------------------------------------- -You need to configure the %%PREFIX%%/etc/mailmgr.conf before using it. -See http://sarg.sourceforge.net/mailmgr.README.txt ---------------------------------------------------------------- -- cgit