1 |
В Пнд, 12/11/2007 в 18:20 -0800, Donnie Berkholz пишет: |
2 |
> On 00:03 Tue 13 Nov , Michael Hanselmann wrote: |
3 |
> > On Mon, Nov 12, 2007 at 02:09:33PM -0800, Donnie Berkholz wrote: |
4 |
> > > On 21:47 Mon 12 Nov , Michael Hanselmann (hansmi) wrote: |
5 |
> > > > pkg_postinst() { |
6 |
> > > > chown -R inspircd:inspircd "${ROOT}"/etc/${PN} |
7 |
> > > > chmod 700 "${ROOT}"/etc/${PN} |
8 |
> > |
9 |
> > > > chown -R inspircd:inspircd "${ROOT}"/var/log/${PN} |
10 |
> > > > chmod 750 "${ROOT}"/var/log/${PN} |
11 |
> > |
12 |
> > > > chown -R inspircd:inspircd "${ROOT}"/usr/$(get_libdir)/${PN} |
13 |
> > > > chmod -R 755 "${ROOT}"/usr/$(get_libdir)/${PN} |
14 |
> > |
15 |
> > > > chmod -R 755 "${ROOT}"/usr/bin/inspircd |
16 |
> > > > } |
17 |
|
18 |
> I find it cleaner to move it and use fowners()/fperms(), because doing |
19 |
> it in pkg_* implies to me that it needs to get fixed on the live |
20 |
> filesystem for some reason. |
21 |
|
22 |
Some of them are directories, right? Then while bug |
23 |
bugs.gentoo.org/141619 is not fixed, I'd kept the directories in |
24 |
pkg_postinst and added some comment that this is workaround of bug |
25 |
#141619. |
26 |
|
27 |
-- |
28 |
Peter. |