diff options
author | leeym <leeym@FreeBSD.org> | 2004-02-18 09:17:04 +0000 |
---|---|---|
committer | leeym <leeym@FreeBSD.org> | 2004-02-18 09:17:04 +0000 |
commit | 308cd2767532a8d7b89b1b9884d0d0210108b9ac (patch) | |
tree | e599c9ec43a7baf513c520b061a21037e0c489ac /mail/mailmgr | |
parent | 67e9ff84cebb1c436bf0b451187fbb6d12ccc8b0 (diff) | |
download | FreeBSD-ports-308cd2767532a8d7b89b1b9884d0d0210108b9ac.zip FreeBSD-ports-308cd2767532a8d7b89b1b9884d0d0210108b9ac.tar.gz |
- 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>
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 4b3bdeb..ac87f20 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 73a1d3b..f83b44d 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 |