From owner-freebsd-ports Sat Jun 3 12:31:35 2000 Delivered-To: freebsd-ports@freebsd.org Received: from dt051n0b.san.rr.com (dt051n0b.san.rr.com [204.210.32.11]) by hub.freebsd.org (Postfix) with ESMTP id D299F37B5F0 for ; Sat, 3 Jun 2000 12:31:32 -0700 (PDT) (envelope-from DougB@gorean.org) Received: from gorean.org (doug@master [10.0.0.2]) by dt051n0b.san.rr.com (8.9.3/8.9.3) with ESMTP id MAA62299; Sat, 3 Jun 2000 12:31:14 -0700 (PDT) (envelope-from DougB@gorean.org) Message-ID: <39395D01.9A4DC9A7@gorean.org> Date: Sat, 03 Jun 2000 12:31:13 -0700 From: Doug Barton Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.72 [en] (X11; U; FreeBSD 5.0-CURRENT-0528 i386) X-Accept-Language: en MIME-Version: 1.0 To: Satoshi Asami Cc: pine@freebsd.ady.ro, ports@freebsd.org Subject: Re: pine.conf References: <200006030834.BAA75878@silvia.hip.berkeley.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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. > but this raises the following questions: > > (1) Does it preserve the user's existing pine.conf? (I assume it > does, but just checking.) Yes. > (2) What would be an acceptable way of removing it on deinstallation? > Is there a way to determine whether the user modified it to be > something other than the "default" pine.conf? (If it is modified, > it shouldn't be removed -- if it is not, then it can safely be > removed, since a new installation will regenerate it properly.) '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. HTH, Doug -- "Live free or die" - State motto of my ancestral homeland, New Hampshire Do YOU Yahoo!? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message