On 00:03 Tue 13 Nov     , Michael Hanselmann wrote:
> On Mon, Nov 12, 2007 at 02:09:33PM -0800, Donnie Berkholz wrote:
> > On 21:47 Mon 12 Nov     , Michael Hanselmann (hansmi) wrote:
> > > pkg_postinst() {
> > >   chown -R inspircd:inspircd "${ROOT}"/etc/${PN}
> > >   chmod 700 "${ROOT}"/etc/${PN}
> 
> > >   chown -R inspircd:inspircd "${ROOT}"/var/log/${PN}
> > >   chmod 750 "${ROOT}"/var/log/${PN}
> 
> > >   chown -R inspircd:inspircd "${ROOT}"/usr/$(get_libdir)/${PN}
> > >   chmod -R 755 "${ROOT}"/usr/$(get_libdir)/${PN}
> 
> > >   chmod -R 755 "${ROOT}"/usr/bin/inspircd
> > > }
> 
> > Any particular reason this stuff doesn't run in src_install() on the 
> > files while they're in ${D}?
> 
> Honestly, I don't know. The ebuild was contributed quite some time ago.
> Do you think it should be done in src_install instead?

I find it cleaner to move it and use fowners()/fperms(), because doing 
it in pkg_* implies to me that it needs to get fixed on the live 
filesystem for some reason.

Thanks,
Donnie
-- 
[EMAIL PROTECTED] mailing list

Reply via email to