From owner-freebsd-ports@FreeBSD.ORG Tue Sep 7 18:45:05 2004 Return-Path: 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 A742616A4CE for ; Tue, 7 Sep 2004 18:45:05 +0000 (GMT) Received: from fillmore.dyndns.org (port-212-202-49-127.dynamic.qsc.de [212.202.49.127]) by mx1.FreeBSD.org (Postfix) with ESMTP id 69B8243D3F for ; Tue, 7 Sep 2004 18:45:05 +0000 (GMT) (envelope-from eikemeier@fillmore-labs.com) Received: from dhcp-11.local ([172.16.0.11] helo=dhcp-7.local) by fillmore.dyndns.org with esmtps (TLSv1:DES-CBC3-SHA:168) (Exim 4.42 (FreeBSD)) id 1C4kxi-000PeV-Bl for ports@freebsd.org; Tue, 07 Sep 2004 20:45:04 +0200 Date: Tue, 7 Sep 2004 20:45:02 +0200 Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v482) From: Oliver Eikemeier To: ports@freebsd.org Content-Transfer-Encoding: 7bit In-Reply-To: <20040907175516.GA79688@it.ca> Message-Id: <06D7D499-00FE-11D9-A5DE-00039312D914@fillmore-labs.com> User-Agent: KMail/1.5.9 Subject: Re: Recording multiple package installs... X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Sep 2004 18:45:05 -0000 Paul Chvostek wrote: > I'm building a port for a PHP-based application that (like www/gallery > and so many others) could potentially be installed in multiple locations > on one server. I'll aim this email at users familiar with that port. Sorry, I don't use it, but perhaps I can give some useful feedback in spite of this? > I never use the www/gallery port, because in its current incarnation, a > second tries to record the package install to the same place as the > first. I'm either forced to FORCE_PKG_INSTALL, b0rking my package db, > or skip the package altogether. It just ain't right. You could use make PREFIX=... PKG_DBDIR='/var/db/pkg${PREFIX:N/usr/local}' install... > It would seem that ports like www/gallery (and databases/phpmyadmin and > others) could do with some way to idenfify the different installs that > might occur on the same host. So ... where to record that? > > Would PKGNAMESUFFIX be the right place to put this information? No. If we really feel the need to support multiple installation of ports, we should first understand the problem better. This does not solve issues of dependencies, conflicts, and upgrading. > [...] > And while we're on the subject of www/gallery, what about using > > GALLERYDIR=${GALLERYDIR:C/^[^\/]/$PREFIX\/&/} > > to allow for fully-qualified install paths, instead of forcing PREFIX on > the front of everything? It would require some rewrite of the gallery > port, but would it necessarily break things? One could always set > PREFIX=/, but does gallery resist installing outside $PREFIX for any > particular reason? Thy ports shalt not install files outside of PREFIX. -Oliver