Staging and directory modes/ownerships

Melvyn Sopacua melvyn at magemana.nl
Sun Nov 3 22:38:19 UTC 2013



On Sun, 3 Nov 2013, Tijl Coosemans wrote:

> On Sun, 3 Nov 2013 22:22:24 +0100 (CET) Melvyn Sopacua wrote:
>> On Sun, 3 Nov 2013, Tijl Coosemans wrote:
>>> On Sun, 3 Nov 2013 14:47:00 +0100 (CET) Melvyn Sopacua wrote:
>>>> I'm trying to upgrade www/magento and in the process make it use the
>>>> stage. Aside from having to package a fixed plist again to set modes and
>>>> ownerships, I can no longer find a way to set these properties on
>>>> directory trees.
>>>>
>>>> For now I'll go with adding @exec commands to ${TMPPLIST}, I suppose.
>>>
>>> Would this work:
>>>
>>> @owner www
>>> @group www
>>> www/magento/media/foo/bar
>>
>> If bar is a directory, I expect to see errors from the package tools
>> here, but I haven't tried it. If bar is a file, then it doesn't change
>> owner of media/foo (tested). Further more, it would be rather hard to do
>> so, since in this case, www/magento should be left untouched.
>
> bar is a file.  Only files can be listed like this.  Directories always
> have @dirrm.  @owner, @group and @mode apply to all the following entries,
> so the directories listed below are also owned by www.  This works at
> least with pkg.  I don't know if it works with the old pkg_install tools.

Can you confirm if it works with pkg if the directory already exists and
has different owner? It doesn't with pkg_install, so I might just wrap
the @exec if pkg isn't used.

--
Melvyn Sopacua


More information about the freebsd-ports mailing list