Skip site navigation (1)Skip section navigation (2)
Date:      06 Jun 2000 14:32:37 -0700
From:      asami@freebsd.org (Satoshi - Ports Wraith - Asami)
To:        Adrian Penisoara <ady@warpnet.ro>
Cc:        Doug Barton <DougB@gorean.org>, ports@freebsd.org
Subject:   Re: pine.conf
Message-ID:  <vqcwvk2o5qi.fsf@silvia.hip.berkeley.edu>
In-Reply-To: Adrian Penisoara's message of "Mon, 5 Jun 2000 13:46:59 %2B0300 (EEST)"
References:  <Pine.BSF.4.10.10006051324560.26875-100000@ady.warpnet.ro>

next in thread | previous in thread | raw e-mail | index | archive | help
 * From: Adrian Penisoara <ady@warpnet.ro>

 *  Doug answered just fine.

 * On Sat, 3 Jun 2000, Doug Barton wrote:
 * 
 * > Satoshi Asami wrote:
 * > > 
 * > > Hi,
 * > > 
 * > > mail/pine4/pkg/PLIST is creating pine.conf using the following two lines:
 * > > 
 * > >   @exec %D/bin/pine -P %D/etc/pine.conf -conf >%D/etc/pine.conf.tmp
 * > >   @exec /bin/mv %D/etc/pine.conf.tmp %D/etc/pine.conf
 * > > 
 * > > I'm not sure what the -P option of pine does
 * > 
 * > 	It specifies a specific conf file to use, instead of the default. 

So this is a way to merge the user's changes (if any are in
${PREFIX}/etc/pine.conf) into the new pine's configuration, correct?

 * > 	'pine -conf' will generate a default file for that version of pine on
 * > stdout. You could diff the installed version against that to detect
 * > changes. 

Ok.  So will something like the following be acceptable?  (I've just
verified on bento that it indeed erases pine.conf.)

Satoshi
-------
Index: pkg/PLIST
===================================================================
RCS file: /home/ncvs/ports/mail/pine4/pkg/PLIST,v
retrieving revision 1.13
diff -u -r1.13 PLIST
--- pkg/PLIST	1998/10/05 04:23:19	1.13
+++ pkg/PLIST	2000/06/06 21:17:24
@@ -1,3 +1,6 @@
+@unexec %D/bin/pine -conf >%D/etc/pine.conf.tmp
+@unexec if cmp -s %D/etc/pine.conf %D/etc/pine.conf.tmp; then rm -f %D/etc/pine.conf; fi
+@unexec rm -f %D/etc/pine.conf.tmp
 bin/pico
 bin/pilot
 bin/pine


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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