From owner-freebsd-ports@FreeBSD.ORG Mon Apr 10 17:35:29 2006 Return-Path: X-Original-To: freebsd-ports@FreeBSD.org Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 30FDF16A402; Mon, 10 Apr 2006 17:35:29 +0000 (UTC) (envelope-from scrappy@hub.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8019F43D58; Mon, 10 Apr 2006 17:35:28 +0000 (GMT) (envelope-from scrappy@hub.org) Received: from localhost (unknown [200.46.204.144]) by hub.org (Postfix) with ESMTP id 0760262CA1C; Mon, 10 Apr 2006 14:35:28 -0300 (ADT) X-Virus-Scanned: by amavisd-new at hub.org Received: from hub.org ([200.46.204.220]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id i5QI6iQIycMB; Mon, 10 Apr 2006 14:35:24 -0300 (ADT) Received: from ganymede.hub.org (blk-222-82-85.eastlink.ca [24.222.82.85]) by hub.org (Postfix) with ESMTP id DA88B62CA12; Mon, 10 Apr 2006 14:35:25 -0300 (ADT) Received: by ganymede.hub.org (Postfix, from userid 1000) id BB8604A663; Mon, 10 Apr 2006 14:35:25 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by ganymede.hub.org (Postfix) with ESMTP id 5BD4E4A661; Mon, 10 Apr 2006 14:35:25 -0300 (ADT) Date: Mon, 10 Apr 2006 14:35:25 -0300 (ADT) From: "Marc G. Fournier" To: Thierry Thomas In-Reply-To: <20060410075351.GA40925@graf.pompo.net> Message-ID: <20060410143318.G1096@ganymede.hub.org> 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> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-2131973191-1144690525=:1096" Cc: freebsd-ports@FreeBSD.org Subject: Re: BEWARE upgrading Horde System X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2006 17:35:29 -0000 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 > =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--