2 Summary(de): /dev-Einträge
3 Summary(fr): Entrées de /dev
4 Summary(pl): Pliki specjalne /dev/*
5 Summary(tr): /dev dizini
9 Source0: %{name}-%{version}.tar.gz
10 License: public domain
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define perm_cdrom 660,root,disk
22 Unix and unix like systems (including Linux) use file system entries
23 to represent devices attached to the machine. All of these entries are
24 in the /dev tree (though they don't have to be), and this package
25 contains the most commonly used /dev entries. These files are
26 essential for a system to function properly.
29 Unix und Unix-ähnliche Systeme (inkl. Linux) verwenden Dateisystem-
30 Einträge zum Darstellen angeschlossener Geräte. Diese Einträge
31 befinden sich (nicht notwendigerweise) im Verzeichnis /dev. Dieses
32 Paket enthält die üblichsten /dev-Einträge. Diese Dateien sind für das
33 Funktionieren eines Systems unbedingt erforderlich.
36 Unix et les systèmes apparentés (dont Linux) utilise des fichiers pour
37 représenter les périphériques reliés à la machine. Toutes ces entrées
38 sont dans l'arborescence /dev (ce n'est pas obligatoire). Ce paquetage
39 contient les entrées /dev les plus courantes. Elles sont essentielles
40 pour qu'un système fonctionne correctement.
43 Wszystkie systemy unixowe, w tym Linux, u¿ywaj± plików do
44 przedstawiania urz±dzeñ pod³±czonych do komputera. Wszystkie te pliki
45 znajduj± siê zwykle w katalogu /dev. Pakiet ten zawiera wiêkszo¶æ
46 popularnych plików specjalnych, s± one jedn± z wa¿niejszych czê¶ci
47 prawid³owo dzia³aj±cego systemu operacyjnego.
50 Unix ve Unix benzeri sistemler (Linux da dahil olmak üzere), makinaya
51 baðlý aygýtlarý göstermek için özel dosyalar kullanýrlar. Bu özel
52 dosyalarýn tümü /dev dizin yapýsý altýndadýr. Bu paket en çok
53 kullanýlan /dev dosyalarýný içerir. Bu dosyalar, bir sistemin düzgün
54 olarak iþleyebilmesi için temel gereksinimlerdendir.
60 rm -rf $RPM_BUILD_ROOT
63 # [ -e $1 ] || mknod $1 $2 $3 $4
68 install -d $RPM_BUILD_ROOT
70 # add group for floppy and console
71 # if setup contains this group then remove next 4 lines
72 #grep '^floppy:' /etc/group >/dev/null \
73 # || groupadd -g 19 -r -f floppy >/dev/null
74 #grep '^console:' /etc/group >/dev/null \
75 # || groupadd -g 20 -f -r console >/dev/null
77 # do some cleanup in build root
79 tar xpSzf $RPM_SOURCE_DIR/%{name}-%{version}.tar.gz
83 # tar doesn't save some permissions unless the p option is used
84 # this code protects against dev package updaters forgetting to
85 # use the p option when unpacking the souce tarball.
86 for dev in zero null tty ttyp0; do
87 if [ ! $(ls -l $dev | awk '{print $1}') = crw-rw-rw- ]; then
88 echo bad permissions on device $dev 1>&2
94 # SPARC specific devices
96 mknode openprom c 10 139
100 # m68k specific devices
101 mknode amigamouse c 10 4
102 mknode atarimouse c 10 5
103 mknode apollomouse c 10 7
104 ln -sf amigamouse mouse
110 # common sparc & m68k specific devices
113 # remove devices that will *never* exist on a SPARC or m68k
114 rm -f aztcd mcd sbpcd* cm206cd cdu31a cdu535 sonycd sjcd gscd
115 rm -f hd* atibm inportbm logibm psaux
124 for i in 0 1 2 3 4 5 6 7; do
125 ln -sf fb$i fb${i}current
129 mknode watchdog c 10 130
137 mknode mixer1 c 14 16
138 mknode mixer2 c 14 32
139 mknode mixer3 c 14 48
153 mknode audio1 c 14 20
154 mknode audio2 c 14 36
155 mknode audio3 c 14 52
169 mknode dmmidi0 c 14 9
170 mknode dmmidi1 c 14 25
171 mknode dmmidi2 c 14 41
172 mknode dmmidi3 c 14 57
176 mknode admmidi0 c 14 14
177 mknode admmidi1 c 14 30
178 mknode admmidi2 c 14 46
179 mknode admmidi3 c 14 62
181 mknode amidi0 c 14 13
182 mknode amidi1 c 14 29
183 mknode amidi2 c 14 45
184 mknode amidi3 c 14 61
187 ln -sf music sequencer2
189 mknode aloadC0 c 116 0
190 mknode aloadC1 c 116 32
191 mknode aloadC2 c 116 64
192 mknode aloadC3 c 116 96
193 mknode aloadSEQ c 116 1
195 mknode amixer0 c 14 11
196 mknode amixer1 c 14 27
197 mknode amixer2 c 14 43
198 mknode amixer3 c 14 59
200 # video4linux support
202 mknode radio0 c 81 64
211 for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15; do
216 mknode ipstate c 95 2
222 install -d $RPM_BUILD_ROOT/proc/asound
223 touch $RPM_BUILD_ROOT/proc/asound/dev
225 ln -sf ../proc/asound/dev snd
227 # prepared for SysVinit
230 # prepared for Log Daemon
231 mkfifo --mode=666 syslog
233 # libsvga char dev helpers
240 # ipsec character device
244 mknode rawctl c 162 0
245 mkdir $RPM_BUILD_ROOT/dev/raw
247 while [ "$minor" -ne 256 ]; do
248 mknode "raw/raw$minor" c 162 $minor
253 mknode ttyLT0 c 62 64
255 # XFree86-nvidia-kernel
257 mknode nvidia$i c 195 $i
259 mknode nvidiactl c 195 255
261 # kernel 2.4 requires /dev/js* with major 13
268 mknode ircomm0 c 161 0
269 mknode ircomm1 c 161 1
270 mknode irlpt0 c 161 16
271 mknode irlpt1 c 161 17
277 rm -rf $RPM_BUILD_ROOT
280 %defattr(644,root,root,755)
283 %attr(660,root,audio) /dev/admmidi*
285 %config(noreplace) %verify(not link) %attr(660,root,audio) /dev/adsp
286 %attr(660,root,audio) /dev/adsp?*
288 %config(noreplace) %verify(not link) %attr(660,root,audio) /dev/amidi
289 %attr(660,root,audio) /dev/amidi?*
291 %attr(660,root,root) /dev/arpd
293 %config(noreplace) %verify(not link) %attr(660,root,audio) /dev/audio
294 %attr(660,root,audio) /dev/audio?*
297 %attr(%{perm_cdrom}) /dev/bpcd
300 %attr(600,root,root) /dev/capi*
301 %attr(600,root,root) /dev/cfs0
302 %attr(660,root,console) /dev/console
303 %attr(664,root,root) /dev/cui*
304 %attr(600,root,root) /dev/cum*
307 %attr(600,root,root) /dev/dcbri*
308 %attr(660,root,sys) /dev/dcxx*
309 %attr(660,root,audio) /dev/dmfm*
310 %attr(660,root,audio) /dev/dmmidi*
311 %config(noreplace) %verify(not link) %attr(660,root,audio) /dev/dsp
312 %attr(660,root,audio) /dev/dsp?*
315 %attr(600,root,root) /dev/enskip
318 %config(noreplace) %verify(not link) %attr(644,root,root) /dev/fb
319 %attr(644,root,root) /dev/fb?*
320 %attr(660,root,floppy) /dev/fd*
321 %config(noreplace) %verify(not link) %attr(666,root,root) /dev/ftape
322 %attr(644,root,root) /dev/full
327 %attr(660,root,disk) /dev/ht0
330 %attr(600,root,root) /dev/i2c*
332 %attr(660,root,disk) /dev/ida/*
333 %attr(600,root,root) /dev/initctl
334 %attr(600,root,root) /dev/ipauth
335 %attr(600,root,root) /dev/ipl
336 %attr(600,root,root) /dev/ipnat
337 %attr(600,root,root) /dev/ipstate
338 %attr(600,root,root) /dev/ippp*
339 %attr(664,root,ttyS) /dev/ircomm0
340 %attr(664,root,ttyS) /dev/ircomm1
341 %attr(664,root,ttyS) /dev/irlpt0
342 %attr(664,root,ttyS) /dev/irlpt1
343 %attr(660,root,sys) /dev/iscc*
344 %attr(600,root,root) /dev/isctl
345 %attr(600,root,root) /dev/isdn?
346 %attr(600,root,root) /dev/isdn??
347 %config(noreplace) %verify(not link) %attr(600,root,root) /dev/isdnctrl
348 %attr(600,root,root) /dev/isdnctrl?*
349 %attr(444,root,root) /dev/isdninfo
352 %attr(660,root,sys) /dev/js*
355 %attr(640,root,kmem) /dev/kmem
358 %attr(660,root,root) /dev/lirc
359 %attr(660,root,disk) /dev/loop*
360 %attr(660,root,lp) /dev/lp*
363 %attr(640,root,kmem) /dev/mem
364 %config(noreplace) %verify(not link) %attr(660,root,audio) /dev/midi
365 %attr(660,root,audio) /dev/midi?*
366 %config(noreplace) %verify(not link) %attr(660,root,audio) /dev/mixer
367 %attr(660,root,audio) /dev/mixer?*
368 %attr(660,root,sys) /dev/mmetfgrab
369 %attr(600,root,root) /dev/mpu401*
370 %attr(660,root,audio) /dev/music
371 %attr(660,root,disk) /dev/md*
374 %attr(660,root,disk) /dev/nb*
375 %config(noreplace) %verify(not link) %attr(666,root,root) /dev/nftape
376 %attr(660,root,disk) /dev/nht*
377 %attr(660,root,disk) /dev/nqft*
378 %attr(660,root,disk) /dev/nrawqft*
379 %attr(660,root,disk) /dev/nrft*
380 %attr(660,root,disk) /dev/nst*
381 %attr(660,root,disk) /dev/ntpqic*
382 %attr(666,root,root) /dev/null
383 %attr(666,root,root) /dev/nvidia*
384 %attr(660,root,disk) /dev/nzqft*
387 %attr(%{perm_cdrom}) /dev/optcd
388 %attr(660,root,sys) /dev/oldjs*
391 %attr(660,root,lp) /dev/par?
392 %attr(660,root,lp) /dev/parport*
394 %attr(%{perm_cdrom}) /dev/pcd*
395 %attr(660,root,disk) /dev/pd*
396 %attr(660,root,disk) /dev/pf*
397 %attr(600,root,root) /dev/pg*
399 %attr(640,root,kmem) /dev/port
400 %attr(644,root,root) /dev/ppp
401 %attr(600,root,root) /dev/printer
403 %attr(660,root,disk) /dev/pt0
404 %attr(660,root,disk) /dev/pt1
405 %attr(660,root,disk) /dev/pt2
406 %attr(660,root,disk) /dev/pt3
408 %attr(666,root,tty) /dev/ptmx
409 %attr(666,root,tty) /dev/pty*
413 %attr(640,root,disk) /dev/ram
414 %attr(660,root,disk) /dev/ram0
415 %attr(660,root,disk) /dev/ram1*
416 %attr(660,root,disk) /dev/ram2
417 %attr(660,root,disk) /dev/ram3
418 %attr(660,root,disk) /dev/ram4
419 %attr(660,root,disk) /dev/ram5
420 %attr(660,root,disk) /dev/ram6
421 %attr(660,root,disk) /dev/ram7
422 %attr(660,root,disk) /dev/ram8
423 %attr(660,root,disk) /dev/ram9
425 %config(noreplace) %verify(not link) %attr(660,root,disk) /dev/ramdisk
427 %attr(644,root,root) /dev/random
428 %attr(660,root,disk) /dev/rawqft*
429 %attr(660,root,disk) /dev/rft*
430 %attr(660,root,audio) /dev/rmidi*
431 %attr(660,root,disk) /dev/rmt*
432 %attr(644,root,root) /dev/route
433 %attr(664,root,root) /dev/rtc
435 %attr(660,root,disk) /dev/rd/*
436 %attr(600,root,root) /dev/rawctl
438 %attr(660,root,disk) /dev/raw/*
441 %attr(%{perm_cdrom}) /dev/scd*
442 %attr(660,root,disk) /dev/sd*
444 %attr(660,root,audio) /dev/sequencer
445 %attr(660,root,audio) /dev/sequencer2
447 %attr(600,root,root) /dev/sg*
448 %attr(600,root,root) /dev/smtpe*
450 %attr(444,root,root) /dev/snd
451 %attr(666,root,root) /dev/sndstat
453 %attr(600,root,root) /dev/srnd*
455 %attr(660,root,disk) /dev/st?
456 %attr(600,root,root) /dev/staliomem*
457 %attr(666,root,root) /dev/std*
459 %attr(664,root,root) /dev/svga*
460 %attr(666,root,root) /dev/syslog
461 %attr(600,root,root) /dev/systty
464 %attr(660,root,disk) /dev/tape*
465 %attr(600,root,root) /dev/tlk*
466 %attr(660,root,disk) /dev/tpqic*
468 %attr(666,root,root) /dev/tty
470 %attr(600,root,root) /dev/tty0
471 %attr(600,root,root) /dev/tty1*
472 %attr(600,root,root) /dev/tty2
473 %attr(600,root,root) /dev/tty3
474 %attr(600,root,root) /dev/tty4
475 %attr(600,root,root) /dev/tty5
476 %attr(600,root,root) /dev/tty6
477 %attr(600,root,root) /dev/tty7
478 %attr(600,root,root) /dev/tty8
479 %attr(600,root,root) /dev/tty9
481 %attr(600,root,root) /dev/ttyC*
482 %attr(600,root,root) /dev/ttyD*
483 %attr(600,root,root) /dev/ttyE*
484 %attr(600,root,root) /dev/ttyI*
485 %attr(600,root,root) /dev/ttyM*
486 %attr(600,root,root) /dev/ttyP*
487 %attr(600,root,root) /dev/ttyR*
489 %attr(664,root,ttyS) /dev/ttyS*
490 %attr(664,root,ttyS) /dev/ttyLT*
492 %attr(666,root,tty) /dev/ttya*
493 %attr(666,root,tty) /dev/ttyb*
494 %attr(666,root,tty) /dev/ttyc*
495 %attr(666,root,tty) /dev/ttyd*
496 %attr(666,root,tty) /dev/ttye*
497 %attr(666,root,tty) /dev/ttyp*
498 %attr(666,root,tty) /dev/ttyq*
499 %attr(666,root,tty) /dev/ttyr*
500 %attr(666,root,tty) /dev/ttys*
501 %attr(666,root,tty) /dev/ttyt*
502 %attr(666,root,tty) /dev/ttyu*
503 %attr(666,root,tty) /dev/ttyv*
504 %attr(666,root,tty) /dev/ttyw*
505 %attr(666,root,tty) /dev/ttyx*
506 %attr(666,root,tty) /dev/ttyy*
507 %attr(666,root,tty) /dev/ttyz*
510 %attr(644,root,root) /dev/urandom
513 %attr(620,root,tty) %verify(not user) /dev/vcs*
516 %attr(600,root,root) /dev/watchdog
517 %attr(660,root,sys) /dev/wvisfgrab
520 %attr(660,root,disk) /dev/xd*
525 %attr(666,root,root) /dev/zero
526 %attr(660,root,disk) /dev/zqft*
528 # only on sparc or m68k
530 # XXX: which permissions???
531 %attr(600,root,root) /dev/kbd
536 # XXX: which permissions???
537 %attr(664,root,root) /dev/amigamouse
538 %attr(664,root,root) /dev/atarimouse
539 %attr(664,root,root) /dev/apollomouse
544 # XXX: which permissions ???
545 %attr(600,root,root) /dev/openprom
546 %attr(664,root,root) /dev/sunmouse
549 # not on sparc or m68k
551 %attr(664,root,root) /dev/atibm
552 %attr(%{perm_cdrom}) /dev/aztcd
553 %attr(%{perm_cdrom}) /dev/cdu31a
554 %attr(%{perm_cdrom}) /dev/cdu535
555 %attr(%{perm_cdrom}) /dev/cm206cd
556 %attr(%{perm_cdrom}) /dev/gscd
557 %attr(660,root,disk) /dev/hd*
558 %attr(664,root,root) /dev/inportbm
559 %attr(664,root,root) /dev/logibm
560 %attr(%{perm_cdrom}) /dev/mcd
561 %attr(664,root,root) /dev/psaux
562 %attr(%{perm_cdrom}) /dev/sbpcd*
563 %attr(%{perm_cdrom}) /dev/sjcd
564 %attr(%{perm_cdrom}) /dev/sonycd