Date: Fri, 6 Aug 2010 14:32:59 -0700 From: Jason <jhelfman@e-e.com> To: Jim Trigg <jtrigg@spamcop.net> Cc: freebsd-ports-mailinglist <freebsd-ports@freebsd.org> Subject: Re: Trying to use the USERS and SHAREOWN functionalities Message-ID: <20100806213254.GA4996@eggman.experts-exchange.com> In-Reply-To: <AANLkTin-6JGEqtNaHn%2BX_aEzxR2Z1-Hhc%2BMttCJPBhXH@mail.gmail.com> References: <AANLkTin-6JGEqtNaHn%2BX_aEzxR2Z1-Hhc%2BMttCJPBhXH@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Aug 06, 2010 at 05:28:50PM -0400, Jim Trigg thus spake: >Are there any examples of how to use the USERS functionality together >with the SHAREOWN functionality in a port makefile? I'm working on >updating the ecartis port to use standard functionality for its user >ID, but can't seem to tell how to make sure that the USERS are created >before files are installed, and that installed files are then owned by >the user that is created. Not sure of examples but if you use USERS= me GROUPS= ${USERS} When you install, it will first check/install the users. If you note: SHAREOWN=me SHAREGRP=${SHAREOWN} It will then install the files with this ownership if you are using the install macro that use these variables (ie. COPYTREE_SHARE) Take a look at bsd.port.mk. It's all in there. Hope this helps! > >Thanks, >Jim jgh
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100806213254.GA4996>