aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 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