diff options
author | Yen-Ming Lee <leeym@FreeBSD.org> | 2004-02-18 09:17:04 +0000 |
---|---|---|
committer | Yen-Ming Lee <leeym@FreeBSD.org> | 2004-02-18 09:17:04 +0000 |
commit | 75a39de023017024ce43c21b6c95554091f051ac (patch) | |
tree | 4fcea31992cc0d7b3c24ff90887c6d0841bd7c76 /mail/mailmgr | |
parent | Correct dependencies. (diff) |
- install this port correctly.
- minor cleanups.
PR: 62912
Submitted by: Hsin-Hsiung Chang <sexbear@tmu.edu.tw>
Reviewed by: Hsin-Hsiung Chang <sexbear@tmu.edu.tw>
Notes
Notes:
svn path=/head/; revision=101308
Diffstat (limited to 'mail/mailmgr')
-rw-r--r-- | mail/mailmgr/Makefile | 10 | ||||
-rw-r--r-- | mail/mailmgr/pkg-plist | 4 |
2 files changed, 10 insertions, 4 deletions
diff --git a/mail/mailmgr/Makefile b/mail/mailmgr/Makefile index 4b3bdeb6e0db..ac87f20bb154 100644 --- a/mail/mailmgr/Makefile +++ b/mail/mailmgr/Makefile @@ -1,6 +1,6 @@ # New ports collection makefile for: mailmgr # Date created: 14 August 2003 -# Whom: Hsin-HSIUNG CHANG +# Whom: Hsin-Hsiung Chang # # $FreeBSD$ # @@ -14,9 +14,13 @@ MAINTAINER= sexbear@tmu.edu.tw COMMENT= Sendmail Analisys Report Generator GNU_CONFIGURE= yes -CONFIGURE_ARGS+= --prefix=${PREFIX} do-install: - @${CAT} ${PKGMESSAGE} + ${INSTALL_DATA} ${WRKSRC}/mailmgr.conf ${PREFIX}/etc/mailmgr.conf.default +.if !exists(${PREFIX}/etc/mailmgr.conf) + ${INSTALL_DATA} ${WRKSRC}/mailmgr.conf ${PREFIX}/etc/mailmgr.conf +.endif + ${INSTALL_PROGRAM} ${WRKSRC}/mailmgr ${PREFIX}/bin + @${SED} -e 's,PREFIX,${PREFIX},g' ${PKGMESSAGE} .include <bsd.port.mk> diff --git a/mail/mailmgr/pkg-plist b/mail/mailmgr/pkg-plist index 73a1d3b155dd..f83b44df02c1 100644 --- a/mail/mailmgr/pkg-plist +++ b/mail/mailmgr/pkg-plist @@ -1,2 +1,4 @@ -etc/mailmgr.conf +@unexec if cmp -s %D/etc/mailmgr.conf %D/etc/mailmgr.conf.default; then rm -f %D/etc/mailmgr.conf; fi +etc/mailmgr.conf.default +@exec if [ ! -f %D/etc/mailmgr.conf ] ; then cp -p %D/%F %B/mailmgr.conf; fi bin/mailmgr |