Gentoo Archives: gentoo-dev

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

Replies