Date: Tue, 13 Apr 1999 20:28:27 -0500 From: "Scot W. Hetzel" <hetzels@westbend.net> To: "Michael Haro" <mharo@FreeBSD.ORG> Cc: <tom@eborcom.com>, <freebsd-ports@FreeBSD.ORG> Subject: Re: ports/11118: [Patch] Mutt deletes configuration files Message-ID: <01d501be8616$1918a2c0$8dfee0d1@westbend.net> References: <199904140000.RAA41328@freefall.freebsd.org> <19990414041052.B35353@nagual.pp.ru> <19990413174136.A1488@hub.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
From: Michael Haro <mharo@FreeBSD.ORG> > On Wed, Apr 14, 1999 at 04:10:52AM +0400, Andrey A. Chernov wrote: > > > > Wrong way. *.default config must be packaged instead. > > At the moment mutt installs its config in ${PREFIX}/etc if it > doesn't exist and always puts it in ${PREFIX}/share/mutt > > Is this fine, or should it be changed to ${PREFIX}/etc/_____.default? > All these ports that are being changed should install ${PREFIX}/etc/[config.file(s)].default, and checking if the [config.file(s)] exists, if they don't exist then create them from the default config file(s). One way to do this is by adding it to the PLIST: example PLIST : etc/config.file.default @exec if [ ! -f %D/etc/config.file ] ; then cp %D/%F %B/config.file; fi : Another option is to create an install script that will also check for the existence of the config file(s). 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?01d501be8616$1918a2c0$8dfee0d1>