From owner-freebsd-questions@FreeBSD.ORG Tue Mar 9 03:27:52 2010 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 1F035106564A for ; Tue, 9 Mar 2010 03:27:52 +0000 (UTC) (envelope-from jhelfman@e-e.com) Received: from mail.experts-exchange.com (mail.experts-exchange.com [64.156.132.251]) by mx1.freebsd.org (Postfix) with ESMTP id 05ABD8FC1B for ; Tue, 9 Mar 2010 03:27:50 +0000 (UTC) Received: from eggman.experts-exchange.com (unknown [75.15.155.190]) by mail.experts-exchange.com (Postfix) with ESMTP id D25164A2E6E2; Mon, 8 Mar 2010 19:25:26 -0800 (PST) Received: by eggman.experts-exchange.com (sSMTP sendmail emulation); Mon, _d Mar 2010 19:27:49 -0800 Date: Mon, 8 Mar 2010 19:27:49 -0800 From: Jason To: CyberLeo Kitsana Message-ID: <20100309032749.GB576@Jason-Helfmans-MacBook-Pro.local> References: <4B9367B5.4000704@cyberleo.net> <4B937622.2030704@infracaninophile.co.uk> <4B955792.6090204@cyberleo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <4B955792.6090204@cyberleo.net> X-Operating-System: Darwin 10.2.0 X-Living-The-Dream: I love the SLO Life! User-Agent: Mutt/1.5.20 (2009-06-14) Cc: FreeBSD Questions Subject: Re: Ports overlay 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: Tue, 09 Mar 2010 03:27:52 -0000 On Mon, Mar 08, 2010 at 02:01:22PM -0600, CyberLeo Kitsana thus spake: >On 03/07/2010 03:47 AM, Matthew Seaman wrote: >> On 07/03/2010 08:45:41, CyberLeo Kitsana wrote: >> >>> By necessity and convenience, I have developed a series of additions and >>> changes to the ports tree. These changes are probably not worthy of >>> inclusion into the official tree, so I'm looking to maintain an overlay, >>> of sorts, in the spirit of Gentoo's overlay capability. >> >>> Is there an official method of hooking changes into a ports tree, while >>> maintaining the ability to csup or portsnap the unmodified version? How >>> do others tackle this particular problem? >> >> Yes, you can add your own local ports or even whole categories of local >> ports without too much difficulty. You can even add some tweaks to an >> existing port -- you don't have complete freedom to do anything there, >> but you can do quite a lot. >> >> If you create a Makefile.local at any level in the ports tree it will be >> included alongside the usual Makefile. This means you can override a >> lot of the available settings at will. >> >> So, if you create /usr/ports/Makefile.local >> >> with the contents: >> >> SUBDIR+=myports It works with "local," but you still need the VALID_CATEGORIES bit. >> >> then you can create a directory /usr/ports/myports and put your own >> ports inside it -- you'll need a /usr/ports/myports/Makefile just like >> the other category directories. > >This is an excellent idea, and one I ultimately ended up using. However, >I've found that the ports infrastructure really doesn't tolerate >creating arbitrary categories, so I had to put a VALID_CATEGORIES+= bit >at the top of each of my ports' makefiles to get it to work without >patching any tracked files. If you use local Mk files, you wouldn't have to worry about putting it in every port. > >> >> If you want to modify an existing port, probably the best approach is to >> create your own slave port -- see the docco on MASTERDIR in the Porter's >> Handbook and look at eg. games/freeciv-nox11 for about the simplest >> possible example. It's not fool proof -- some modifications will always >> need support in the master port's Makefile, but there's a lot you can do >> without that. > >Another good suggestion. I find annoyance in that devel/glib20 (among >others) requires all of Perl and Python at runtime just to service two >script files that appear to be used only for certain compilation >options. It tends to bloat the embedded images that I build. > >-- >Fuzzy love, >-CyberLeo >Technical Administrator >CyberLeo.Net Webhosting >http://www.CyberLeo.Net > > >Furry Peace! - http://wwww.fur.com/peace/ >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > -j