[Lunar-commits] CVS: moonbase/filesys/devfsd BUILD, NONE, 1.1 DETAILS, NONE, 1.1 POST_INSTALL, NONE, 1.1 devfsd.conf, NONE, 1.1

Auke Kok sofar at lunar-linux.org
Sat Jan 3 21:50:02 GMT 2004


Update of /var/cvs/lunar/moonbase/filesys/devfsd
In directory dbguin.lunar-linux.org:/tmp/cvs-serv19727/devfsd

Added Files:
	BUILD DETAILS POST_INSTALL devfsd.conf 
Log Message:
Moving into filesys


--- NEW FILE: BUILD ---
(

  sedit "s/\/usr\/man/\/usr\/share\/man/" GNUmakefile

  make							&&
  prepare_install					&&
  make install						&&

  cp -f $SCRIPT_DIRECTORY/init.d/devfsd /etc/init.d/	&&
  chmod 700 /etc/init.d/devfsd				&&

  cp $SCRIPT_DIRECTORY/devfsd.conf /etc/devfsd.conf

) > $C_FIFO 2>&1

--- NEW FILE: DETAILS ---
          MODULE=devfsd
         VERSION=1.3.25
          SOURCE=$MODULE-v$VERSION.tar.gz
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE
   SOURCE_URL[0]=ftp://ftp.atnf.csiro.au/pub/people/rgooch/linux/daemons/$MODULE/$SOURCE
   SOURCE_URL[1]=ftp://ftp.ras.ucalgary.ca/pub/people/rgooch/linux/daemons/$MODULE/$SOURCE
        WEB_SITE=http://www.atnf.csiro.au/people/rgooch/linux/
         ENTERED=20020810
         UPDATED=20020810
           SHORT="A userspace tool to aid the linux device filesystem"
cat << EOF
Devfsd provides configurable management of device nodes using the Linux Device Filesystem.
EOF

--- NEW FILE: POST_INSTALL ---
if [ ! -e "/etc/rc6.d/K98devfsd" ]; then
   ln -s /etc/init.d/devfsd /etc/rc6.d/K98devfsd
fi

--- NEW FILE: devfsd.conf ---
# Sample /etc/devfsd.conf configuration file.
# Richard Gooch  <rgooch at atnf.csiro.au>		17-FEB-2002
#
# Enable full compatibility mode for old device names. You may comment these
# out if you don't use the old device names. Make sure you know what you're
# doing!
REGISTER	.*		MKOLDCOMPAT
UNREGISTER	.*		RMOLDCOMPAT

# You may comment out the above and uncomment the following if you've
# configured your system to use the original "new" devfs names or the really
# new names
REGISTER	^vc/		MKOLDCOMPAT
UNREGISTER	^vc/		RMOLDCOMPAT
#REGISTER	^pty/		MKOLDCOMPAT
#UNREGISTER	^pty/		RMOLDCOMPAT
REGISTER	^misc/		MKOLDCOMPAT
UNREGISTER	^misc/		RMOLDCOMPAT

# You may comment these out if you don't use the original "new" names
REGISTER	.*		MKNEWCOMPAT
UNREGISTER	.*		RMNEWCOMPAT

# Enable module autoloading. You may comment this out if you don't use
# autoloading
LOOKUP		.*		MODLOAD

# Uncomment the following if you want to set the group to "tty" for the
# pseudo-tty devices. This is necessary so that mesg(1) can later be used to
# enable/disable talk requests and wall(1) messages.
REGISTER	^pty/s.*	PERMISSIONS	-1.tty	0600
REGISTER	^pts/.*		PERMISSIONS	-1.tty	0600


# Lunar Groups
REGISTER	^sound/*	PERMISSIONS	root.audio	0770
REGISTER	^cdrom*		PERMISSIONS	root.cdrom	0775
REGISTER	^v4l/*		PERMISSIONS	root.video	0770
REGISTER	^fd*		PERMISSIONS	root.floppy	0775
#REGISTER	^hd*		PERMISSIONS	root.disk	0770
REGISTER	^fb/*		PERMISSIONS	root.video	0770

# ALSA/OSS stuff
# Comment/change these if you want to change the permissions on the audio devices
LOOKUP          snd             MODLOAD ACTION  snd
LOOKUP          dsp             MODLOAD
LOOKUP          mixer           MODLOAD
LOOKUP          midi            MODLOAD
REGISTER        snd/.*          PERMISSIONS     root.audio      0770

# Added this line for ppp users
LOOKUP          ppp             MODLOAD

# Uncomment this if you want permissions to be saved and restored
# Do not do this for pseudo-terminal devices
#REGISTER	^pt[sy]		IGNORE
#CREATE		^pt[sy]		IGNORE
#CHANGE		^pt[sy]		IGNORE
#DELETE		^pt[sy]		IGNORE
#REGISTER	.*		COPY	/dev-state/$devname $devpath
#CREATE		.*		COPY	$devpath /dev-state/$devname
#CHANGE		.*		COPY	$devpath /dev-state/$devname
#DELETE		.*		CFUNCTION GLOBAL unlink /dev-state/$devname
#RESTORE	/dev

#
# Uncomment this if you want the old /dev/cdrom symlink
REGISTER	^cdroms/cdrom0$	CFUNCTION GLOBAL mksymlink $devname cdrom
UNREGISTER	^cdroms/cdrom0$	CFUNCTION GLOBAL unlink cdrom
# Uncomment this if you want the /dev/dvd symlink
#REGISTER        ^cdroms/cdrom0$ CFUNCTION GLOBAL mksymlink $devname dvd
#UNREGISTER      ^cdroms/cdrom0$ CFUNCTION GLOBAL unlink dvd

# Uncomment this to let PAM manage devfs
#REGISTER	.*		CFUNCTION /lib/security/pam_console_apply_devfsd.so pam_console_apply_single $devpath

# Create /dev/mouse
LOOKUP          ^mouse$         CFUNCTION GLOBAL mksymlink misc/psaux mouse
REGISTER        ^misc/psaux$    CFUNCTION GLOBAL mksymlink $devname mouse
UNREGISTER      ^misc/psaux$    CFUNCTION GLOBAL unlink mouse

# Uncomment this to manage USB mouse
REGISTER	^input/mouse0$	CFUNCTION GLOBAL mksymlink $devname usbmouse
UNREGISTER	^input/mouse0$	CFUNCTION GLOBAL unlink usbmouse
REGISTER	^input/mice$	CFUNCTION GLOBAL mksymlink $devname usbmouse
UNREGISTER	^input/mice$	CFUNCTION GLOBAL unlink usbmouse

# config for usb palm pilot
LOOKUP      ^pilot$      CFUNCTION GLOBAL mksymlink usb/tts/0 pilot0
LOOKUP      ^pilot$      CFUNCTION GLOBAL mksymlink usb/tts/1 pilot1
REGISTER    ^usb/tts/0$  CFUNCTION GLOBAL mksymlink $devname pilot0
REGISTER    ^usb/tts/1$  CFUNCTION GLOBAL mksymlink $devname pilot1
UNREGISTER  ^usb/tts/0$  CFUNCTION GLOBAL unlink pilot0
UNREGISTER  ^usb/tts/1$  CFUNCTION GLOBAL unlink pilot1
                                                                            
REGISTER        ^usb/tts/.*      PERMISSIONS root.root 0777
REGISTER        ^usb/tts         PERMISSIONS root.root 0777

# If you have removable media and want to force media revalidation when looking
# up new or old compatibility names, uncomment the following lines
# SCSI NEWCOMPAT  /dev/sd/* names
#LOOKUP		^(sd/c[0-9]+b[0-9]+t[0-9]+u[0-9]+)p[0-9]+$	EXECUTE /bin/dd if=$mntpnt/\1 of=/dev/null count=1
# SCSI OLDCOMPAT  /dev/sd?? names
#LOOKUP		^(sd[a-z]+)[0-9]+$	EXECUTE /bin/dd if=$mntpnt/\1 of=/dev/null count=1
# IDE NEWCOMPAT   /dev/ide/hd/* names
#LOOKUP		^(ide/hd/c[0-9]+b[0-9]+t[0-9]+u[0-9]+)p[0-9]+$	EXECUTE /bin/dd if=$mntpnt/\1 of=/dev/null count=1
# IDE OLDCOMPAT   /dev/hd?? names
#LOOKUP		^(hd[a-z])[0-9]+$	EXECUTE /bin/dd if=$mntpnt/\1 of=/dev/null count=1



More information about the Lunar-commits mailing list