1 |
zzam 07/09/20 20:28:43 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: udev-115-r5.ebuild |
5 |
Removed: udev-115-r3.ebuild udev-115-r2.ebuild |
6 |
udev-115-r4.ebuild |
7 |
Log: |
8 |
Added isdn and pilot devices to group uucp. Removed older test versions. |
9 |
(Portage version: 2.1.3.9) |
10 |
|
11 |
Revision Changes Path |
12 |
1.351 sys-fs/udev/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/udev/ChangeLog?rev=1.351&view=markup |
15 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/udev/ChangeLog?rev=1.351&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/udev/ChangeLog?r1=1.350&r2=1.351 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v |
21 |
retrieving revision 1.350 |
22 |
retrieving revision 1.351 |
23 |
diff -u -r1.350 -r1.351 |
24 |
--- ChangeLog 20 Sep 2007 17:17:57 -0000 1.350 |
25 |
+++ ChangeLog 20 Sep 2007 20:28:42 -0000 1.351 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for sys-fs/udev |
28 |
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.350 2007/09/20 17:17:57 zzam Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.351 2007/09/20 20:28:42 zzam Exp $ |
31 |
+ |
32 |
+*udev-115-r5 (20 Sep 2007) |
33 |
+ |
34 |
+ 20 Sep 2007; Matthias Schwarzott <zzam@g.o> |
35 |
+ files/udev-115-add-special-rule-files.diff, -udev-115-r2.ebuild, |
36 |
+ -udev-115-r3.ebuild, -udev-115-r4.ebuild, +udev-115-r5.ebuild: |
37 |
+ Added isdn and pilot devices to group uucp. Removed older test versions. |
38 |
|
39 |
*udev-115-r4 (20 Sep 2007) |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
1.1 sys-fs/udev/udev-115-r5.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/udev/udev-115-r5.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/udev/udev-115-r5.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: udev-115-r5.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2007 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-115-r5.ebuild,v 1.1 2007/09/20 20:28:42 zzam Exp $ |
54 |
|
55 |
inherit eutils flag-o-matic multilib toolchain-funcs versionator |
56 |
|
57 |
PATCH="${P}-update-20070920-2.diff" |
58 |
DESCRIPTION="Linux dynamic and persistent device naming support (aka userspace devfs)" |
59 |
HOMEPAGE="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html" |
60 |
SRC_URI="mirror://kernel/linux/utils/kernel/hotplug/${P}.tar.bz2 |
61 |
mirror://gentoo/${PATCH}.bz2 |
62 |
http://dev.gentoo.org/~zzam/distfiles/${PATCH}.bz2" |
63 |
|
64 |
LICENSE="GPL-2" |
65 |
SLOT="0" |
66 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
67 |
IUSE="selinux" |
68 |
|
69 |
DEPEND="selinux? ( sys-libs/libselinux )" |
70 |
RDEPEND="!sys-apps/coldplug |
71 |
!<sys-fs/device-mapper-1.02.19-r1" |
72 |
RDEPEND="${DEPEND} ${RDEPEND} |
73 |
>=sys-apps/baselayout-1.12.5" |
74 |
# We need the lib/rcscripts/addon support |
75 |
PROVIDE="virtual/dev-manager" |
76 |
|
77 |
pkg_setup() { |
78 |
udev_helper_dir="/$(get_libdir)/udev" |
79 |
|
80 |
myconf= |
81 |
extras="extras/ata_id \ |
82 |
extras/cdrom_id \ |
83 |
extras/edd_id \ |
84 |
extras/firmware \ |
85 |
extras/floppy \ |
86 |
extras/path_id \ |
87 |
extras/scsi_id \ |
88 |
extras/usb_id \ |
89 |
extras/volume_id \ |
90 |
extras/collect \ |
91 |
extras/rule_generator \ |
92 |
extras/root_link" |
93 |
|
94 |
use selinux && myconf="${myconf} USE_SELINUX=true" |
95 |
|
96 |
# comparing kernel version without linux-info.eclass to not pull |
97 |
# virtual/linux-sources |
98 |
|
99 |
local KV=$(uname -r) |
100 |
local KV_MAJOR=$(get_major_version ${KV}) |
101 |
local KV_MINOR=$(get_version_component_range 2 ${KV}) |
102 |
local KV_MICRO=$(get_version_component_range 3 ${KV}) |
103 |
|
104 |
local ok=0 |
105 |
if [[ "${KV_MAJOR}" == 2 ]] && [[ "${KV_MINOR}" == 6 ]] && [[ "${KV_MICRO}" -ge 15 ]]; then |
106 |
ok=1 |
107 |
fi |
108 |
|
109 |
if [[ "$ok" = "0" ]]; then |
110 |
ewarn |
111 |
ewarn "${P} does not support Linux kernel before version 2.6.15!" |
112 |
ewarn "If you want to use udev you need to update" |
113 |
ewarn "to kernel >=2.6.15!" |
114 |
ewarn |
115 |
ebeep |
116 |
fi |
117 |
} |
118 |
|
119 |
sed_helper_dir() { |
120 |
sed -e "s#/lib/udev#${udev_helper_dir}#" -i "$@" |
121 |
} |
122 |
|
123 |
src_unpack() { |
124 |
unpack ${A} |
125 |
|
126 |
cd "${S}" |
127 |
|
128 |
# patches go here... |
129 |
epatch "${WORKDIR}/${PATCH}" |
130 |
EPATCH_OPTS="-p1" epatch "${FILESDIR}/udev-115-add-special-rule-files.diff" |
131 |
epatch "${FILESDIR}/${P}-fix-modprobe-calls.diff" |
132 |
EPATCH_OPTS="-p1" epatch "${FILESDIR}/${PN}-114-root-link-2.diff" |
133 |
|
134 |
# add blacklisting option where needed |
135 |
#sed -e '/MODALIAS/s#modprobe#modprobe --use-blacklist#' \ |
136 |
# -e '/while read id/s#modprobe#modprobe --use-blacklist#' \ |
137 |
# -i etc/udev/rules.d/80-drivers.rules |
138 |
|
139 |
# no longer needed |
140 |
rm etc/udev/gentoo/50-udev.rules |
141 |
|
142 |
# No need to clutter the logs ... |
143 |
sed -ie '/^DEBUG/ c\DEBUG = false' Makefile |
144 |
# Do not use optimization flags from the package |
145 |
sed -ie 's|$(OPTIMIZATION)||g' Makefile |
146 |
# Do not require xmlto to refresh manpages |
147 |
sed -ie 's|$(MAN_PAGES)||g' Makefile |
148 |
|
149 |
# Make sure there is no sudden changes to upstream rules file |
150 |
# (more for my own needs than anything else ...) |
151 |
MD5=`md5sum < "${S}/etc/udev/rules.d/50-udev-default.rules"` |
152 |
MD5=${MD5/ -/} |
153 |
if [ "${MD5}" != "644e3c77eb866dee4ff8dda2e95cd187" ] |
154 |
then |
155 |
echo |
156 |
eerror "50-udev-default.rules has been updated, please validate!" |
157 |
die "50-udev-default.rules has been updated, please validate!" |
158 |
fi |
159 |
|
160 |
sed_helper_dir \ |
161 |
etc/udev/rules.d/50-udev-default.rules \ |
162 |
extras/rule_generator/write_*_rules \ |
163 |
udev_rules_parse.c \ |
164 |
udev_rules.c |
165 |
|
166 |
# Use correct multilib dir |
167 |
sed -i extras/volume_id/lib/Makefile \ |
168 |
-e "/ =/s-/lib-/$(get_libdir)-" |
169 |
} |
170 |
|
171 |
src_compile() { |
172 |
filter-flags -fprefetch-loop-arrays |
173 |
|
174 |
# Not everyone has full $CHOST-{ld,ar,etc...} yet |
175 |
local mycross="" |
176 |
type -p ${CHOST}-ar && mycross=${CHOST}- |
177 |
|
178 |
emake \ |
179 |
EXTRAS="${extras}" \ |
180 |
libudevdir=${udev_helper_dir} \ |
181 |
CROSS_COMPILE=${mycross} \ |
182 |
OPTFLAGS="" \ |
183 |
${myconf} || die |
184 |
} |
185 |
|
186 |
src_install() { |
187 |
into / |
188 |
emake \ |
189 |
DESTDIR="${D}" \ |
190 |
libudevdir=${udev_helper_dir} \ |
191 |
EXTRAS="${extras}" \ |
192 |
${myconf} \ |
193 |
install || die |
194 |
|
195 |
# make install does not install this |
196 |
dosbin udevstart || die "Required binary not installed properly" |
197 |
doman udevstart.8 |
198 |
|
199 |
exeinto "${udev_helper_dir}" |
200 |
newexe "${FILESDIR}"/net-104-r10.sh net.sh || die "Required binary not installed properly" |
201 |
newexe "${FILESDIR}"/move_tmp_persistent_rules-112-r1.sh move_tmp_persistent_rules.sh \ |
202 |
|| die "Required binary not installed properly" |
203 |
|
204 |
keepdir "${udev_helper_dir}"/state |
205 |
keepdir "${udev_helper_dir}"/devices |
206 |
|
207 |
# create symlinks for these utilities to /sbin |
208 |
# where multipath-tools expect them to be (Bug #168588) |
209 |
dosym "..${udev_helper_dir}/vol_id" /sbin/vol_id |
210 |
dosym "..${udev_helper_dir}/scsi_id" /sbin/scsi_id |
211 |
|
212 |
# vol_id library (needed by mount and HAL) |
213 |
into / |
214 |
rm "${D}/$(get_libdir)"/libvolume_id.so* 2>/dev/null |
215 |
dolib extras/volume_id/lib/*.so* || die "Failed installing libvolume_id.so" |
216 |
into /usr |
217 |
dolib extras/volume_id/lib/*.a || die "Failed installing libvolume_id.a" |
218 |
|
219 |
# handle static linking bug #4411 |
220 |
rm -f "${D}/usr/$(get_libdir)/libvolume_id.so" |
221 |
gen_usr_ldscript libvolume_id.so |
222 |
|
223 |
# Add gentoo stuff to udev.conf |
224 |
cat "${FILESDIR}"/udev.conf.post_115 >> "${D}"/etc/udev/udev.conf |
225 |
|
226 |
# Now installing rules |
227 |
cd etc/udev |
228 |
insinto /etc/udev/rules.d/ |
229 |
|
230 |
# Our rules files |
231 |
doins gentoo/??-*.rules |
232 |
|
233 |
# Adding arch specific rules |
234 |
if [[ -f "packages/40-${ARCH}.rules" ]]; then |
235 |
doins "packages/40-${ARCH}.rules" |
236 |
fi |
237 |
cd "${S}" |
238 |
|
239 |
# our udev hooks into the rc system |
240 |
insinto /$(get_libdir)/rcscripts/addons |
241 |
newins "${FILESDIR}"/udev-start-115-r3.sh udev-start.sh |
242 |
newins "${FILESDIR}"/udev-stop-111-r2.sh udev-stop.sh |
243 |
|
244 |
# The udev-post init-script |
245 |
newinitd "${FILESDIR}"/udev-postmount-initd-111-r2 udev-postmount |
246 |
|
247 |
insinto /etc/modprobe.d |
248 |
newins ${FILESDIR}/blacklist-110 blacklist |
249 |
doins ${FILESDIR}/pnp-aliases |
250 |
|
251 |
# convert /lib/udev to real used dir |
252 |
sed_helper_dir \ |
253 |
"${D}/$(get_libdir)"/rcscripts/addons/*.sh \ |
254 |
"${D}"/etc/init.d/udev* \ |
255 |
"${D}"/etc/modprobe.d/* |
256 |
|
257 |
# documentation |
258 |
dodoc ChangeLog FAQ README TODO RELEASE-NOTES |
259 |
dodoc docs/{overview,udev_vs_devfs} |
260 |
dodoc docs/writing_udev_rules/* |
261 |
|
262 |
newdoc extras/volume_id/README README_volume_id |
263 |
|
264 |
echo "CONFIG_PROTECT_MASK=\"/etc/udev/rules.d\"" > 20udev |
265 |
doenvd 20udev |
266 |
} |
267 |
|
268 |
pkg_preinst() { |
269 |
if [[ -d "${ROOT}"/lib/udev-state ]] ; then |
270 |
mv -f "${ROOT}"/lib/udev-state/* "${D}"/lib/udev/state/ |
271 |
rm -r "${ROOT}"/lib/udev-state |
272 |
fi |
273 |
|
274 |
if [ -f "${ROOT}/etc/udev/udev.config" -a \ |
275 |
! -f "${ROOT}/etc/udev/udev.rules" ] |
276 |
then |
277 |
mv -f "${ROOT}"/etc/udev/udev.config "${ROOT}"/etc/udev/udev.rules |
278 |
fi |
279 |
|
280 |
# delete the old udev.hotplug symlink if it is present |
281 |
if [ -h "${ROOT}/etc/hotplug.d/default/udev.hotplug" ] |
282 |
then |
283 |
rm -f "${ROOT}"/etc/hotplug.d/default/udev.hotplug |
284 |
fi |
285 |
|
286 |
# delete the old wait_for_sysfs.hotplug symlink if it is present |
287 |
if [ -h "${ROOT}/etc/hotplug.d/default/05-wait_for_sysfs.hotplug" ] |
288 |
then |
289 |
rm -f "${ROOT}"/etc/hotplug.d/default/05-wait_for_sysfs.hotplug |
290 |
fi |
291 |
|
292 |
# delete the old wait_for_sysfs.hotplug symlink if it is present |
293 |
if [ -h "${ROOT}/etc/hotplug.d/default/10-udev.hotplug" ] |
294 |
then |
295 |
rm -f "${ROOT}"/etc/hotplug.d/default/10-udev.hotplug |
296 |
fi |
297 |
|
298 |
# is there a stale coldplug initscript? (CONFIG_PROTECT leaves it behind) |
299 |
coldplug_stale="" |
300 |
if [ -f "${ROOT}/etc/init.d/coldplug" ] |
301 |
then |
302 |
coldplug_stale="1" |
303 |
fi |
304 |
} |
305 |
|
306 |
pkg_postinst() { |
307 |
# people want reminders, I'll give them reminders. Odds are they will |
308 |
# just ignore them anyway... |
309 |
|
310 |
if [[ ${coldplug_stale} == "1" ]] ; then |
311 |
ewarn "A stale coldplug init script found. You should run:" |
312 |
ewarn |
313 |
ewarn " rc-update del coldplug" |
314 |
ewarn " rm -f /etc/init.d/coldplug" |
315 |
ewarn |
316 |
ewarn "udev now provides its own coldplug functionality." |
317 |
fi |
318 |
|
319 |
# delete 40-scsi-hotplug.rules - all integrated in 50-udev.rules |
320 |
if has_version "=sys-fs/udev-103-r3"; then |
321 |
if [[ -e "${ROOT}/etc/udev/rules.d/40-scsi-hotplug.rules" ]] |
322 |
then |
323 |
ewarn "Deleting stray 40-scsi-hotplug.rules" |
324 |
ewarn "installed by sys-fs/udev-103-r3" |
325 |
rm -f "${ROOT}"/etc/udev/rules.d/40-scsi-hotplug.rules |
326 |
fi |
327 |
fi |
328 |
|
329 |
# Removing some device-nodes we thought we need some time ago |
330 |
if [[ -d "${ROOT}"/lib/udev/devices ]]; then |
331 |
rm -f "${ROOT}"/lib/udev/devices/{null,zero,console,urandom} |
332 |
fi |
333 |
|
334 |
# Removing some old file |
335 |
if has_version "<sys-fs/udev-104-r5"; then |
336 |
rm -f "${ROOT}"/etc/dev.d/net/hotplug.dev |
337 |
rmdir --ignore-fail-on-non-empty "${ROOT}"/etc/dev.d/net 2>/dev/null |
338 |
fi |
339 |
|
340 |
if has_version "<sys-fs/udev-106-r5"; then |
341 |
if [[ -e "${ROOT}"/etc/udev/rules.d/95-net.rules ]]; then |
342 |
rm -f "${ROOT}"/etc/udev/rules.d/95-net.rules |
343 |
fi |
344 |
fi |
345 |
|
346 |
# Try to remove /etc/dev.d as that is obsolete |
347 |
if [[ -d "${ROOT}"/etc/dev.d ]]; then |
348 |
rmdir --ignore-fail-on-non-empty "${ROOT}"/etc/dev.d/default "${ROOT}"/etc/dev.d 2>/dev/null |
349 |
if [[ -d "${ROOT}"/etc/dev.d ]]; then |
350 |
ewarn "You still have the directory /etc/dev.d on your system." |
351 |
ewarn "This is no longer used by udev and can be removed." |
352 |
fi |
353 |
fi |
354 |
|
355 |
# 64-device-mapper.rules now gets installed by sys-fs/device-mapper |
356 |
# remove it if user don't has sys-fs/device-mapper installed |
357 |
if has_version "<sys-fs/udev-113" && |
358 |
[[ -f "${ROOT}"/etc/udev/rules.d/64-device-mapper.rules ]] && |
359 |
! has_version sys-fs/device-mapper |
360 |
then |
361 |
rm -f "${ROOT}"/etc/udev/rules.d/64-device-mapper.rules |
362 |
einfo "Removed unneeded file 64-device-mapper.rules" |
363 |
fi |
364 |
|
365 |
if [[ "${ROOT}" == "/" ]] ; then |
366 |
# check if root of init-process is identical to ours |
367 |
if [ -r /proc/1/root -a /proc/1/root/ -ef /proc/self/root/ ]; then |
368 |
einfo "restarting udevd now." |
369 |
if [[ -n $(pidof udevd) ]] ; then |
370 |
killall -15 udevd &>/dev/null |
371 |
sleep 1 |
372 |
killall -9 udevd &>/dev/null |
373 |
fi |
374 |
/sbin/udevd --daemon |
375 |
fi |
376 |
fi |
377 |
|
378 |
einfo |
379 |
einfo "For more information on udev on Gentoo, writing udev rules, and" |
380 |
einfo " fixing known issues visit:" |
381 |
einfo " http://www.gentoo.org/doc/en/udev-guide.xml" |
382 |
} |
383 |
|
384 |
|
385 |
|
386 |
-- |
387 |
gentoo-commits@g.o mailing list |