1 |
robbat2 08/07/05 03:22:15 |
2 |
|
3 |
Modified: ChangeLog nut-2.2.2.ebuild |
4 |
Log: |
5 |
Bug #229345 - do not bother with the CGI files unless USE=cgi. |
6 |
(Portage version: 2.2_rc1/cvs/Linux 2.6.26-rc4-00103-g1beee8d x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.58 sys-power/nut/ChangeLog |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/nut/ChangeLog?rev=1.58&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/nut/ChangeLog?rev=1.58&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/nut/ChangeLog?r1=1.57&r2=1.58 |
14 |
|
15 |
Index: ChangeLog |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo-x86/sys-power/nut/ChangeLog,v |
18 |
retrieving revision 1.57 |
19 |
retrieving revision 1.58 |
20 |
diff -p -w -b -B -u -u -r1.57 -r1.58 |
21 |
--- ChangeLog 5 Jul 2008 03:15:15 -0000 1.57 |
22 |
+++ ChangeLog 5 Jul 2008 03:22:14 -0000 1.58 |
23 |
@@ -1,6 +1,9 @@ |
24 |
# ChangeLog for sys-power/nut |
25 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
26 |
-# $Header: /var/cvsroot/gentoo-x86/sys-power/nut/ChangeLog,v 1.57 2008/07/05 03:15:15 robbat2 Exp $ |
27 |
+# $Header: /var/cvsroot/gentoo-x86/sys-power/nut/ChangeLog,v 1.58 2008/07/05 03:22:14 robbat2 Exp $ |
28 |
+ |
29 |
+ 05 Jul 2008; Robin H. Johnson <robbat2@g.o> nut-2.2.2.ebuild: |
30 |
+ Bug #229345 - do not bother with the CGI files unless USE=cgi. |
31 |
|
32 |
05 Jul 2008; Robin H. Johnson <robbat2@g.o> |
33 |
+files/nut-2.2.2-no-libdummy.patch, nut-2.2.2.ebuild: |
34 |
|
35 |
|
36 |
|
37 |
1.4 sys-power/nut/nut-2.2.2.ebuild |
38 |
|
39 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/nut/nut-2.2.2.ebuild?rev=1.4&view=markup |
40 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/nut/nut-2.2.2.ebuild?rev=1.4&content-type=text/plain |
41 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/nut/nut-2.2.2.ebuild?r1=1.3&r2=1.4 |
42 |
|
43 |
Index: nut-2.2.2.ebuild |
44 |
=================================================================== |
45 |
RCS file: /var/cvsroot/gentoo-x86/sys-power/nut/nut-2.2.2.ebuild,v |
46 |
retrieving revision 1.3 |
47 |
retrieving revision 1.4 |
48 |
diff -p -w -b -B -u -u -r1.3 -r1.4 |
49 |
--- nut-2.2.2.ebuild 5 Jul 2008 03:15:15 -0000 1.3 |
50 |
+++ nut-2.2.2.ebuild 5 Jul 2008 03:22:14 -0000 1.4 |
51 |
@@ -1,6 +1,6 @@ |
52 |
# Copyright 1999-2008 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
-# $Header: /var/cvsroot/gentoo-x86/sys-power/nut/nut-2.2.2.ebuild,v 1.3 2008/07/05 03:15:15 robbat2 Exp $ |
55 |
+# $Header: /var/cvsroot/gentoo-x86/sys-power/nut/nut-2.2.2.ebuild,v 1.4 2008/07/05 03:22:14 robbat2 Exp $ |
56 |
|
57 |
inherit eutils fixheadtails autotools |
58 |
|
59 |
@@ -30,9 +30,11 @@ DEPEND="$RDEPEND |
60 |
>=sys-devel/autoconf-2.58" |
61 |
|
62 |
# public files should be 644 root:root |
63 |
-NUT_PUBLIC_FILES="/etc/nut/{{hosts,upsset,ups,upssched}.conf,upsstats{,-single}.html}" |
64 |
+NUT_PUBLIC_FILES="/etc/nut/{{ups,upssched}.conf}" |
65 |
# private files should be 640 root:nut - readable by nut, writeable by root, |
66 |
NUT_PRIVATE_FILES="/etc/nut/{upsd.conf,upsd.users,upsmon.conf}" |
67 |
+# public files should be 644 root:root, only installed if USE=cgi |
68 |
+NUT_CGI_FILES="/etc/nut/{{hosts,upsset}.conf,upsstats{,-single}.html}" |
69 |
|
70 |
pkg_setup() { |
71 |
if use cgi && ! built_with_use media-libs/gd png ; then |
72 |
@@ -152,6 +154,12 @@ src_install() { |
73 |
eval fperms 0644 ${NUT_PUBLIC_FILES} |
74 |
eval fowners root:root ${NUT_PUBLIC_FILES} |
75 |
|
76 |
+ # Do not remove eval here, because the variables contain shell expansions. |
77 |
+ if use cgi; then |
78 |
+ eval fperms 0644 ${NUT_CGI_FILES} |
79 |
+ eval fowners root:root ${NUT_CGI_FILES} |
80 |
+ fi |
81 |
+ |
82 |
# this is installed for 2.4 and fbsd guys |
83 |
if ! has_version sys-fs/udev; then |
84 |
insinto /etc/hotplug/usb |
85 |
@@ -184,6 +192,12 @@ pkg_postinst() { |
86 |
eval chown root:root "${ROOT}"${NUT_PUBLIC_FILES} 2>/dev/null |
87 |
eval chmod 0644 "${ROOT}"${NUT_PUBLIC_FILES} 2>/dev/null |
88 |
|
89 |
+ # Do not remove eval here, because the variables contain shell expansions. |
90 |
+ if use cgi; then |
91 |
+ eval chown root:root "${ROOT}"${NUT_CGI_FILES} 2>/dev/null |
92 |
+ eval chmod 0644 "${ROOT}"${NUT_CGI_FILES} 2>/dev/null |
93 |
+ fi |
94 |
+ |
95 |
warningmsg elog |
96 |
} |
97 |
|
98 |
|
99 |
|
100 |
|
101 |
-- |
102 |
gentoo-commits@l.g.o mailing list |