From owner-freebsd-questions@FreeBSD.ORG Fri Dec 8 22:17:49 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2A90A16A407 for ; Fri, 8 Dec 2006 22:17:49 +0000 (UTC) (envelope-from mailinglists+freebsd-questions@g-noc.net) Received: from g-noc.net (ip-209-172-57-244.reverse.privatedns.com [209.172.57.244]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4936243CAE for ; Fri, 8 Dec 2006 22:16:44 +0000 (GMT) (envelope-from mailinglists+freebsd-questions@g-noc.net) Received: from [192.168.2.102] (bas1-sherbrooke40-1128568430.dsl.bell.ca [67.68.150.110]) (authenticated bits=0) by g-noc.net (8.13.4/8.13.4) with ESMTP id kB8MHeEr096510 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 8 Dec 2006 17:17:40 -0500 (EST) (envelope-from mailinglists+freebsd-questions@g-noc.net) Message-ID: <4579E449.8010206@g-noc.net> Date: Fri, 08 Dec 2006 17:16:41 -0500 From: Alexis Dorais-Joncas User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4579C3D8.4050307@g-noc.net> <200612081445.33618.lane@joeandlane.com> <4579D1A1.7020806@g-noc.net> <200612081617.16270.lists@jnielsen.net> In-Reply-To: <200612081617.16270.lists@jnielsen.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=3.7 required=5.0 tests=RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL autolearn=no version=3.1.7 X-Spam-Level: *** X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on g-noc.net Subject: Re: How to install the same port twice but at different locations? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Dec 2006 22:17:49 -0000 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