В Пнд, 12/11/2007 в 18:20 -0800, Donnie Berkholz пишет: > 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 > > > > }
> 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. Some of them are directories, right? Then while bug bugs.gentoo.org/141619 is not fixed, I'd kept the directories in pkg_postinst and added some comment that this is workaround of bug #141619. -- Peter.
signature.asc
Description: Эта часть сообщения подписана цифровой подписью