From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-dev+bounces-29902-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1JaQh2-0005iK-LL
	for garchives@archives.gentoo.org; Sat, 15 Mar 2008 07:20:36 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id E9D57E04A9;
	Sat, 15 Mar 2008 07:20:34 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	by pigeon.gentoo.org (Postfix) with ESMTP id C53F2E04A9
	for <gentoo-dev@lists.gentoo.org>; Sat, 15 Mar 2008 07:20:34 +0000 (UTC)
Received: from gentoo.org (c-67-171-150-177.hsd1.or.comcast.net [67.171.150.177])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTP id C8EFB65FE7;
	Sat, 15 Mar 2008 07:20:33 +0000 (UTC)
Date: Sat, 15 Mar 2008 00:20:31 -0700
From: Donnie Berkholz <dberkholz@gentoo.org>
To: gentoo-dev@lists.gentoo.org, rajiv@gentoo.org
Subject: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in sys-power/nut: ChangeLog
	nut-2.2.1.ebuild
Message-ID: <20080315072031.GA6852@comet>
References: <E1JYEd5-0003cP-9K@stork.gentoo.org>
Precedence: bulk
List-Post: <mailto:gentoo-dev@lists.gentoo.org>
List-Help: <mailto:gentoo-dev+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-dev+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org>
X-BeenThere: gentoo-dev@lists.gentoo.org
Reply-to: gentoo-dev@lists.gentoo.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <E1JYEd5-0003cP-9K@stork.gentoo.org>
User-Agent: Mutt/1.5.17 (2007-11-01)
X-Archives-Salt: 910a27ec-259e-499a-b5df-6d1319b0894d
X-Archives-Hash: d5a43d3a43f2565dff3bf651b1c3c87b

On 06:03 Sun 09 Mar     , Rajiv Aaron Manglani (rajiv) wrote:
> 1.1                  sys-power/nut/nut-2.2.1.ebuild
> 
> file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/nut/nut-2.2.1.ebuild?rev=1.1&view=markup
> plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/nut/nut-2.2.1.ebuild?rev=1.1&content-type=text/plain

> src_install() {

...

> 	eval fperms 0640 ${NUT_PRIVATE_FILES}
> 	eval fowners root:nut ${NUT_PRIVATE_FILES}
> 
> 	eval fperms 0644 ${NUT_PUBLIC_FILES}
> 	eval fowners root:root ${NUT_PUBLIC_FILES}

...

> pkg_postinst() {
> 	# this is to ensure that everybody that installed old versions still has
> 	# correct permissions
> 
> 	chown nut:nut "${ROOT}"/var/lib/nut 2>/dev/null
> 	chmod 0700 "${ROOT}"/var/lib/nut 2>/dev/null
> 
> 	eval chown root:nut "${ROOT}"${NUT_PRIVATE_FILES} 2>/dev/null
> 	eval chmod 0640 "${ROOT}"${NUT_PRIVATE_FILES} 2>/dev/null
> 
> 	eval chown root:root "${ROOT}"${NUT_PUBLIC_FILES} 2>/dev/null
> 	eval chmod 0644 "${ROOT}"${NUT_PUBLIC_FILES} 2>/dev/null

Is there any reason why eval is used in either of these places?

Thanks,
Donnie
-- 
gentoo-dev@lists.gentoo.org mailing list