Date: Mon, 10 Apr 2006 14:35:25 -0300 (ADT) From: "Marc G. Fournier" <scrappy@hub.org> To: Thierry Thomas <thierry@FreeBSD.org> Cc: freebsd-ports@FreeBSD.org Subject: Re: BEWARE upgrading Horde System Message-ID: <20060410143318.G1096@ganymede.hub.org> In-Reply-To: <20060410075351.GA40925@graf.pompo.net> References: <20060407032220.W947@ganymede.hub.org> <1144391457.23833.6.camel@shumai.marcuscom.com> <44363371.9050200@fromley.net> <20060407141831.GA65673@pentarou.parodius.com> <20060408075305.GB58919@graf.pompo.net> <20060409050018.X1096@ganymede.hub.org> <20060409201012.GF93845@graf.pompo.net> <20060409203111.S1096@ganymede.hub.org> <20060410075351.GA40925@graf.pompo.net>
next in thread | previous in thread | raw e-mail | index | archive | help
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-2131973191-1144690525=:1096 Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Mon, 10 Apr 2006, Thierry Thomas wrote: > Le Lun 10 avr 06 =E0 1:41:59 +0200, Marc G. Fournier <scrappy@hub.org> > =E9crivait=A0: >>> I had choosen the first method, because I thought it was easier for the >>> OP this way, and I think that a port should do better than a manual >>> installation. >> >> You've missed the 3rd, and optimal, option: on initial install, install >> the config files based on the .dist files, but *do not* overwrite an >> existing config file (ie. after an upgrade) ... > > If you want the package to install these files, they must be registered > in pkg-plist, and then they will be deinstalled. Huh? You do it in the Makefile here: =2Efor FILE in ${CONFFILE} @if [ ! -f ${CONFDIR}/${FILE} ]; then \ ${CP} ${CONFDIR}/${FILE}.dist ${CONFDIR}/${FILE} ; \ fi =2Eendfor Which is *perfect* ... *If* there is no config file already, then copy the= =20 =2Edist one that comes with Horde over ... what is wrong is that later, in= =20 files/pkg-install.in, you go one step further and say "*If* there is a=20 config file there, then move that one out of the way and replace it with=20 the .dist one": for cf in `ls %%HORDEDIR%%/config/*php`; do if [ -f $cf.previous ]; then mv $cf $cf.new echo "---> $cf not installed ***" echo "---> please copy from $cf.previous ***" echo "---> or from $cf.new ***" fi done Its that second one that I have a problem with ... ---- Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email: scrappy@hub.org Yahoo!: yscrappy ICQ: 7615664 --0-2131973191-1144690525=:1096--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060410143318.G1096>