ports/63060: update port: mail/mailmgr
Hsin-Hsiung Chang
sexbear at tmu.edu.tw
Thu Feb 19 10:20:15 UTC 2004
>Number: 63060
>Category: ports
>Synopsis: update port: mail/mailmgr
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Thu Feb 19 02:20:13 PST 2004
>Closed-Date:
>Last-Modified:
>Originator: Hsin-Hsiung Chang
>Release: FreeBSD 4.9-STABLE i386
>Organization:
>Environment:
System: FreeBSD freebsd.netlab.cse.yzu.edu.tw 4.9-STABLE FreeBSD 4.9-STABLE #0: Tue Dec 9 21:35:17 CST 2003 statue at freebsd.netlab.cse.yzu.edu.tw:/usr/obj/usr/src/sys/statue i386
>Description:
Update the port to follow the porter's rules.
Thanks to Leeym for his advices.
>How-To-Repeat:
>Fix:
--- diff.txt begins here ---
--- Makefile.new Tue Feb 17 20:09:35 2004
+++ Makefile Tue Feb 17 20:39:02 2004
@@ -1,6 +1,6 @@
# New ports collection makefile for: mailmgr
# Date created: 14 August 2003
-# Whom: Hsin-HSIUNG CHANG
+# Whom: Hsin-Hsiung Chang
#
# $FreeBSD: ports/mail/mailmgr/Makefile,v 1.2 2004/02/10 20:51:56 linimon Exp $
#
@@ -14,11 +14,15 @@
COMMENT= Sendmail Analisys Report Generator
GNU_CONFIGURE= yes
-CONFIGURE_ARGS+= --prefix=${PREFIX}
do-install:
- ${CP} ${WRKSRC}/mailmgr.conf ${PREFIX}/etc/mailmgr.conf
- ${CP} ${WRKSRC}/mailmgr ${PREFIX}/bin/mailmgr
+ @${INSTALL_DATA} \
+ ${WRKSRC}/mailmgr.conf ${PREFIX}/etc/mailmgr.conf.defaul
t
+ @if [ ! -f ${PREFIX}/etc/mailmgr.conf ]; then \
+ ${INSTALL_DATA} \
+ ${WRKSRC}/mailmgr.conf ${PREFIX}/etc/mailmgr.con
f; \
+ fi
+ ${INSTALL_PROGRAM} ${WRKSRC}/mailmgr ${PREFIX}/bin
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
--- pkg-plist.orig Tue Feb 17 20:25:42 2004
+++ pkg-plist Tue Feb 17 20:27:17 2004
@@ -1,2 +1,4 @@
-etc/mailmgr.conf
+ at 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
+ at exec if [ ! -f %D/etc/mailmgr.conf ] ; then cp -p %D/%F %B/mailmgr.conf; fi
bin/mailmgr
--- diff.txt ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list