Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Feb 2004 18:14:00 +0800 (CST)
From:      Hsin-Hsiung Chang <sexbear@tmu.edu.tw>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/63060: update port: mail/mailmgr 
Message-ID:  <200402191014.i1JAE0UD093239@freebsd.netlab.cse.yzu.edu.tw>
Resent-Message-ID: <200402191020.i1JAKFga059568@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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
+@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
--- diff.txt ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402191014.i1JAE0UD093239>