From owner-freebsd-ports@FreeBSD.ORG Mon Apr 10 20:14:14 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 B041716A405 for ; Mon, 10 Apr 2006 20:14:14 +0000 (UTC) (envelope-from thierry@pompo.net) Received: from graf.pompo.net (graf.pompo.net [81.56.186.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id E533743D48 for ; Mon, 10 Apr 2006 20:14:13 +0000 (GMT) (envelope-from thierry@pompo.net) Received: by graf.pompo.net (Postfix, from userid 1001) id CF64C11488; Mon, 10 Apr 2006 22:14:10 +0200 (CEST) Date: Mon, 10 Apr 2006 22:14:10 +0200 From: Thierry Thomas To: Alexander Leidinger Message-ID: <20060410201410.GA12327@graf.pompo.net> Mail-Followup-To: Alexander Leidinger , freebsd-ports@freebsd.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> <20060410145555.291wa5oc0s04gko0@netchild.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20060410145555.291wa5oc0s04gko0@netchild.homeip.net> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 6.1-PRERELEASE i386 Organization: Kabbale Eros X-Face: (hRbQnK~Pt7$ct`!fupO(`y_WL4^-Iwn4@ly-.,[4xC4xc; y=\ipKMNm<1J>lv@PP~7Z<.t KjAnXLs: X-PGP: 0xC71405A2 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 20:14:14 -0000 Le Lun 10 avr 06 à 14:55:55 +0200, Alexander Leidinger écrivait : > Several ports already handle this situation. There's some "plist > magic" which does a "@exec [ -e x ] || cp x.dist x" (or something like > this, I didn't looked it up) and a "@unexec cmp x.dist x conditional> rm x". > > So it makes a copy to the config file from the .dist one on > installation and removes the config if it is equal to the .dist one on > deinstallation. It may be the case that you have to do the same thing > in the port Makefile too (when @exec isn't executed when installing > from source). Another alternative would be a pkg-(de)install script > which handles the removal in the pre-deinstall case and the copy in > the post-install case. The Horde port already uses such mechanisms... The problem with these PHP applications is that your configuration parameters are mixed within some code, and you cannot blindly keep a copy of your config files from your initial installation forever. > While we're discussing the horde upgrade... is there some trick to run > the 3.0 to 3.1 history migration script or is my php setup fucked-up > in the CLI (for the apache module case everything is setup in > httpd.conf, no php.ini) case (I get some error messages about not > being able to include pear.php or something like this... I don't have > the error messages at hand)? move_history_out_of_datatree.php is a Horde script, which uses Horde classes, which need to find pear in your include_path. You could try to set a temporary php.ini (with PHPRC or php -c). Regards, -- Th. Thomas.