From owner-freebsd-stable Thu Feb 27 13:58: 4 2003 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2438437B401 for ; Thu, 27 Feb 2003 13:58:03 -0800 (PST) Received: from moya.lambermont.dyndns.org (e165253.upc-e.chello.nl [213.93.165.253]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9533843F93 for ; Thu, 27 Feb 2003 13:58:01 -0800 (PST) (envelope-from hans@lambermont.dyndns.org) Received: from localhost (localhost [127.0.0.1]) by moya.lambermont.dyndns.org (Postfix) with ESMTP id D6D8936402 for ; Thu, 27 Feb 2003 22:57:53 +0100 (CET) Received: by moya.lambermont.dyndns.org (Postfix, from userid 1001) id 82B1C36401; Thu, 27 Feb 2003 22:57:51 +0100 (CET) Date: Thu, 27 Feb 2003 22:57:51 +0100 To: freebsd-stable@freebsd.org Subject: Re: Upgrading ports and such Message-ID: <20030227215751.GH10572@moya.lambermont.dyndns.org> References: <20030227163439.A13145D04@ptavv.es.net> <8765r5hahj.fsf@strauser.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8765r5hahj.fsf@strauser.com> User-Agent: Mutt/1.4i From: hans@lambermont.dyndns.org (Hans Lambermont) X-Virus-Scanned: by AMaViS perl-11 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Kirk Strauser wrote: > At 2003-02-27T16:34:39Z, "Kevin Oberman" writes: > > MAKE_ARGS = { > > 'www/galeon2' => '-DWITH_FULL_MOZILLA', > > 'x11-fm/nautilus2' => '-DWITH_FULL_MOZILLA', > > 'x11-servers/XFree86-4-Server' => '-DWITH_MATROX_GXX_DRIVER', > > 'multimedia/mplayer' => '-DWITHOUT_RUNTIME_CPUDETECTION', > > } > > I just have to add here that this is one of my favorite features of any > OS'es package manager. It is *so* nice to throw system-dependent options in > there and forget about them. I don't know how many times I was bitten by > forgetting to define `WITH_SSL_AND_PLAINTEXT' when building cclient and > imap-uw before I found this feature. Agreed, but for some ports it gets more difficult. I'd like to stop and start services by portupgrade. For instance MySQL server upgrades, I didn't try these yet, but what about : BEFOREBUILD = { 'databases/mysql*-server' => '/usr/local/bin/mysqldump --all-databases > /var/spool/all_databases.sql', 'databases/mysql*' => '/usr/local/etc/rc.d/mysql-server.sh stop', } MAKE_ARGS = { 'databases/mysql*-server' => 'SKIP_INSTALL_DB=yes', } AFTERINSTALL = { 'databases/mysql*' => '/usr/local/etc/rc.d/mysql-server.sh start', } Also, what would be the ideal backout method ? How do you keep around the package that portupgrade makes during an upgrade ? Btw, I'd like to see your modified pkgtools.conf files. Is there a place where these are discussed already ? (because it's a bit off-topic ;-) Hans Lambermont -- http://lambermont.webhop.org/ () ascii ribbon campaign - against HTML mail, /\ vCards and proprietary formats To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message