1 |
williamh 11/12/29 19:32:46 |
2 |
|
3 |
Modified: udev-146-r1.ebuild udev-164-r2.ebuild |
4 |
udev-175-r1.ebuild udev-9999.ebuild udev-149.ebuild |
5 |
ChangeLog udev-141-r1.ebuild udev-141.ebuild |
6 |
udev-151-r4.ebuild |
7 |
Added: udev-171-r5.ebuild |
8 |
Log: |
9 |
add -vserver and -lxc keywords to udev-mount and udev-postmount, fix a typo in udev script and several repoman fixes. |
10 |
|
11 |
(Portage version: 2.2.0_alpha84/cvs/Linux i686) |
12 |
|
13 |
Revision Changes Path |
14 |
1.16 sys-fs/udev/udev-146-r1.ebuild |
15 |
|
16 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/udev-146-r1.ebuild?rev=1.16&view=markup |
17 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/udev-146-r1.ebuild?rev=1.16&content-type=text/plain |
18 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/udev-146-r1.ebuild?r1=1.15&r2=1.16 |
19 |
|
20 |
Index: udev-146-r1.ebuild |
21 |
=================================================================== |
22 |
RCS file: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-146-r1.ebuild,v |
23 |
retrieving revision 1.15 |
24 |
retrieving revision 1.16 |
25 |
diff -u -r1.15 -r1.16 |
26 |
--- udev-146-r1.ebuild 6 Jul 2011 16:44:44 -0000 1.15 |
27 |
+++ udev-146-r1.ebuild 29 Dec 2011 19:32:46 -0000 1.16 |
28 |
@@ -1,6 +1,6 @@ |
29 |
# Copyright 1999-2011 Gentoo Foundation |
30 |
# Distributed under the terms of the GNU General Public License v2 |
31 |
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-146-r1.ebuild,v 1.15 2011/07/06 16:44:44 williamh Exp $ |
32 |
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-146-r1.ebuild,v 1.16 2011/12/29 19:32:46 williamh Exp $ |
33 |
|
34 |
EAPI="1" |
35 |
|
36 |
@@ -11,7 +11,7 @@ |
37 |
if [[ ${PV} == "9999" ]]; then |
38 |
EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/hotplug/udev.git" |
39 |
EGIT_BRANCH="master" |
40 |
- inherit git autotools |
41 |
+ inherit git-2 autotools |
42 |
else |
43 |
SRC_URI="mirror://kernel/linux/utils/kernel/hotplug/${P}.tar.bz2 |
44 |
mirror://gentoo/${PATCHSET}.tar.bz2" |
45 |
|
46 |
|
47 |
|
48 |
1.17 sys-fs/udev/udev-164-r2.ebuild |
49 |
|
50 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/udev-164-r2.ebuild?rev=1.17&view=markup |
51 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/udev-164-r2.ebuild?rev=1.17&content-type=text/plain |
52 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/udev-164-r2.ebuild?r1=1.16&r2=1.17 |
53 |
|
54 |
Index: udev-164-r2.ebuild |
55 |
=================================================================== |
56 |
RCS file: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-164-r2.ebuild,v |
57 |
retrieving revision 1.16 |
58 |
retrieving revision 1.17 |
59 |
diff -u -r1.16 -r1.17 |
60 |
--- udev-164-r2.ebuild 17 Dec 2011 18:16:48 -0000 1.16 |
61 |
+++ udev-164-r2.ebuild 29 Dec 2011 19:32:46 -0000 1.17 |
62 |
@@ -1,6 +1,6 @@ |
63 |
# Copyright 1999-2011 Gentoo Foundation |
64 |
# Distributed under the terms of the GNU General Public License v2 |
65 |
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-164-r2.ebuild,v 1.16 2011/12/17 18:16:48 armin76 Exp $ |
66 |
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-164-r2.ebuild,v 1.17 2011/12/29 19:32:46 williamh Exp $ |
67 |
|
68 |
EAPI="1" |
69 |
|
70 |
@@ -13,7 +13,7 @@ |
71 |
if [[ ${PV} == "9999" ]]; then |
72 |
EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/hotplug/udev.git" |
73 |
EGIT_BRANCH="master" |
74 |
- inherit git autotools |
75 |
+ inherit git-2 autotools |
76 |
else |
77 |
# please update testsys-tarball whenever udev-xxx/test/sys/ is changed |
78 |
SRC_URI="mirror://kernel/linux/utils/kernel/hotplug/${P}.tar.bz2 |
79 |
|
80 |
|
81 |
|
82 |
1.3 sys-fs/udev/udev-175-r1.ebuild |
83 |
|
84 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/udev-175-r1.ebuild?rev=1.3&view=markup |
85 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/udev-175-r1.ebuild?rev=1.3&content-type=text/plain |
86 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/udev-175-r1.ebuild?r1=1.2&r2=1.3 |
87 |
|
88 |
Index: udev-175-r1.ebuild |
89 |
=================================================================== |
90 |
RCS file: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-175-r1.ebuild,v |
91 |
retrieving revision 1.2 |
92 |
retrieving revision 1.3 |
93 |
diff -u -r1.2 -r1.3 |
94 |
--- udev-175-r1.ebuild 9 Dec 2011 20:43:22 -0000 1.2 |
95 |
+++ udev-175-r1.ebuild 29 Dec 2011 19:32:46 -0000 1.3 |
96 |
@@ -1,6 +1,6 @@ |
97 |
# Copyright 1999-2011 Gentoo Foundation |
98 |
# Distributed under the terms of the GNU General Public License v2 |
99 |
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-175-r1.ebuild,v 1.2 2011/12/09 20:43:22 vapier Exp $ |
100 |
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-175-r1.ebuild,v 1.3 2011/12/29 19:32:46 williamh Exp $ |
101 |
|
102 |
EAPI=4 |
103 |
|
104 |
@@ -357,7 +357,7 @@ |
105 |
while read a m a; do |
106 |
[ "$m" = "$1" ] && return 0 |
107 |
done < "${EROOT}"/proc/mounts |
108 |
- return 1 |
109 |
+ return 1 |
110 |
} |
111 |
|
112 |
pkg_postinst() |
113 |
|
114 |
|
115 |
|
116 |
1.67 sys-fs/udev/udev-9999.ebuild |
117 |
|
118 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/udev-9999.ebuild?rev=1.67&view=markup |
119 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/udev-9999.ebuild?rev=1.67&content-type=text/plain |
120 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/udev-9999.ebuild?r1=1.66&r2=1.67 |
121 |
|
122 |
Index: udev-9999.ebuild |
123 |
=================================================================== |
124 |
RCS file: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-9999.ebuild,v |
125 |
retrieving revision 1.66 |
126 |
retrieving revision 1.67 |
127 |
diff -u -r1.66 -r1.67 |
128 |
--- udev-9999.ebuild 25 Dec 2011 04:59:48 -0000 1.66 |
129 |
+++ udev-9999.ebuild 29 Dec 2011 19:32:46 -0000 1.67 |
130 |
@@ -1,6 +1,6 @@ |
131 |
# Copyright 1999-2011 Gentoo Foundation |
132 |
# Distributed under the terms of the GNU General Public License v2 |
133 |
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-9999.ebuild,v 1.66 2011/12/25 04:59:48 williamh Exp $ |
134 |
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-9999.ebuild,v 1.67 2011/12/29 19:32:46 williamh Exp $ |
135 |
|
136 |
EAPI=4 |
137 |
|
138 |
@@ -357,7 +357,7 @@ |
139 |
while read a m a; do |
140 |
[ "$m" = "$1" ] && return 0 |
141 |
done < "${ROOT}"/proc/mounts |
142 |
- return 1 |
143 |
+ return 1 |
144 |
} |
145 |
|
146 |
pkg_postinst() |
147 |
|
148 |
|
149 |
|
150 |
1.20 sys-fs/udev/udev-149.ebuild |
151 |
|
152 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/udev-149.ebuild?rev=1.20&view=markup |
153 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/udev-149.ebuild?rev=1.20&content-type=text/plain |
154 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/udev-149.ebuild?r1=1.19&r2=1.20 |
155 |
|
156 |
Index: udev-149.ebuild |
157 |
=================================================================== |
158 |
RCS file: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-149.ebuild,v |
159 |
retrieving revision 1.19 |
160 |
retrieving revision 1.20 |
161 |
diff -u -r1.19 -r1.20 |
162 |
--- udev-149.ebuild 6 Jul 2011 16:44:44 -0000 1.19 |
163 |
+++ udev-149.ebuild 29 Dec 2011 19:32:46 -0000 1.20 |
164 |
@@ -1,6 +1,6 @@ |
165 |
# Copyright 1999-2011 Gentoo Foundation |
166 |
# Distributed under the terms of the GNU General Public License v2 |
167 |
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-149.ebuild,v 1.19 2011/07/06 16:44:44 williamh Exp $ |
168 |
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-149.ebuild,v 1.20 2011/12/29 19:32:46 williamh Exp $ |
169 |
|
170 |
EAPI="1" |
171 |
|
172 |
@@ -11,7 +11,7 @@ |
173 |
if [[ ${PV} == "9999" ]]; then |
174 |
EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/hotplug/udev.git" |
175 |
EGIT_BRANCH="master" |
176 |
- inherit git autotools |
177 |
+ inherit git-2 autotools |
178 |
else |
179 |
# please update testsys-tarball whenever udev-xxx/test/sys/ is changed |
180 |
SRC_URI="mirror://kernel/linux/utils/kernel/hotplug/${P}.tar.bz2 |
181 |
|
182 |
|
183 |
|
184 |
1.627 sys-fs/udev/ChangeLog |
185 |
|
186 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/ChangeLog?rev=1.627&view=markup |
187 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/ChangeLog?rev=1.627&content-type=text/plain |
188 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/ChangeLog?r1=1.626&r2=1.627 |
189 |
|
190 |
Index: ChangeLog |
191 |
=================================================================== |
192 |
RCS file: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v |
193 |
retrieving revision 1.626 |
194 |
retrieving revision 1.627 |
195 |
diff -u -r1.626 -r1.627 |
196 |
--- ChangeLog 25 Dec 2011 04:59:48 -0000 1.626 |
197 |
+++ ChangeLog 29 Dec 2011 19:32:46 -0000 1.627 |
198 |
@@ -1,6 +1,15 @@ |
199 |
# ChangeLog for sys-fs/udev |
200 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
201 |
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.626 2011/12/25 04:59:48 williamh Exp $ |
202 |
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.627 2011/12/29 19:32:46 williamh Exp $ |
203 |
+ |
204 |
+*udev-171-r5 (29 Dec 2011) |
205 |
+ |
206 |
+ 29 Dec 2011; William Hubbs <williamh@g.o> udev-141.ebuild, |
207 |
+ udev-141-r1.ebuild, udev-146-r1.ebuild, udev-149.ebuild, udev-151-r4.ebuild, |
208 |
+ udev-164-r2.ebuild, +udev-171-r5.ebuild, udev-175-r1.ebuild, |
209 |
+ udev-9999.ebuild: |
210 |
+ add -vserver and -lxc keywords to udev-mount and udev-postmount, fix a typo |
211 |
+ in udev script and several repoman fixes. |
212 |
|
213 |
25 Dec 2011; William Hubbs <williamh@g.o> udev-9999.ebuild: |
214 |
udev now needs >=sys-apps/util-linux-2.20 |
215 |
|
216 |
|
217 |
|
218 |
1.6 sys-fs/udev/udev-141-r1.ebuild |
219 |
|
220 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/udev-141-r1.ebuild?rev=1.6&view=markup |
221 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/udev-141-r1.ebuild?rev=1.6&content-type=text/plain |
222 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/udev-141-r1.ebuild?r1=1.5&r2=1.6 |
223 |
|
224 |
Index: udev-141-r1.ebuild |
225 |
=================================================================== |
226 |
RCS file: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-141-r1.ebuild,v |
227 |
retrieving revision 1.5 |
228 |
retrieving revision 1.6 |
229 |
diff -u -r1.5 -r1.6 |
230 |
--- udev-141-r1.ebuild 15 Apr 2011 21:55:18 -0000 1.5 |
231 |
+++ udev-141-r1.ebuild 29 Dec 2011 19:32:46 -0000 1.6 |
232 |
@@ -1,6 +1,6 @@ |
233 |
# Copyright 1999-2011 Gentoo Foundation |
234 |
# Distributed under the terms of the GNU General Public License v2 |
235 |
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-141-r1.ebuild,v 1.5 2011/04/15 21:55:18 ulm Exp $ |
236 |
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-141-r1.ebuild,v 1.6 2011/12/29 19:32:46 williamh Exp $ |
237 |
|
238 |
# |
239 |
# Please do not remove this version: |
240 |
@@ -14,7 +14,7 @@ |
241 |
if [[ ${PV} == "9999" ]]; then |
242 |
EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/hotplug/udev.git" |
243 |
EGIT_BRANCH="master" |
244 |
- inherit git autotools |
245 |
+ inherit git-2 autotools |
246 |
else |
247 |
SRC_URI="mirror://kernel/linux/utils/kernel/hotplug/${P}.tar.bz2" |
248 |
fi |
249 |
|
250 |
|
251 |
|
252 |
1.11 sys-fs/udev/udev-141.ebuild |
253 |
|
254 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/udev-141.ebuild?rev=1.11&view=markup |
255 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/udev-141.ebuild?rev=1.11&content-type=text/plain |
256 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/udev-141.ebuild?r1=1.10&r2=1.11 |
257 |
|
258 |
Index: udev-141.ebuild |
259 |
=================================================================== |
260 |
RCS file: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-141.ebuild,v |
261 |
retrieving revision 1.10 |
262 |
retrieving revision 1.11 |
263 |
diff -u -r1.10 -r1.11 |
264 |
--- udev-141.ebuild 15 Apr 2011 21:55:18 -0000 1.10 |
265 |
+++ udev-141.ebuild 29 Dec 2011 19:32:46 -0000 1.11 |
266 |
@@ -1,13 +1,13 @@ |
267 |
# Copyright 1999-2011 Gentoo Foundation |
268 |
# Distributed under the terms of the GNU General Public License v2 |
269 |
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-141.ebuild,v 1.10 2011/04/15 21:55:18 ulm Exp $ |
270 |
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-141.ebuild,v 1.11 2011/12/29 19:32:46 williamh Exp $ |
271 |
|
272 |
inherit eutils flag-o-matic multilib toolchain-funcs versionator |
273 |
|
274 |
if [[ ${PV} == "9999" ]]; then |
275 |
EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/hotplug/udev.git" |
276 |
EGIT_BRANCH="master" |
277 |
- inherit git autotools |
278 |
+ inherit git-2 autotools |
279 |
else |
280 |
SRC_URI="mirror://kernel/linux/utils/kernel/hotplug/${P}.tar.bz2" |
281 |
fi |
282 |
|
283 |
|
284 |
|
285 |
1.18 sys-fs/udev/udev-151-r4.ebuild |
286 |
|
287 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/udev-151-r4.ebuild?rev=1.18&view=markup |
288 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/udev-151-r4.ebuild?rev=1.18&content-type=text/plain |
289 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/udev-151-r4.ebuild?r1=1.17&r2=1.18 |
290 |
|
291 |
Index: udev-151-r4.ebuild |
292 |
=================================================================== |
293 |
RCS file: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-151-r4.ebuild,v |
294 |
retrieving revision 1.17 |
295 |
retrieving revision 1.18 |
296 |
diff -u -r1.17 -r1.18 |
297 |
--- udev-151-r4.ebuild 6 Jul 2011 16:44:44 -0000 1.17 |
298 |
+++ udev-151-r4.ebuild 29 Dec 2011 19:32:46 -0000 1.18 |
299 |
@@ -1,6 +1,6 @@ |
300 |
# Copyright 1999-2011 Gentoo Foundation |
301 |
# Distributed under the terms of the GNU General Public License v2 |
302 |
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-151-r4.ebuild,v 1.17 2011/07/06 16:44:44 williamh Exp $ |
303 |
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-151-r4.ebuild,v 1.18 2011/12/29 19:32:46 williamh Exp $ |
304 |
|
305 |
EAPI="1" |
306 |
|
307 |
@@ -11,7 +11,7 @@ |
308 |
if [[ ${PV} == "9999" ]]; then |
309 |
EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/hotplug/udev.git" |
310 |
EGIT_BRANCH="master" |
311 |
- inherit git autotools |
312 |
+ inherit git-2 autotools |
313 |
else |
314 |
# please update testsys-tarball whenever udev-xxx/test/sys/ is changed |
315 |
SRC_URI="mirror://kernel/linux/utils/kernel/hotplug/${P}.tar.bz2 |
316 |
|
317 |
|
318 |
|
319 |
1.1 sys-fs/udev/udev-171-r5.ebuild |
320 |
|
321 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/udev-171-r5.ebuild?rev=1.1&view=markup |
322 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/udev-171-r5.ebuild?rev=1.1&content-type=text/plain |
323 |
|
324 |
Index: udev-171-r5.ebuild |
325 |
=================================================================== |
326 |
# Copyright 1999-2011 Gentoo Foundation |
327 |
# Distributed under the terms of the GNU General Public License v2 |
328 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-171-r5.ebuild,v 1.1 2011/12/29 19:32:46 williamh Exp $ |
329 |
|
330 |
EAPI=4 |
331 |
|
332 |
KV_min=2.6.32 |
333 |
KV_reliable=2.6.32 |
334 |
PATCHSET=${P}-gentoo-patchset-v1 |
335 |
scriptversion=7 |
336 |
scriptname=udev-gentoo-scripts |
337 |
[[ -n "${scriptversion}" ]] && scriptname="${scriptname}-${scriptversion}" |
338 |
|
339 |
if [[ ${PV} == "9999" ]] |
340 |
then |
341 |
EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/hotplug/udev.git" |
342 |
EGIT_BRANCH="master" |
343 |
vcs="git-2 autotools" |
344 |
fi |
345 |
|
346 |
inherit ${vcs} eutils flag-o-matic multilib toolchain-funcs linux-info systemd libtool |
347 |
|
348 |
if [[ ${PV} != "9999" ]] |
349 |
then |
350 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-linux" |
351 |
# please update testsys-tarball whenever udev-xxx/test/sys/ is changed |
352 |
SRC_URI="mirror://kernel/linux/utils/kernel/hotplug/${P}.tar.bz2 |
353 |
test? ( mirror://gentoo/${PN}-171-testsys.tar.bz2 )" |
354 |
if [[ -n "${PATCHSET}" ]] |
355 |
then |
356 |
SRC_URI="${SRC_URI} mirror://gentoo/${PATCHSET}.tar.bz2" |
357 |
fi |
358 |
fi |
359 |
SRC_URI="${SRC_URI} mirror://gentoo/${scriptname}.tar.bz2" |
360 |
|
361 |
DESCRIPTION="Linux dynamic and persistent device naming support (aka userspace devfs)" |
362 |
HOMEPAGE="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html" |
363 |
|
364 |
LICENSE="GPL-2" |
365 |
SLOT="0" |
366 |
IUSE="build selinux test debug +rule_generator hwdb acl gudev introspection |
367 |
keymap floppy edd action_modeswitch extras" |
368 |
|
369 |
COMMON_DEPEND="selinux? ( sys-libs/libselinux ) |
370 |
extras? ( sys-apps/acl |
371 |
dev-libs/glib:2 |
372 |
dev-libs/gobject-introspection |
373 |
virtual/libusb:0 ) |
374 |
acl? ( sys-apps/acl dev-libs/glib:2 ) |
375 |
gudev? ( dev-libs/glib:2 ) |
376 |
introspection? ( dev-libs/gobject-introspection ) |
377 |
action_modeswitch? ( virtual/libusb:0 ) |
378 |
>=sys-apps/util-linux-2.16 |
379 |
>=sys-libs/glibc-2.10" |
380 |
|
381 |
DEPEND="${COMMON_DEPEND} |
382 |
keymap? ( dev-util/gperf ) |
383 |
extras? ( dev-util/gperf ) |
384 |
dev-util/pkgconfig |
385 |
virtual/os-headers |
386 |
!<sys-kernel/linux-headers-2.6.34 |
387 |
test? ( app-text/tree )" |
388 |
|
389 |
RDEPEND="${COMMON_DEPEND} |
390 |
hwdb? |
391 |
( |
392 |
>=sys-apps/usbutils-0.82 |
393 |
sys-apps/pciutils[-zlib] |
394 |
) |
395 |
extras? |
396 |
( |
397 |
>=sys-apps/usbutils-0.82 |
398 |
sys-apps/pciutils |
399 |
) |
400 |
!sys-apps/coldplug |
401 |
!<sys-fs/lvm2-2.02.45 |
402 |
!sys-fs/device-mapper |
403 |
>=sys-apps/baselayout-1.12.5" |
404 |
|
405 |
if [[ ${PV} == "9999" ]] |
406 |
then |
407 |
# for documentation processing with xsltproc |
408 |
DEPEND="${DEPEND} |
409 |
app-text/docbook-xsl-stylesheets |
410 |
app-text/docbook-xml-dtd |
411 |
dev-util/gtk-doc" |
412 |
fi |
413 |
|
414 |
# required kernel options |
415 |
CONFIG_CHECK="~INOTIFY_USER ~SIGNALFD ~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2 |
416 |
~!IDE ~BLK_DEV_BSG" |
417 |
|
418 |
# Return values: |
419 |
# 2 - reliable |
420 |
# 1 - unreliable |
421 |
# 0 - too old |
422 |
udev_check_KV() { |
423 |
local ok=0 |
424 |
if kernel_is -ge ${KV_reliable//./ } |
425 |
then |
426 |
ok=2 |
427 |
elif kernel_is -ge ${KV_min//./ } |
428 |
then |
429 |
ok=1 |
430 |
fi |
431 |
return $ok |
432 |
} |
433 |
|
434 |
pkg_setup() { |
435 |
linux-info_pkg_setup |
436 |
|
437 |
# always print kernel version requirements |
438 |
ewarn |
439 |
ewarn "${P} does not support Linux kernel before version ${KV_min}!" |
440 |
if [[ ${KV_min} != ${KV_reliable} ]] |
441 |
then |
442 |
ewarn "For a reliable udev, use at least kernel ${KV_reliable}" |
443 |
fi |
444 |
|
445 |
udev_check_KV |
446 |
case "$?" in |
447 |
2) einfo "Your kernel version (${KV_FULL}) is new enough to run ${P} reliably." ;; |
448 |
1) ewarn "Your kernel version (${KV_FULL}) is new enough to run ${P}," |
449 |
ewarn "but it may be unreliable in some cases." |
450 |
;; |
451 |
0) eerror "Your kernel version (${KV_FULL}) is too old to run ${P}" |
452 |
;; |
453 |
esac |
454 |
|
455 |
KV_FULL_SRC=${KV_FULL} |
456 |
get_running_version |
457 |
udev_check_KV |
458 |
if [[ "$?" = "0" ]] |
459 |
then |
460 |
eerror |
461 |
eerror "udev cannot be restarted after emerging," |
462 |
eerror "as your running kernel version (${KV_FULL}) is too old." |
463 |
eerror "You really need to use a newer kernel after a reboot!" |
464 |
NO_RESTART=1 |
465 |
fi |
466 |
} |
467 |
|
468 |
src_unpack() { |
469 |
unpack ${A} |
470 |
if [[ ${PV} == "9999" ]] |
471 |
then |
472 |
git-2_src_unpack |
473 |
fi |
474 |
} |
475 |
|
476 |
src_prepare() { |
477 |
if use test && [[ -d "${WORKDIR}"/test/sys ]] |
478 |
then |
479 |
mv "${WORKDIR}"/test/sys "${S}"/test/ |
480 |
fi |
481 |
|
482 |
# patches go here... |
483 |
|
484 |
# backport some patches |
485 |
if [[ -n "${PATCHSET}" ]] |
486 |
then |
487 |
EPATCH_SOURCE="${WORKDIR}/${PATCHSET}" EPATCH_SUFFIX="patch" \ |
488 |
EPATCH_FORCE="yes" epatch |
489 |
fi |
490 |
|
491 |
# change rules back to group uucp instead of dialout for now |
492 |
sed -e 's/GROUP="dialout"/GROUP="uucp"/' \ |
493 |
-i rules/{rules.d,arch}/*.rules \ |
494 |
|| die "failed to change group dialout to uucp" |
495 |
|
496 |
if [[ ${PV} != 9999 ]] |
497 |
then |
498 |
# Make sure there is no sudden changes to upstream rules file |
499 |
# (more for my own needs than anything else ...) |
500 |
MD5=$(md5sum < "${S}/rules/rules.d/50-udev-default.rules") |
501 |
MD5=${MD5/ -/} |
502 |
if [[ ${MD5} != a9954d57e97aa0ad2e0ed53899d9559a ]] |
503 |
then |
504 |
eerror "50-udev-default.rules has been updated, please validate!" |
505 |
eerror "md5sum: ${MD5}" |
506 |
die "50-udev-default.rules has been updated, please validate!" |
507 |
fi |
508 |
fi |
509 |
|
510 |
if [[ ${PV} == 9999 ]] |
511 |
then |
512 |
gtkdocize --copy || die "gtkdocize failed" |
513 |
eautoreconf |
514 |
else |
515 |
elibtoolize |
516 |
fi |
517 |
} |
518 |
|
519 |
use_extras() { use extras && echo "--enable-${2:-$1}" || use_enable "$@" ; } |
520 |
src_configure() { |
521 |
econf \ |
522 |
--prefix="${EPREFIX}/usr" \ |
523 |
--sysconfdir="${EPREFIX}/etc" \ |
524 |
--sbindir="${EPREFIX}/sbin" \ |
525 |
--libdir="${EPREFIX}/usr/$(get_libdir)" \ |
526 |
--with-rootlibdir="${EPREFIX}/$(get_libdir)" \ |
527 |
--libexecdir="${EPREFIX}/lib/udev" \ |
528 |
--enable-logging \ |
529 |
--enable-static \ |
530 |
$(use_with selinux) \ |
531 |
$(use_enable debug) \ |
532 |
$(use_extras rule_generator) \ |
533 |
$(use_extras hwdb) \ |
534 |
--with-pci-ids-path="${EPREFIX}/usr/share/misc/pci.ids" \ |
535 |
--with-usb-ids-path="${EPREFIX}/usr/share/misc/usb.ids" \ |
536 |
$(use_extras acl udev_acl) \ |
537 |
$(use_extras gudev) \ |
538 |
$(use_extras introspection) \ |
539 |
$(use_extras keymap) \ |
540 |
$(use_extras floppy) \ |
541 |
$(use_extras edd) \ |
542 |
$(use_extras action_modeswitch) \ |
543 |
$(systemd_with_unitdir) |
544 |
} |
545 |
|
546 |
src_compile() { |
547 |
filter-flags -fprefetch-loop-arrays |
548 |
|
549 |
emake |
550 |
} |
551 |
|
552 |
src_install() { |
553 |
into / |
554 |
emake DESTDIR="${D}" install |
555 |
|
556 |
exeinto /lib/udev |
557 |
keepdir /lib/udev/state |
558 |
keepdir /lib/udev/devices |
559 |
|
560 |
# create symlinks for these utilities to /sbin |
561 |
# where multipath-tools expect them to be (Bug #168588) |
562 |
dosym "../lib/udev/scsi_id" /sbin/scsi_id |
563 |
|
564 |
# Add gentoo stuff to udev.conf |
565 |
echo "# If you need to change mount-options, do it in /etc/fstab" \ |
566 |
>> "${ED}"/etc/udev/udev.conf |
567 |
|
568 |
# let the dir exist at least |
569 |
keepdir /etc/udev/rules.d |
570 |
|
571 |
# Now installing rules |
572 |
cd "${S}"/rules |
573 |
insinto /lib/udev/rules.d/ |
574 |
|
575 |
# support older kernels |
576 |
doins misc/30-kernel-compat.rules |
577 |
|
578 |
# Adding arch specific rules |
579 |
if [[ -f arch/40-${ARCH}.rules ]] |
580 |
then |
581 |
doins "arch/40-${ARCH}.rules" |
582 |
fi |
583 |
cd "${S}" |
584 |
|
585 |
insinto /etc/modprobe.d |
586 |
newins "${FILESDIR}"/blacklist-146 blacklist.conf |
587 |
newins "${FILESDIR}"/pnp-aliases pnp-aliases.conf |
588 |
|
589 |
# documentation |
590 |
dodoc ChangeLog README TODO |
591 |
|
592 |
# keep doc in just one directory, Bug #281137 |
593 |
rm -rf "${ED}/usr/share/doc/${PN}" |
594 |
if use keymap |
595 |
then |
596 |
dodoc extras/keymap/README.keymap.txt |
597 |
fi |
598 |
|
599 |
cd "${WORKDIR}/${scriptname}" |
600 |
sed -i -e 's/2.6.34/2.6.32/' init.d/udev |
601 |
doconfd conf.d/* |
602 |
exeinto /lib/udev |
603 |
doexe helpers/* |
604 |
doexe "${FILESDIR}"/shell-compat-KV.sh |
605 |
doinitd init.d/* |
606 |
insinto /etc/modprobe.d |
607 |
doins modprobe.d/* |
608 |
insinto /lib/udev/rules.d |
609 |
doins rules.d/* |
610 |
} |
611 |
|
612 |
src_test() { |
613 |
local emake_cmd="${MAKE:-make} ${MAKEOPTS} ${EXTRA_EMAKE}" |
614 |
|
615 |
cd "${S}" |
616 |
vecho ">>> Test phase [udev:check]: ${CATEGORY}/${PF}" |
617 |
has userpriv $FEATURES && einfo "Disable FEATURES userpriv to run the udev tests" |
618 |
if ! $emake_cmd -j1 check |
619 |
then |
620 |
has test $FEATURES && die "udev: Make test failed. See above for details." |
621 |
has test $FEATURES || eerror "udev: Make test failed. See above for details." |
622 |
fi |
623 |
} |
624 |
|
625 |
pkg_preinst() { |
626 |
# moving old files to support newer modprobe, 12 May 2009 |
627 |
local f dir=${EROOT}/etc/modprobe.d/ |
628 |
for f in pnp-aliases blacklist; do |
629 |
if [[ -f $dir/$f && ! -f $dir/$f.conf ]] |
630 |
then |
631 |
elog "Moving $dir/$f to $f.conf" |
632 |
mv -f "$dir/$f" "$dir/$f.conf" |
633 |
fi |
634 |
done |
635 |
|
636 |
if [[ -d ${EROOT}/lib/udev-state ]] |
637 |
then |
638 |
mv -f "${EROOT}"/lib/udev-state/* "${ED}"/lib/udev/state/ |
639 |
rm -r "${EROOT}"/lib/udev-state |
640 |
fi |
641 |
|
642 |
if [[ -f ${EROOT}/etc/udev/udev.config && |
643 |
! -f ${EROOT}/etc/udev/udev.rules ]] |
644 |
then |
645 |
mv -f "${EROOT}"/etc/udev/udev.config "${EROOT}"/etc/udev/udev.rules |
646 |
fi |
647 |
|
648 |
# delete the old udev.hotplug symlink if it is present |
649 |
if [[ -h ${EROOT}/etc/hotplug.d/default/udev.hotplug ]] |
650 |
then |
651 |
rm -f "${EROOT}"/etc/hotplug.d/default/udev.hotplug |
652 |
fi |
653 |
|
654 |
# delete the old wait_for_sysfs.hotplug symlink if it is present |
655 |
if [[ -h ${EROOT}/etc/hotplug.d/default/05-wait_for_sysfs.hotplug ]] |
656 |
then |
657 |
rm -f "${EROOT}"/etc/hotplug.d/default/05-wait_for_sysfs.hotplug |
658 |
fi |
659 |
|
660 |
# delete the old wait_for_sysfs.hotplug symlink if it is present |
661 |
if [[ -h ${EROOT}/etc/hotplug.d/default/10-udev.hotplug ]] |
662 |
then |
663 |
rm -f "${EROOT}"/etc/hotplug.d/default/10-udev.hotplug |
664 |
fi |
665 |
|
666 |
has_version "=${CATEGORY}/${PN}-103-r3" |
667 |
previous_equal_to_103_r3=$? |
668 |
|
669 |
has_version "<${CATEGORY}/${PN}-104-r5" |
670 |
previous_less_than_104_r5=$? |
671 |
|
672 |
has_version "<${CATEGORY}/${PN}-106-r5" |
673 |
previous_less_than_106_r5=$? |
674 |
|
675 |
has_version "<${CATEGORY}/${PN}-113" |
676 |
previous_less_than_113=$? |
677 |
} |
678 |
|
679 |
# 19 Nov 2008 |
680 |
fix_old_persistent_net_rules() { |
681 |
local rules=${EROOT}/etc/udev/rules.d/70-persistent-net.rules |
682 |
[[ -f ${rules} ]] || return |
683 |
|
684 |
elog |
685 |
elog "Updating persistent-net rules file" |
686 |
|
687 |
# Change ATTRS to ATTR matches, Bug #246927 |
688 |
sed -i -e 's/ATTRS{/ATTR{/g' "${rules}" |
689 |
|
690 |
# Add KERNEL matches if missing, Bug #246849 |
691 |
sed -ri \ |
692 |
-e '/KERNEL/ ! { s/NAME="(eth|wlan|ath)([0-9]+)"/KERNEL=="\1*", NAME="\1\2"/}' \ |
693 |
"${rules}" |
694 |
} |
695 |
|
696 |
# See Bug #129204 for a discussion about restarting udevd |
697 |
restart_udevd() { |
698 |
if [[ ${NO_RESTART} = "1" ]] |
699 |
then |
700 |
ewarn "Not restarting udevd, as your kernel is too old!" |
701 |
return |
702 |
fi |
703 |
|
704 |
# need to merge to our system |
705 |
[[ ${EROOT} = / ]] || return |
706 |
|
707 |
# check if root of init-process is identical to ours (not in chroot) |
708 |
[[ -r /proc/1/root && /proc/1/root/ -ef /proc/self/root/ ]] || return |
709 |
|
710 |
# abort if there is no udevd running |
711 |
[[ -n $(pidof udevd) ]] || return |
712 |
|
713 |
# abort if no /dev/.udev exists |
714 |
[[ -e /dev/.udev ]] || return |
715 |
|
716 |
elog |
717 |
elog "restarting udevd now." |
718 |
|
719 |
killall -15 udevd &>/dev/null |
720 |
sleep 1 |
721 |
killall -9 udevd &>/dev/null |
722 |
|
723 |
/sbin/udevd --daemon |
724 |
sleep 3 |
725 |
if [[ ! -n $(pidof udevd) ]] |
726 |
then |
727 |
eerror "FATAL: udev died, please check your kernel is" |
728 |
eerror "new enough and configured correctly for ${P}." |
729 |
eerror |
730 |
eerror "Please have a look at this before rebooting." |
731 |
eerror "If in doubt, please downgrade udev back to your old version" |
732 |
fi |
733 |
} |
734 |
|
735 |
postinst_init_scripts() { |
736 |
local enable_postmount=false |
737 |
|
738 |
# FIXME: inconsistent handling of init-scripts here |
739 |
# * udev is added to sysinit in openrc-ebuild |
740 |
# * we add udev-postmount to default in here |
741 |
# |
742 |
|
743 |
# If we are building stages, add udev to the sysinit runlevel automatically. |
744 |
if use build |
745 |
then |
746 |
if [[ -x "${EROOT}"/etc/init.d/udev \ |
747 |
&& -d "${EROOT}"/etc/runlevels/sysinit ]] |
748 |
then |
749 |
ln -s "${EPREFIX}"/etc/init.d/udev "${EROOT}"/etc/runlevels/sysinit/udev |
750 |
fi |
751 |
enable_postmount=true |
752 |
fi |
753 |
|
754 |
# migration to >=openrc-0.4 |
755 |
if [[ -e "${EROOT}"/etc/runlevels/sysinit && ! -e "${EROOT}"/etc/runlevels/sysinit/udev ]] |
756 |
then |
757 |
ewarn |
758 |
ewarn "You need to add the udev init script to the runlevel sysinit," |
759 |
ewarn "else your system will not be able to boot" |
760 |
ewarn "after updating to >=openrc-0.4.0" |
761 |
ewarn "Run this to enable udev for >=openrc-0.4.0:" |
762 |
ewarn "\trc-update add udev sysinit" |
763 |
ewarn |
764 |
fi |
765 |
|
766 |
# add udev-postmount to default runlevel instead of that ugly injecting |
767 |
# like a hotplug event, 2009/10/15 |
768 |
|
769 |
# already enabled? |
770 |
[[ -e "${EROOT}"/etc/runlevels/default/udev-postmount ]] && return |
771 |
|
772 |
[[ -e "${EROOT}"/etc/runlevels/sysinit/udev ]] && enable_postmount=true |
773 |
[[ "${EROOT}" = "/" && -d /dev/.udev/ ]] && enable_postmount=true |
774 |
|
775 |
if $enable_postmount |
776 |
then |
777 |
local initd=udev-postmount |
778 |
|
779 |
if [[ -e ${EROOT}/etc/init.d/${initd} ]] && \ |
780 |
[[ ! -e ${EROOT}/etc/runlevels/default/${initd} ]] |
781 |
then |
782 |
ln -snf "${EPREFIX}"/etc/init.d/${initd} "${EROOT}"/etc/runlevels/default/${initd} |
783 |
elog "Auto-adding '${initd}' service to your default runlevel" |
784 |
fi |
785 |
else |
786 |
elog "You should add the udev-postmount service to default runlevel." |
787 |
elog "Run this to add it:" |
788 |
elog "\trc-update add udev-postmount default" |
789 |
fi |
790 |
} |
791 |
|
792 |
pkg_postinst() { |
793 |
fix_old_persistent_net_rules |
794 |
|
795 |
# "losetup -f" is confused if there is an empty /dev/loop/, Bug #338766 |
796 |
# So try to remove it here (will only work if empty). |
797 |
rmdir "${EROOT}"/dev/loop 2>/dev/null |
798 |
if [[ -d "${EROOT}"/dev/loop ]] |
799 |
then |
800 |
ewarn "Please make sure your remove /dev/loop," |
801 |
ewarn "else losetup may be confused when looking for unused devices." |
802 |
fi |
803 |
|
804 |
restart_udevd |
805 |
|
806 |
postinst_init_scripts |
807 |
|
808 |
# people want reminders, I'll give them reminders. Odds are they will |
809 |
# just ignore them anyway... |
810 |
|
811 |
# delete 40-scsi-hotplug.rules, it is integrated in 50-udev.rules, 19 Jan 2007 |
812 |
if [[ $previous_equal_to_103_r3 = 0 ]] && |
813 |
[[ -e ${EROOT}/etc/udev/rules.d/40-scsi-hotplug.rules ]] |
814 |
then |
815 |
ewarn "Deleting stray 40-scsi-hotplug.rules" |
816 |
ewarn "installed by sys-fs/udev-103-r3" |
817 |
rm -f "${EROOT}"/etc/udev/rules.d/40-scsi-hotplug.rules |
818 |
fi |
819 |
|
820 |
# Removing some device-nodes we thought we need some time ago, 25 Jan 2007 |
821 |
if [[ -d ${EROOT}/lib/udev/devices ]] |
822 |
then |
823 |
rm -f "${EROOT}"/lib/udev/devices/{null,zero,console,urandom} |
824 |
fi |
825 |
|
826 |
# Removing some old file, 29 Jan 2007 |
827 |
if [[ $previous_less_than_104_r5 = 0 ]] |
828 |
then |
829 |
rm -f "${EROOT}"/etc/dev.d/net/hotplug.dev |
830 |
rmdir --ignore-fail-on-non-empty "${EROOT}"/etc/dev.d/net 2>/dev/null |
831 |
fi |
832 |
|
833 |
# 19 Mar 2007 |
834 |
if [[ $previous_less_than_106_r5 = 0 ]] && |
835 |
[[ -e ${EROOT}/etc/udev/rules.d/95-net.rules ]] |
836 |
then |
837 |
rm -f "${EROOT}"/etc/udev/rules.d/95-net.rules |
838 |
fi |
839 |
|
840 |
# Try to remove /etc/dev.d as that is obsolete, 23 Apr 2007 |
841 |
if [[ -d ${EROOT}/etc/dev.d ]] |
842 |
then |
843 |
rmdir --ignore-fail-on-non-empty "${EROOT}"/etc/dev.d/default "${EROOT}"/etc/dev.d 2>/dev/null |
844 |
if [[ -d ${EROOT}/etc/dev.d ]] |
845 |
then |
846 |
ewarn "You still have the directory /etc/dev.d on your system." |
847 |
ewarn "This is no longer used by udev and can be removed." |
848 |
fi |
849 |
fi |
850 |
|
851 |
# 64-device-mapper.rules now gets installed by sys-fs/device-mapper |
852 |
# remove it if user don't has sys-fs/device-mapper installed, 27 Jun 2007 |
853 |
if [[ $previous_less_than_113 = 0 ]] && |
854 |
[[ -f ${EROOT}/etc/udev/rules.d/64-device-mapper.rules ]] && |
855 |
! has_version sys-fs/device-mapper |
856 |
then |
857 |
rm -f "${EROOT}"/etc/udev/rules.d/64-device-mapper.rules |
858 |
einfo "Removed unneeded file 64-device-mapper.rules" |
859 |
fi |
860 |
|
861 |
# requested in Bug #225033: |
862 |
elog |
863 |
elog "persistent-net does assigning fixed names to network devices." |
864 |
elog "If you have problems with the persistent-net rules," |
865 |
elog "just delete the rules file" |
866 |
elog "\trm ${EROOT}etc/udev/rules.d/70-persistent-net.rules" |
867 |
elog "and then reboot." |
868 |
elog |
869 |
elog "This may however number your devices in a different way than they are now." |
870 |
|
871 |
ewarn |
872 |
ewarn "If you build an initramfs including udev, then please" |
873 |
ewarn "make sure that the /sbin/udevadm binary gets included," |
874 |
ewarn "and your scripts changed to use it,as it replaces the" |
875 |
ewarn "old helper apps udevinfo, udevtrigger, ..." |
876 |
|
877 |
ewarn |
878 |
ewarn "mount options for directory /dev are no longer" |
879 |
ewarn "set in /etc/udev/udev.conf, but in /etc/fstab" |
880 |
ewarn "as for other directories." |
881 |
|
882 |
ewarn |
883 |
ewarn "If you use /dev/md/*, /dev/loop/* or /dev/rd/*," |
884 |
ewarn "then please migrate over to using the device names" |
885 |
ewarn "/dev/md*, /dev/loop* and /dev/ram*." |
886 |
ewarn "The devfs-compat rules have been removed." |
887 |
ewarn "For reference see Bug #269359." |
888 |
|
889 |
ewarn |
890 |
ewarn "Rules for /dev/hd* devices have been removed" |
891 |
ewarn "Please migrate to libata." |
892 |
|
893 |
elog |
894 |
elog "For more information on udev on Gentoo, writing udev rules, and" |
895 |
elog " fixing known issues visit:" |
896 |
elog " http://www.gentoo.org/doc/en/udev-guide.xml" |
897 |
} |