How to install the same port twice but at different locations?
Alexis Dorais-Joncas
mailinglists+freebsd-questions at g-noc.net
Fri Dec 8 14:17:49 PST 2006
John Nielsen wrote:
> What I have done in the past is create "slave" ports. Say the port you want to
> install twice is in ports/category/foo. Make a new directory
> ports/category/bar. Inside that directory, create a Makefile similar to this:
>
> PORTNAME= foo
> PKGNAMESUFFIX= _bar-duplicate
> COMMENT= This is the foo port but it installs as foo_bar-duplicate
> PREFIX= /path/to/alternate/prefix
> # ...you may want other options here ...
>
> MASTERDIR= ${.CURDIR}/../foo
>
> .include "${MASTERDIR}/Makefile"
>
>
> Install once from category/foo and once from your new port's directory and
> away you go. Again, the porter's handbook has lots of useful information
> about everything above.
>
> JN
>
>
This seems to do the trick perfectly. Thanks all for your fast input, I
appreciate it very much !
Alexis
More information about the freebsd-questions
mailing list