From owner-freebsd-questions@FreeBSD.ORG Sat Mar 28 16:18:09 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA9DF106566C for ; Sat, 28 Mar 2009 16:18:09 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 728DA8FC0C for ; Sat, 28 Mar 2009 16:18:08 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from sarevok.dnr.servegame.org (gate.lan.rachie.is-a-geek.net [192.168.2.10]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id A10D27E818; Sat, 28 Mar 2009 08:18:07 -0800 (AKDT) From: Mel Flynn To: freebsd-questions@freebsd.org Date: Sat, 28 Mar 2009 17:03:38 +0100 User-Agent: KMail/1.11.0 (FreeBSD/8.0-CURRENT; KDE/4.2.0; i386; ; ) References: <49CB957F.30807@waywood.co.uk> <200903281252.05083.mel.flynn+fbsd.questions@mailing.thruhere.net> <18894.4820.862743.914129@jerusalem.litteratus.org> In-Reply-To: <18894.4820.862743.914129@jerusalem.litteratus.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903281703.38540.mel.flynn+fbsd.questions@mailing.thruhere.net> Cc: Barnaby Scott , Paul Schmehl , Robert Huff Subject: Software installasion (Was: Re: Wine without X) 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: Sat, 28 Mar 2009 16:18:09 -0000 On Saturday 28 March 2009 13:06:44 Robert Huff wrote: > Mel Flynn writes: > > > Can I ask one more possibly really dumb question, to which I > > > can find no answer: Is there a 'conventional', or sensible > > > for one reason oranother, place to download application source to? > > > > Most systems I use or inherited use a variation of ~/src ~/cvs or > > ~/svn, where src are the tarballs + their extracted source and > > cvs/svn checkouts and/or exports. > > I have never done this, but if I were running a private ports > tree I would be tempted to root it (if not on a separate partition) > at "/usr/priv_ports" or something similar and have the structure > minic /usr/ports whereever possible. The name would then be > semi-intuitive, and a simple change of a few environment variables > (perhaps in the login file of an account dedicated to working on > those ports) would be all it took to change the framework. A private portstree (as in: uses the ports framework for compiling and installing software, including registering the port in /var/db/pkg) is best kept in /usr/ports/local. One needs to set VALID_CATEGORIES=local in /etc/make.conf and optionally add SUBDIR+=local in /usr/ports/Makefile.local if one cares about the ports ending up in the INDEX and make search. Ideally software not registering itself inside /var/db/pkg (as in software compiled by hand) should NOT be installed in $LOCALBASE (/usr/local by default) as there is no guarantee through the ports CONFLICTS mechanism, that a port overwrites files installed by your hand-compiled software. -- Mel