From owner-freebsd-ports@FreeBSD.ORG Wed Mar 25 06:51:28 2015 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AE5D0882; Wed, 25 Mar 2015 06:51:28 +0000 (UTC) Received: from amp.iem.pw.edu.pl (amper.iem.pw.edu.pl [194.29.146.6]) by mx1.freebsd.org (Postfix) with SMTP id DCDFFD84; Wed, 25 Mar 2015 06:51:27 +0000 (UTC) Received: by amp.iem.pw.edu.pl (Postfix, from userid 700) id 79DAA11566; Wed, 25 Mar 2015 07:43:30 +0100 (CET) Date: Wed, 25 Mar 2015 07:43:30 +0100 From: Andrzej Tobola To: Julian Elischer Subject: Re: patch to bsd.ports.mk to support out-of-tree patches. Message-ID: <20150325064330.GA32672@amp.iem.pw.edu.pl> References: <5510F71B.7030900@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5510F71B.7030900@freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: ports@freebsd.org, Devin Teske X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Mar 2015 06:51:28 -0000 On Tue, Mar 24, 2015 at 01:33:15PM +0800, Julian Elischer wrote: > Hi, I've a need to keep soe changes outside of the ports tree, to > allow me to tailor > our installs. I could use the "EXTRA_PATCHES" setting, but I'd have to > outline the > patches every time and keep track of them one by one. I am using (from a long time) union-mount of local /usr/local/ports over ports tree: % mount | grep ports /ftp/pub/BSD/FreeBSD/GIT/ports on /usr/ports (nullfs, read-only) :/usr/local/ports on /usr/ports (unionfs, read-only) % grep ports /etc/fstab /ftp/pub/ports /usr/ports nullfs noauto,ro 0 0 /usr/local/ports /usr/ports unionfs noauto,ro 0 0 Simple and effective. I am using Makefile.local to add local Makefile extensions cheers, -a