Date: Fri, 08 Dec 2006 17:16:41 -0500 From: Alexis Dorais-Joncas <mailinglists+freebsd-questions@g-noc.net> To: freebsd-questions@freebsd.org Subject: Re: How to install the same port twice but at different locations? Message-ID: <4579E449.8010206@g-noc.net> In-Reply-To: <200612081617.16270.lists@jnielsen.net> References: <4579C3D8.4050307@g-noc.net> <200612081445.33618.lane@joeandlane.com> <4579D1A1.7020806@g-noc.net> <200612081617.16270.lists@jnielsen.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4579E449.8010206>