Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 07 Feb 2021 10:48:27 -0800
From:      Chris <portmaster@bsdforge.com>
To:        Chris Rees <crees@freebsd.org>
Cc:        ports@freebsd.org
Subject:   Re: Handling directory ownership in pkg-plist
Message-ID:  <ff58dc5df00f58d810cbc444a539bf70@bsdforge.com>
In-Reply-To: <967F2C8E-AD27-4003-A5B7-6B39D1911572@FreeBSD.org>
References:  <c6b5e1c6-f925-6df0-862e-76ea83fd80cb@rees.space> <623897a8b8aaf941d59f39f2f32e4326@bsdforge.com> <967F2C8E-AD27-4003-A5B7-6B39D1911572@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2021-02-07 02:18, Chris Rees wrote:
> Hi Chris,
> 
> Thamks for the reply.
> 
> On 7 February 2021 03:57:03 GMT, Chris <portmaster@bsdforge.com> wrote:
>> On 2021-02-06 13:34, Chris Rees wrote:
>>> Hi all,
>>> 
>>> Resurrecting audio/ampache-resurrect, and I have @owner www/@group
>> www above
>>> all
>>> of the WWWDIR files, and they are correctly owned.  However, the
>> directories
>>> under
>>> it are all still owned by root:wheel, and if I explicitly add them
>> all with
>>> @dir
>>> pkg then complains about not being able to find them.
>>> 
>>> Would it be unacceptable to just have @exec chown -R www:www
>> %D/%%WWWDIR%%
>>> at the bottom?
>> Yes. By way of pre-install:
>> You'll probably get a complaint unless you use: ${CHOWN}
> 
> Perhaps I was unclear- I'm referring to pkg-plist, so there is no ${CHOWN} 
> there.
> 
> The exact proposed line is
> 
> @postexec chown -R www:www %D/%%WWWDIR%%
> 
> I was wondering what the 'proper' way to do this was.
I almost listed that as well. But it's been a couple years, and I couldn't
remember exactly how it looked. A look around to refresh my memory seems
to reveal that the pkg-plist for www/kanboard provides what you're looking
for eg; @owner && @group

Hope that helps, and good luck! :-)
> 
> Chris
--Chris



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ff58dc5df00f58d810cbc444a539bf70>