1 |
On 00:03 Tue 13 Nov , Michael Hanselmann wrote: |
2 |
> On Mon, Nov 12, 2007 at 02:09:33PM -0800, Donnie Berkholz wrote: |
3 |
> > On 21:47 Mon 12 Nov , Michael Hanselmann (hansmi) wrote: |
4 |
> > > pkg_postinst() { |
5 |
> > > chown -R inspircd:inspircd "${ROOT}"/etc/${PN} |
6 |
> > > chmod 700 "${ROOT}"/etc/${PN} |
7 |
> |
8 |
> > > chown -R inspircd:inspircd "${ROOT}"/var/log/${PN} |
9 |
> > > chmod 750 "${ROOT}"/var/log/${PN} |
10 |
> |
11 |
> > > chown -R inspircd:inspircd "${ROOT}"/usr/$(get_libdir)/${PN} |
12 |
> > > chmod -R 755 "${ROOT}"/usr/$(get_libdir)/${PN} |
13 |
> |
14 |
> > > chmod -R 755 "${ROOT}"/usr/bin/inspircd |
15 |
> > > } |
16 |
> |
17 |
> > Any particular reason this stuff doesn't run in src_install() on the |
18 |
> > files while they're in ${D}? |
19 |
> |
20 |
> Honestly, I don't know. The ebuild was contributed quite some time ago. |
21 |
> Do you think it should be done in src_install instead? |
22 |
|
23 |
I find it cleaner to move it and use fowners()/fperms(), because doing |
24 |
it in pkg_* implies to me that it needs to get fixed on the live |
25 |
filesystem for some reason. |
26 |
|
27 |
Thanks, |
28 |
Donnie |
29 |
-- |
30 |
gentoo-dev@g.o mailing list |