[Lunar-commits] CVS: moonbase/filesys/udev 49-udev.rules, NONE, 1.1 BUILD, 1.14, 1.15 DETAILS, 1.48, 1.49

Jaime Buffery nestu at lunar-linux.org
Sat Feb 12 19:02:11 UTC 2005


Update of /var/cvs/lunar/moonbase/filesys/udev
In directory espresso.foo-projects.org:/tmp/cvs-serv24411

Modified Files:
	BUILD DETAILS 
Added Files:
	49-udev.rules 
Log Message:
050 -> 051. gcc 3.3.3. glibc 2.3.2, headers 2.6.10.0
THis version now has merged rules and permissions in one single file, 
so 49-udev.rules, that is Lunar old defaults file -updated to the new scheme-,
is being added.


--- NEW FILE: 49-udev.rules ---
# Lunar's rules udev file
# this file assumes you have
# * root.root as default user/group
# * 0660 as default perms
# for each node

# console
KERNEL="console",                          MODE="0600"                      
KERNEL="root[0-9][0-9]*",  OWNER="$local"
KERNEL="vc/[0-9]*",        OWNER="$local"                 

KERNEL="ptmx",                   OWNER="$local",  MODE="0666"
KERNEL="pty/m*",                 OWNER="$local" 
KERNEL="root[p-za-e][0-9a-f]*",  OWNER="$local"
KERNEL="vc/s*",                  OWNER="$local"                                 


# tty devices
KERNEL="tty",                                                        GROUP="tty"
KERNEL="tty[0-9]*",   NAME="vc/%n",   SYMLINK="%k",  OWNER="$local", GROUP="tty"
KERNEL="ttyS[0-9]*",  NAME="tts/%n",  SYMLINK="%k",  OWNER="$local", GROUP="tty"


# pty devices
KERNEL="tty[p-za-e][0-9a-f]*", NAME="tty/s%n", SYMLINK="%k", OWNER="$local" 
KERNEL="pty[p-za-e][0-9a-f]*", NAME="pty/m%n", SYMLINK="%k", OWNER="$local"                             


# vc devices
KERNEL="vcc/*",                                     MODE="0600"                                
KERNEL="vcs",         NAME="vcc/0",   SYMLINK="%k", MODE="0600"
KERNEL="vcs[0-9]*",   NAME="vcc/%n",  SYMLINK="%k", MODE="0600"
KERNEL="vcsa",                                      MODE="0600"
KERNEL="vcsa[0-9]*",  NAME="vcc/a%n", SYMLINK="%k", MODE="0600"


# mem
KERNEL="mem",      GROUP="kmem",  MODE="0640"
KERNEL="kmem",     GROUP="kmem",  MODE="0640"
KERNEL="port",     GROUP="kmem",  MODE="0640"
KERNEL="random",                  MODE="0666"
KERNEL="urandom",                 MODE="0444"
KERNEL="zero",                    MODE="0666"
KERNEL="null",                    MODE="0666"
KERNEL="full",                    MODE="0666"


# miscelaneous
KERNEL="microdrive*", GROUP="disk"
#KERNEL="nvram"
#KERNEL="rtc"
#KERNEL="rtc", NAME="misc/%k", SYMLINK="%k"


# floppy
KERNEL="fd[0-9]*", NAME="floppy/%n", SYMLINK="%k", GROUP="floppy"
KERNEL="floppy/*",                                 GROUP="floppy"


# audio

# alsa
KERNEL="controlC[0-9]*",  NAME="snd/%k",  GROUP="audio" 
KERNEL="hw[CD0-9]*",      NAME="snd/%k",  GROUP="audio"   
KERNEL="pcm[CD0-9cp]*",   NAME="snd/%k",  GROUP="audio"
KERNEL="timer",           NAME="snd/%k",  GROUP="audio"
KERNEL="seq",             NAME="snd/%k",  GROUP="audio"
KERNEL="midiC[D0-9]*",    NAME="snd/%k",  GROUP="audio"

# sound 
#KERNEL="admm*",                                                GROUP="audio"
KERNEL="adsp",        NAME="sound/adsp",        SYMLINK="%k",   GROUP="audio"
KERNEL="adsp*",       NAME="sound/adsp%n",      SYMLINK="%k",   GROUP="audio"
KERNEL="aload*",                                                GROUP="audio"
KERNEL="amidi*",                                                GROUP="audio"
KERNEL="audio",       NAME="sound/audio",       SYMLINK="%k",   GROUP="audio"
KERNEL="audio*",      NAME="sound/audio%n",     SYMLINK="%k",   GROUP="audio"
KERNEL="beep",                                                  GROUP="audio"
KERNEL="dmfm*",                                                 GROUP="audio"
KERNEL="dmmidi*",                                               GROUP="audio"
KERNEL="dsp",         NAME="sound/dsp",         SYMLINK="%k",   GROUP="audio"
KERNEL="dsp*",        NAME="sound/dsp%n"        SYMLINK="%k",   GROUP="audio"
KERNEL="midi*",                                                 GROUP="audio"
KERNEL="mixer",       NAME="sound/mixer",       SYMLINK="%k",   GROUP="audio"
KERNEL="mixer*",      NAME="sound/mixer",       SYMLINK="%k",   GROUP="audio"
KERNEL="sequencer*",  NAME="sound/sequencer%n,  SYMLINK="%k"    GROUP="audio"
KERNEL="sequencer",   NAME="sound/sequencer",   SYMLINK="%k",   GROUP="audio"
KERNEL="snd/*",                                                 GROUP="audio"
KERNEL="sndstat",                                               GROUP="audio"
KERNEL="sound/*",                                               GROUP="audio"


# pilot / palm
KERNEL="pilot",  GROUP="uucp"


# jaz devices
KERNEL="jaz*",  GROUP="disk"


# zip devices
KERNEL="zip*",        GROUP="disk"
KERNEL="pocketzip*",  GROUP="disk"


# ls120 devices
KERNEL="ls120",   GROUP="disk"
KERNEL="ls120*",  GROUP="disk"


# lp devices
KERNEL="irlpt*",    GROUP="lp"
KERNEL="lp*",       GROUP="lp"
KERNEL="parport*",  GROUP="lp"
KERNEL="usb/lp*",   GROUP="lp"
KERNEL="usblp*",    GROUP="lp"


# scanner devices
KERNEL="scanner",                     MODE="0600"
KERNEL="usb/scanner*",  GROUP="usb",  MODE="0600"


# camera devices
KERNEL="camera*",                    MODE="0600"
KERNEL="usb/dc2xx*",   GROUP="usb",  MODE="0600"
KERNEL="usb/mdc800*",  GROUP="usb",  MODE="0600"


# raw devices
KERNEL="raw/*",  GROUP="disk"


# ram devices
KERNEL="ram",       NAME="rd/0",   SYMLINK="%k",  GROUP="disk"
KERNEL="ram[0-9]*", NAME="rd/%n",  SYMLINK="%k",  GROUP="disk"


# disk devices
BUS="ide",  KERNEL="hd[a-z]",  SYSFS{removable}="1", PROGRAM="/etc/udev/scripts.d/ide-devfs.sh %k %b %n",  NAME="%k", SYMLINK="%c{1} %c{2}", GROUP="cdrom"
BUS="ide",  KERNEL="hd*",                            PROGRAM="/etc/udev/scripts.d/ide-devfs.sh %k %b %n",  NAME="%k", SYMLINK="%c{1} %c{2}", GROUP="disk"

BUS="scsi", KERNEL="sr*", SYSFS{type}="5", PROGRAM="/etc/udev/scripts.d/scsi-devfs.sh sr %b %n", NAME="%c{1}", SYMLINK="%c{2} %k %c{3} %c{4}", GROUP="cdrom"
BUS="scsi", KERNEL="sg*", SYSFS{type}="5", PROGRAM="/etc/udev/scripts.d/scsi-devfs.sh sg %b %n", NAME="%c{1}", SYMLINK="%c{2} %k %c{3} %c{4}", GROUP="cdrom"
## IAC, scsi devices are disks ##
BUS="scsi", KERNEL="sd*", PROGRAM="/etc/udev/scripts.d/scsi-devfs.sh sd %b %n", NAME="%c{1}", SYMLINK="%c{2} %k %c{3} %c{4}", GROUP="disk"
BUS="scsi", KERNEL="sr*", PROGRAM="/etc/udev/scripts.d/scsi-devfs.sh sr %b %n", NAME="%c{1}", SYMLINK="%c{2} %k %c{3} %c{4}", GROUP="disk"
BUS="scsi", KERNEL="st*", PROGRAM="/etc/udev/scripts.d/scsi-devfs.sh st %b %n", NAME="%c{1}", SYMLINK="%c{2} %k %c{3} %c{4}", GROUP="disk"
BUS="scsi", KERNEL="sg*", PROGRAM="/etc/udev/scripts.d/scsi-devfs.sh sg %b %n", NAME="%c{1}", SYMLINK="%c{2} %k %c{3} %c{4}", GROUP="disk"

KERNEL="dasd*",          GROUP="disk"
KERNEL="discs/*/*",      GROUP="disk"
KERNEL="ide/*/*/*/*/*",  GROUP="disk"
KERNEL="ataraid*",       GROUP="disk"
KERNEL="pg*",            GROUP="disk"


# loop devices
KERNEL="loop",        NAME="loop/0",   SYMLINK="%k",  GROUP="disk"
KERNEL="loop[0-9]*",  NAME="loop/%n",  SYMLINK="%k",  GROUP="disk"
KERNEL="loop/*",                                      GROUP="disk"

# optical devices
KERNEL="cdrom*",    GROUP="cdrom"
KERNEL="cdroms/*",  GROUP="cdrom "
KERNEL="cdwriter",  GROUP="cdrom"
KERNEL="sr*",       GROUP="cdrom"
KERNEL="dvd",       GROUP="cdrom"
KERNEL="rdvd",      GROUP="cdrom"
KERNEL="pcd*",      GROUP="cdrom"
KERNEL="scd*",      GROUP="cdrom"


# md block devices
KERNEL="md[0-9]*",  NAME="md/%n",  SYMLINK="%k",  GROUP="disk"
KERNEL="md/*",                                    GROUP="disk"


# tape
KERNEL="nht*",      GROUP="tape"
KERNEL="npt*",      GROUP="tape"
KERNEL="nst*",      GROUP="tape"
KERNEL="pt[0-9]*",  GROUP="tape"
KERNEL="st*",       GROUP="tape"
KERNEL="ht*",       GROUP="tape"


# dm devioes
KERNEL="dm-[0-9]*", PROGRAM="/sbin/devmap_name %M %m", NAME="%k", SYMLINK="%c",  MODE="0640"


# memstick
KERNEL="memstick*", MODE="0600"


# flash devices
KERNEL="flash*", MODE="0600"


# diskonkey devices
KERNEL="diskonkey*",  GROUP="disk"


# fb devices
KERNEL="fb[0-9]*", NAME="fb/%n", SYMLINK="%k", MODE="0600"
KERNEL="fb/*",                                 MODE="0600"


# v4l devices
KERNEL="v4l/*",                            GROUP="video"
KERNEL="video[0-9]*", NAME="v4l/video%n",  GROUP="video"
KERNEL="video/*",                          GROUP="video"
KERNEL="vttuner",                          GROUP="video"
KERNEL="vtx[0-9]*",   NAME="v4l/vtx%n",    GROUP="video"
KERNEL="vtx*",                             GROUP="video"
KERNEL="winradio*",                        GROUP="video"
KERNEL="radio[0-9]*", NAME="v4l/radio%n",  GROUP="video"
KERNEL="vbi[0-9]*",   NAME="v4l/vbi%n",    GROUP="video"
KERNEL="vbi*",                             GROUP="video"


# input devices
KERNEL="input/*",  MODE="644"


# gpm devices
KERNEL="gpmctl",  MODE="0700"


# dri devices
KERNEL="3dfx*",                                      GROUP="video"
KERNEL="agpgart",  NAME="misc/%k",     SYMLINK="%k", GROUP="video"
KERNEL="card*",    NAME="dri/card%n",                GROUP="video" 
KERNEL="nvidia*",                                    GROUP="video"
KERNEL="dri/*",                                      GROUP="video"


# mainboard devices
KERNEL="apm_bios",                                 MODE="0600"
KERNEL="i2c-[0-9]*",  NAME="i2c/%n", SYMLINK="%k"


# serial + dialup devices
KERNEL="ts*", NAME="input/%k"
#KERNEL="ippp*"
#KERNEL="ircomm*"
#KERNEL="isdn*"
#KERNEL="isdnctrl*"
#KERNEL="tts/[0-9]*"
#KERNEL="capi*"
#KERNEL="dcbri*"
#KERNEL="rootS*"


# usb
KERNEL="auer*",          NAME="usb/%k",  GROUP="usb"
KERNEL="dabusb*",        NAME="usb/%k",  GROUP="usb"
KERNEL="hiddev*",        NAME="usb/%k",  GROUP="usb"
KERNEL="legousbtower*",	 NAME="usb/%k",  GROUP="usb"
KERNEL="ttyUSB[0-9]*",   NAME="usb/%k",  GROUP="usb"      
KERNEL="scanner[0-9]*",  NAME="usb/%k",  GROUP="usb"
KERNEL="tts/USB[0-9]*",                  GROUP="usb"
KERNEL="usb/*",                          GROUP="usb"


# input
KERNEL="djs*",	   NAME="input/%k"
KERNEL="event*",   NAME="input/%k"
KERNEL="js*",	   NAME="input/%k"
KERNEL="kbd",	   NAME="input/%k"
KERNEL="psaux",    NAME="misc/%k",   SYMLINK="%k"
KERNEL="mice",	   NAME="input/%k",  SYMLINK="%k"
KERNEL="mouse*",   NAME="input/%k"
KERNEL="uinput",   NAME="misc/%k",   SYMLINK="%k"

Index: BUILD
===================================================================
RCS file: /var/cvs/lunar/moonbase/filesys/udev/BUILD,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- BUILD	14 Jan 2005 23:14:35 -0000	1.14
+++ BUILD	12 Feb 2005 19:02:08 -0000	1.15
@@ -1,8 +1,4 @@
 (
-
-    patch_it $SOURCE2 1  &&
-    patch_it $SOURCE3 0  &&
-  
     make udevdir=/dev          &&
     prepare_install            &&
     make udevdir=/dev install  &&
@@ -13,10 +9,8 @@
     # and would interfere with boot/{reboot,halt}
     install ${SCRIPT_DIRECTORY}/udev /etc/init.d/   		&&
 
-    UDEV_ETC_DIR=/etc/udev/					&&
-    mkdir -p ${UDEV_ETC_DIR}/scripts.d				&&
-    install 99-udev.permissions ${UDEV_ETC_DIR}/permissions.d/  &&
-    install 99-udev.rules       ${UDEV_ETC_DIR}/rules.d/  	&&
-    install scripts.d/*         ${UDEV_ETC_DIR}/scripts.d/
-
+    install ${SCRIPT_DIRECTORY}/49-udev.rules  /etc/udev/rules.d/      &&
+    mkdir -p /etc/udev/scripts.d/                         
+    install  extras/{ide-devfs.sh,scsi-devfs.sh} /etc/udev/scripts.d/
+     
 ) > $C_FIFO 2>&1

Index: DETAILS
===================================================================
RCS file: /var/cvs/lunar/moonbase/filesys/udev/DETAILS,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -d -r1.48 -r1.49
--- DETAILS	14 Jan 2005 22:37:42 -0000	1.48
+++ DETAILS	12 Feb 2005 19:02:09 -0000	1.49
@@ -1,17 +1,11 @@
           MODULE=udev
-         VERSION=050
+         VERSION=051
           SOURCE=$MODULE-$VERSION.tar.bz2
-         SOURCE2=$MODULE-defaults-3.patch.bz2
-         SOURCE3=udev.conf.0660_perms.patch
       SOURCE_URL=http://www.kernel.org/pub/linux/utils/kernel/hotplug/
-     SOURCE2_URL=$PATCH_URL/
-     SOURCE3_URL=$PATCH_URL/
-      SOURCE_VFY=sha1:d67c93d55f37d70bbc1e3715b3b52179ba6a3e71
-     SOURCE2_VFY=sha1:634f80608b8f58510fe9f8bbaa517fa8786fee6f
-     SOURCE3_VFY=sha1:5e8d91b4a583ed9873638e8c2099cea7d0b92ccf
+      SOURCE_VFY=sha1:336e9ed6ee43e3ae4d4867a47086e40507989386
         WEB_SITE=http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
          ENTERED=20040104
-         UPDATED=20041221
+         UPDATED=20050212
            PSAFE=no
            SHORT="Device naming from userspace for 2.6+ kernels"
 cat << EOF



More information about the Lunar-commits mailing list