From owner-freebsd-ports@freebsd.org Fri Feb 19 07:49:03 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8D4A7AAD4AD for ; Fri, 19 Feb 2016 07:49:03 +0000 (UTC) (envelope-from melvyn@magemana.nl) Received: from fire.magemana.nl (magemana.nl [IPv6:2a01:7c8:aaae:25e::1]) by mx1.freebsd.org (Postfix) with ESMTP id 5D4701B0A for ; Fri, 19 Feb 2016 07:49:03 +0000 (UTC) (envelope-from melvyn@magemana.nl) Received: by fire.magemana.nl (Postfix, from userid 1003) id EB0754AB898; Fri, 19 Feb 2016 08:48:54 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by fire.magemana.nl (Postfix) with ESMTP id E6D654AB4D9; Fri, 19 Feb 2016 08:48:54 +0100 (CET) Date: Fri, 19 Feb 2016 08:48:54 +0100 (CET) From: Melvyn Sopacua To: Walter Schwarzenfeld cc: freebsd-ports@freebsd.org Subject: Re: category customports In-Reply-To: <56C643D7.2010607@utanet.at> Message-ID: References: <56C643D7.2010607@utanet.at> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Feb 2016 07:49:03 -0000 Hi, the short answer: echo 'VALID_CATEGORIES=local' >> /etc/make.conf On Thu, 18 Feb 2016, Walter Schwarzenfeld wrote: > If I make an own port, I had it add to the category/Makefile. But this > could be overwritten with the next update. > If I make an own category I had it add to /usr/ports/Mk/bsd.port.mk > under VALID_CATEGORIES. There is a Mk/bsd.local.mk for a reason. While it technically is under version control to provide a template (hopefully that changes at some point), it should not be comitted to unless strictly necessary. Two reasons to use the bsd.local.mk: 1) You use various make.conf files to build for different machines or testing options (use: `env __MAKE_CONF=/etc/test.conf make ...`) and putting it in bsd.local.mk centralizes it. One could also make a /etc/make.shared.conf in this case. Either / or. 2) You wish to set VALID_CATEGORIES based on some other (early available) variable. This is the better case for using this file as it is intended for extra logic, not extra configuration. Hope this helps,