From owner-freebsd-ports@FreeBSD.ORG Tue Sep 7 17:55:20 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 85A2916A4CE for ; Tue, 7 Sep 2004 17:55:20 +0000 (GMT) Received: from haggis.it.ca (haggis.it.ca [216.126.86.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 24E4A43D31 for ; Tue, 7 Sep 2004 17:55:20 +0000 (GMT) (envelope-from paul@haggis.it.ca) Received: from haggis.it.ca (paul@localhost [127.0.0.1]) by haggis.it.ca (8.12.11/8.12.11) with ESMTP id i87HtHlS084193; Tue, 7 Sep 2004 13:55:17 -0400 (EDT) (envelope-from paul@haggis.it.ca) Received: (from paul@localhost) by haggis.it.ca (8.12.11/8.12.6/Submit) id i87HtGaE084192; Tue, 7 Sep 2004 13:55:16 -0400 (EDT) (envelope-from paul) Date: Tue, 7 Sep 2004 13:55:16 -0400 From: Paul Chvostek To: ports@freebsd.org Message-ID: <20040907175516.GA79688@it.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i cc: freebsd-ports@varju.ca Subject: Recording multiple package installs... X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-ports@freebsd.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Sep 2004 17:55:20 -0000 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. 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. 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? And what about replacing GALLERYDIR slashes with underscores? Is that safe? I.e. for www/gallery: PKGNAMESUFFIX=${GALLERYDIR:C/[-\/]/_/g} ? 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? -- Paul Chvostek Operations / Abuse / Whatever it.canada, hosting and development http://www.it.ca/