From owner-freebsd-ports@FreeBSD.ORG Fri May 25 21:14:48 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6785E1065673; Fri, 25 May 2012 21:14:48 +0000 (UTC) (envelope-from rflynn@acsalaska.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 2993B8FC08; Fri, 25 May 2012 21:14:48 +0000 (UTC) Received: from [127.0.0.1] (squeeze.lan.rachie.is-a-geek.net [192.168.2.30]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id 5E0287E8A8; Fri, 25 May 2012 13:14:45 -0800 (AKDT) Message-ID: <4FBFF63D.7010404@acsalaska.net> Date: Fri, 25 May 2012 23:14:37 +0200 From: Mel Flynn User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Chris Rees References: <4F578AA7.4060008@FreeBSD.org> <4F990D9A.3090100@FreeBSD.org> <4FA643FA.3050206@FreeBSD.org> <4FAB6E01.50108@FreeBSD.org> <4FAC2EC1.8040708@FreeBSD.org> <20120517014743.GB5348@lonesome.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Warren Block , Mark Linimon , Scot Hetzel , freebsd-ports@freebsd.org, Andriy Gapon Subject: UID/GID_OFFSET (Was: Re: WITH_GCC) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 May 2012 21:14:48 -0000 On 20-5-2012 14:06, Chris Rees wrote: > Usually. Sometimes it's (ab)used to include the relevant bsd.*.mk > file without adding dependencies (WANT_GNOME), but normally that's > what WANT_ is used for. > > Definitely add a warning that if you want to use a WANT_ variable you > should also check the relevant Mk/ files to check for syntax. What's also not consistent is the use of: USE_FOO= 42+ which is shorthand for: USE_FOO= yes WANT_FOO_VER= 42+ Anyway, since Warren is on the job, on one of my travels through pmk, I turned a corner and met these totally awesome user settable variables: UID_OFFSET GID_OFFSET No docs on them in pmk itself or share/examples/etc/make.conf. What they do is add the specified number to the UID and GID that a port defines by using /usr/ports/{UIDS,GIDS}. This is extremely useful if you are using multiple jails on one machine and don't want the uid's to clash (shared memory for example). It's also useful, if you have different providers for uid/gid information through the use of NSS modules. Knowing that ports won't ever get into your "module range" makes you sleep better. Example in /etc/make.conf UID_OFFSET= 20000 GID_OFFSET= ${UID_OFFSET} # best to keep them equal Installing for example postgresql, will now use uid/gid 20070 instead of 70. -- Mel