Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Sep 2004 13:55:16 -0400
From:      Paul Chvostek <paul+fbsd@it.ca>
To:        ports@freebsd.org
Cc:        freebsd-ports@varju.ca
Subject:   Recording multiple package installs...
Message-ID:  <20040907175516.GA79688@it.ca>

next in thread | raw e-mail | index | archive | help

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                                             <paul@it.ca>
  Operations / Abuse / Whatever
  it.canada, hosting and development                   http://www.it.ca/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040907175516.GA79688>