From owner-freebsd-ports Wed Jun 7 3:22:44 2000 Delivered-To: freebsd-ports@freebsd.org Received: from ady.warpnet.ro (ady.warpnet.ro [194.102.224.1]) by hub.freebsd.org (Postfix) with ESMTP id 2839737B89A; Wed, 7 Jun 2000 03:22:26 -0700 (PDT) (envelope-from ady@warpnet.ro) Received: from localhost (ady@localhost) by ady.warpnet.ro (8.9.3/8.9.3) with ESMTP id NAA97497; Wed, 7 Jun 2000 13:28:30 +0300 (EEST) (envelope-from ady@warpnet.ro) Date: Wed, 7 Jun 2000 13:28:30 +0300 (EEST) From: Adrian Penisoara To: Satoshi - Ports Wraith - Asami Cc: Doug Barton , ports@freebsd.org Subject: Re: pine.conf In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, On 6 Jun 2000, Satoshi - Ports Wraith - Asami wrote: > * > > 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? Exactly ! > > * > '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.) Seems OK, though I would be thinking about just printing a message letting him know hat he may remove the file if he wants... BTW, shouldn't we use a temporary path instead of the local tree ? > > 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 > Ady (@warpnet.ro) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message