Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Feb 2014 14:05:41 -0500
From:      Adam Weinberger <adamw@adamw.org>
To:        ports@FreeBSD.org
Subject:   Changing ownership of a directory when using staging
Message-ID:  <20140222190540.GA9375@apnoea.adamw.org>

next in thread | raw e-mail | index | archive | help
How do I specify the owner/group and mode of a directory when using
staging? It appears to automatically create every directory as
root:wheel. Setting @user/@group in pkg-plist doesn't affect things with
@exec mkdir.

The only thing I can figure is:
@exec install -d -m 730 -o user -g group %D/path/to/dir

But that'll fail when installed by anyone except root, right?

This problem breaks usability of a number of ports---especially
web-based ones where specific directories need specific owners. Every
time www/dokuwiki is upgraded or reinstalled, a half dozen directories
have to be manually chown'd on the command line, for example.

# Adam


--
Adam Weinberger
adamw@adamw.org
http://www.adamw.org



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