summaryrefslogtreecommitdiffstats
path: root/mail/mailmgr
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2004-02-18 09:17:04 +0000
committerleeym <leeym@FreeBSD.org>2004-02-18 09:17:04 +0000
commit308cd2767532a8d7b89b1b9884d0d0210108b9ac (patch)
treee599c9ec43a7baf513c520b061a21037e0c489ac /mail/mailmgr
parent67e9ff84cebb1c436bf0b451187fbb6d12ccc8b0 (diff)
downloadFreeBSD-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/Makefile10
-rw-r--r--mail/mailmgr/pkg-plist4
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
OpenPOWER on IntegriCloud