Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Cc: Donnie Berkholz <dberkholz@g.o>, rajiv@g.o
Subject: Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in sys-power/nut: ChangeLog nut-2.2.1.ebuild
Date: Mon, 24 Mar 2008 11:50:25
Message-Id: 200803240752.53959.vapier@gentoo.org
In Reply to: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in sys-power/nut: ChangeLog nut-2.2.1.ebuild by Donnie Berkholz
1 On Saturday 15 March 2008, Donnie Berkholz wrote:
2 > On 06:03 Sun 09 Mar , Rajiv Aaron Manglani (rajiv) wrote:
3 > > 1.1 sys-power/nut/nut-2.2.1.ebuild
4 > >
5 > > file :
6 > > http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/nut/nut-2.2.1.e
7 > >build?rev=1.1&view=markup plain:
8 > > http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/nut/nut-2.2.1.e
9 > >build?rev=1.1&content-type=text/plain
10 > >
11 > > src_install() {
12 >
13 > ...
14 >
15 > > eval fperms 0640 ${NUT_PRIVATE_FILES}
16 > > eval fowners root:nut ${NUT_PRIVATE_FILES}
17 > >
18 > > eval fperms 0644 ${NUT_PUBLIC_FILES}
19 > > eval fowners root:root ${NUT_PUBLIC_FILES}
20 >
21 > ...
22 >
23 > > pkg_postinst() {
24 > > # this is to ensure that everybody that installed old versions still has
25 > > # correct permissions
26 > >
27 > > chown nut:nut "${ROOT}"/var/lib/nut 2>/dev/null
28 > > chmod 0700 "${ROOT}"/var/lib/nut 2>/dev/null
29 > >
30 > > eval chown root:nut "${ROOT}"${NUT_PRIVATE_FILES} 2>/dev/null
31 > > eval chmod 0640 "${ROOT}"${NUT_PRIVATE_FILES} 2>/dev/null
32 > >
33 > > eval chown root:root "${ROOT}"${NUT_PUBLIC_FILES} 2>/dev/null
34 > > eval chmod 0644 "${ROOT}"${NUT_PUBLIC_FILES} 2>/dev/null
35 >
36 > Is there any reason why eval is used in either of these places?
37
38 i'd open a bug so it doesnt get lost
39 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature