On 2014/11/20 17:21, Fred wrote: > On 11/20/14 17:14, Marc Espie wrote: > >On Thu, Nov 20, 2014 at 09:39:03AM -0500, Jiri B wrote: > >>On Thu, Nov 20, 2014 at 02:17:34PM +0000, Fred wrote: > >>>Hi ports@ > >>> > >>>Can someone point me at the documentation for changing the file > >>>permissions in a package? > >>> > >>>I'm working on porting radiotray[1] and have wip port [2] but I > >>>noticed when testing it on i386 that the > >>>~/.local/share/radiotray/config.xml is installed with 444 permisions > >>>rather than 644 which is needed for the package to run. > >>> > >>>Cheers > >>> > >>>Fred > >>> > >>>[1] > >>>http://radiotray.sourceforge.net/ > >>> > >>>[2] > >>>https://github.com/fcbsd/openbsd-wip/tree/master/audio/radiotray > >> > >>man pkg_create and see '@chmod'. > > > >You mean @mode > > > >(though he will probably find it with that). > > > >More precisely: packing-list are signed, the tar meta-info is not, so > >anything even slightly unusual *must* be explicitly written in the plist. > > > > Thanks - I'm reading through pkg_create now. >
~/.local/share/radiotray/config.xml isn't included in the package anyway though, presumably it gets copied from /usr/local/share/... at runtime (copying permissions there perhaps)? - if so, wouldn't it be more sane for permissions to be set by the program doing the copying?