Date: Sun, 3 Nov 2013 17:30:07 -0500 From: Aryeh Friedman <aryeh.friedman@gmail.com> To: Tijl Coosemans <tijl@freebsd.org> Cc: FreeBSD Ports ML <freebsd-ports@freebsd.org>, Melvyn Sopacua <melvyn@magemana.nl> Subject: Re: Staging and directory modes/ownerships Message-ID: <CAGBxaXna2QAv4d8Sq7sn0cPYf88y9ru6%2B2W6pMzGcEcF0jWhug@mail.gmail.com> In-Reply-To: <20131103230942.669384c8@kalimero.tijl.coosemans.org> References: <alpine.BSF.2.00.1311031432520.22005@fire.magemana.nl> <20131103222318.3f9d2c8a@kalimero.tijl.coosemans.org> <alpine.BSF.2.00.1311032212220.72368@fire.magemana.nl> <20131103230942.669384c8@kalimero.tijl.coosemans.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Where is this documented? (I am making a port that needs do similar stuff but want to understand all the possible directives) On Sun, Nov 3, 2013 at 5:09 PM, Tijl Coosemans <tijl@freebsd.org> 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. > > >> @mode 0777 > >> @dirrm www/magento/media/foo > > > > This directive is processed on deinstallation. I don't think it will > > work but I have not tested it. > > > > Thanks for answering. > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGBxaXna2QAv4d8Sq7sn0cPYf88y9ru6%2B2W6pMzGcEcF0jWhug>