From owner-freebsd-ports@FreeBSD.ORG Wed Apr 21 21:19:36 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 4892A16A4CE for ; Wed, 21 Apr 2004 21:19:36 -0700 (PDT) Received: from gull.mail.pas.earthlink.net (gull.mail.pas.earthlink.net [207.217.120.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id E79F743D4C for ; Wed, 21 Apr 2004 21:19:35 -0700 (PDT) (envelope-from mike@inbox.lv) Received: from pool0438.cvx39-bradley.dialup.earthlink.net ([216.244.37.183] helo=ringworm.mojavegreen.com) by gull.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 1BGVgU-0006Cg-00 for freebsd-ports@freebsd.org; Wed, 21 Apr 2004 21:19:35 -0700 Received: by ringworm.mojavegreen.com (Postfix, from userid 1000) id 7EF1C8455; Wed, 21 Apr 2004 20:22:17 -0700 (PDT) From: "Michael C. Shultz" Organization: Mojave Green Software co. To: freebsd-ports@freebsd.org Date: Wed, 21 Apr 2004 20:22:13 -0700 User-Agent: KMail/1.6.1 References: <4086F18A.8010100@snafu.de> In-Reply-To: <4086F18A.8010100@snafu.de> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200404212022.14217.ringworm@inbox.lv> Subject: Re: setting up a ports infrastructure outside of /usr/ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Apr 2004 04:19:36 -0000 On Wednesday 21 April 2004 03:11 pm, Oliver Fischer wrote: > Hello, > > I would like to ports some programs but before I will start, I would > like to have a separate directory for it. So so my question is: > > Is it possible: > > 1. to have the ports directory in my home directory? I > think yes. > > 2. to build and to install a port as normal user to > a via PREFIX specified directory? > > 3. to use a different pkgdb directory than /var/db/pkg for > the ports build in this manner? > > > Regards, > Oliver Fischer > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" Here is how I do it: ------------------------------------------------ Here is how to handle locally installed ports if you plan to take advantage of some of FreeBSD's port system features: ######################################################################## * Makefile excerpt from /usr/ports/local/sysutils/portmanager/Makefile # ######################################################################## PORTNAME= portmanager PORTVERSION= 0.1.0 CATEGORIES= local/sysutils VALID_CATEGORIES+= ${CATEGORIES} # for FreeBSD to accept our # local category Simply add a "local" directory to /usr/ports and install your local ports under that directory. Where a normal FreeBSD port may be in "sysutils/{portname} the example above would reside in "local/sysutils/portmanager". ------------------------------------------------ The port still installs in the normal /var/db/pkg directory so "make install", and and "make deinstall" work normally. The is a note in portupgrade (if you use that ) about adding /usr/ports/local to their config files so their program will ignore your ports. I think the note is in the config file somewhere. -Mike