summaryrefslogtreecommitdiffstats
path: root/udev
diff options
context:
space:
mode:
Diffstat (limited to 'udev')
-rw-r--r--udev/.footprint72
-rw-r--r--udev/.md5sum2
-rw-r--r--udev/Pkgfile29
-rw-r--r--udev/Pkgfile.old48
-rw-r--r--udev/start_udev37
5 files changed, 188 insertions, 0 deletions
diff --git a/udev/.footprint b/udev/.footprint
new file mode 100644
index 0000000..f24beb6
--- /dev/null
+++ b/udev/.footprint
@@ -0,0 +1,72 @@
+drwxr-xr-x root/root etc/
+drwxr-xr-x root/root etc/udev/
+drwxr-xr-x root/root etc/udev/rules.d/
+-rw-r--r-- root/root etc/udev/udev.conf
+drwxr-xr-x root/root lib/
+drwxr-xr-x root/root lib/firmware/
+lrwxrwxrwx root/root lib/libudev.so.0 -> libudev.so.0.9.3
+-rwxr-xr-x root/root lib/libudev.so.0.9.3
+drwxr-xr-x root/root lib/udev/
+-rwxr-xr-x root/root lib/udev/ata_id
+-rwxr-xr-x root/root lib/udev/cdrom_id
+-rwxr-xr-x root/root lib/udev/collect
+-rwxr-xr-x root/root lib/udev/create_floppy_devices
+drwxr-xr-x root/root lib/udev/devices/
+crw------- root/root lib/udev/devices/console (5, 1)
+crw------- root/root lib/udev/devices/kmsg (1, 11)
+crw-rw-rw- root/root lib/udev/devices/null (1, 3)
+drwxr-xr-x root/root lib/udev/devices/pts/
+drwxr-xr-x root/root lib/udev/devices/shm/
+crw-rw-rw- root/root lib/udev/devices/zero (1, 5)
+-rwxr-xr-x root/root lib/udev/edd_id
+-rwxr-xr-x root/root lib/udev/firmware
+-rwxr-xr-x root/root lib/udev/fstab_import
+-rwxr-xr-x root/root lib/udev/input_id
+-rwxr-xr-x root/root lib/udev/path_id
+-rw-r--r-- root/root lib/udev/rule_generator.functions
+drwxr-xr-x root/root lib/udev/rules.d/
+-rw-r--r-- root/root lib/udev/rules.d/50-firmware.rules
+-rw-r--r-- root/root lib/udev/rules.d/50-udev-default.rules
+-rw-r--r-- root/root lib/udev/rules.d/60-cdrom_id.rules
+-rw-r--r-- root/root lib/udev/rules.d/60-floppy.rules
+-rw-r--r-- root/root lib/udev/rules.d/60-persistent-alsa.rules
+-rw-r--r-- root/root lib/udev/rules.d/60-persistent-input.rules
+-rw-r--r-- root/root lib/udev/rules.d/60-persistent-serial.rules
+-rw-r--r-- root/root lib/udev/rules.d/60-persistent-storage-tape.rules
+-rw-r--r-- root/root lib/udev/rules.d/60-persistent-storage.rules
+-rw-r--r-- root/root lib/udev/rules.d/60-persistent-v4l.rules
+-rw-r--r-- root/root lib/udev/rules.d/61-persistent-storage-edd.rules
+-rw-r--r-- root/root lib/udev/rules.d/75-cd-aliases-generator.rules
+-rw-r--r-- root/root lib/udev/rules.d/75-persistent-net-generator.rules
+-rw-r--r-- root/root lib/udev/rules.d/79-fstab_import.rules
+-rw-r--r-- root/root lib/udev/rules.d/80-drivers.rules
+-rw-r--r-- root/root lib/udev/rules.d/95-udev-late.rules
+-rwxr-xr-x root/root lib/udev/scsi_id
+-rwxr-xr-x root/root lib/udev/usb_id
+-rwxr-xr-x root/root lib/udev/v4l_id
+-rwxr-xr-x root/root lib/udev/write_cd_rules
+-rwxr-xr-x root/root lib/udev/write_net_rules
+drwxr-xr-x root/root sbin/
+-rwxr-xr-x root/root sbin/start_udev
+-rwxr-xr-x root/root sbin/udevadm
+-rwxr-xr-x root/root sbin/udevd
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+lrwxrwxrwx root/root usr/bin/udevinfo -> /sbin/udevadm
+drwxr-xr-x root/root usr/include/
+-rw-r--r-- root/root usr/include/libudev.h
+drwxr-xr-x root/root usr/lib/
+-rwxr-xr-x root/root usr/lib/libudev.la
+lrwxrwxrwx root/root usr/lib/libudev.so -> ../../lib/libudev.so.0.9.3
+drwxr-xr-x root/root usr/lib/pkgconfig/
+-rw-r--r-- root/root usr/lib/pkgconfig/libudev.pc
+drwxr-xr-x root/root usr/man/
+drwxr-xr-x root/root usr/man/man7/
+-rw-r--r-- root/root usr/man/man7/udev.7.gz
+drwxr-xr-x root/root usr/man/man8/
+-rw-r--r-- root/root usr/man/man8/scsi_id.8.gz
+-rw-r--r-- root/root usr/man/man8/udevadm.8.gz
+-rw-r--r-- root/root usr/man/man8/udevd.8.gz
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/pkgconfig/
+-rw-r--r-- root/root usr/share/pkgconfig/udev.pc
diff --git a/udev/.md5sum b/udev/.md5sum
new file mode 100644
index 0000000..339ef95
--- /dev/null
+++ b/udev/.md5sum
@@ -0,0 +1,2 @@
+62d1d84e882cab3665139c9ebc0b9226 start_udev
+cd285a85f969518a671834de2f4d6614 udev-164.tar.bz2
diff --git a/udev/Pkgfile b/udev/Pkgfile
new file mode 100644
index 0000000..11a5faf
--- /dev/null
+++ b/udev/Pkgfile
@@ -0,0 +1,29 @@
+description="Userspace device management daemon"
+packager=""
+maintainer="CRUX System Team, core-ports at crux dot nu"
+url="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html"
+depends=()
+
+name=udev
+version=164
+release=2
+source=(ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/udev-164.tar.bz2 start_udev)
+build ()
+{
+ cd udev-$version;
+ ./configure --prefix=/usr --exec-prefix= --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/lib/udev --mandir=/usr/man --disable-extras --disable-introspection;
+ make;
+ make install DESTDIR=$PKG pkgconfigdir=/usr/lib/pkgconfig;
+ mkdir -p $PKG/lib/{firmware,udev/devices/{pts,shm}};
+ mkdir -p $PKG/lib;
+ mv $PKG/usr/lib/libudev.so.* $PKG/lib;
+ ln -sf ../../lib/$(readlink $PKG/usr/lib/libudev.so) $PKG/usr/lib/libudev.so;
+ mknod -m 600 $PKG/lib/udev/devices/console c 5 1;
+ mknod -m 600 $PKG/lib/udev/devices/kmsg c 1 11;
+ mknod -m 666 $PKG/lib/udev/devices/null c 1 3;
+ mknod -m 666 $PKG/lib/udev/devices/zero c 1 5;
+ install -m 0755 $SRC/start_udev $PKG/sbin;
+ mkdir -p $PKG/usr/bin;
+ ln -s /sbin/udevadm $PKG/usr/bin/udevinfo;
+ rm -rf $PKG/usr/share/{gtk-,}doc
+}
diff --git a/udev/Pkgfile.old b/udev/Pkgfile.old
new file mode 100644
index 0000000..6ae0cc0
--- /dev/null
+++ b/udev/Pkgfile.old
@@ -0,0 +1,48 @@
+# Description: Userspace device management daemon
+# URL: http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
+# Maintainer: CRUX System Team, core-ports at crux dot nu
+
+name=udev
+version=164
+release=2
+source=(ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/$name-$version.tar.bz2 \
+ start_udev)
+
+build() {
+ cd udev-$version
+
+ ./configure --prefix=/usr \
+ --exec-prefix= \
+ --sysconfdir=/etc \
+ --libdir=/usr/lib \
+ --libexecdir=/lib/udev \
+ --mandir=/usr/man \
+ --disable-extras \
+ --disable-introspection
+
+ make
+ make install DESTDIR=$PKG pkgconfigdir=/usr/lib/pkgconfig
+
+ mkdir -p $PKG/lib/{firmware,udev/devices/{pts,shm}}
+ mkdir -p $PKG/lib
+
+ # Fix location of libaries
+ mv $PKG/usr/lib/libudev.so.* $PKG/lib
+ ln -sf ../../lib/$(readlink $PKG/usr/lib/libudev.so) $PKG/usr/lib/libudev.so
+
+ # Populate nodes
+ mknod -m 600 $PKG/lib/udev/devices/console c 5 1
+ mknod -m 600 $PKG/lib/udev/devices/kmsg c 1 11
+ mknod -m 666 $PKG/lib/udev/devices/null c 1 3
+ mknod -m 666 $PKG/lib/udev/devices/zero c 1 5
+
+ # Add CRUX items
+ install -m 0755 $SRC/start_udev $PKG/sbin
+
+ # Keep udevinfo for legacy support
+ mkdir -p $PKG/usr/bin
+ ln -s /sbin/udevadm $PKG/usr/bin/udevinfo
+
+ # Remove junk
+ rm -rf $PKG/usr/share/{gtk-,}doc
+}
diff --git a/udev/start_udev b/udev/start_udev
new file mode 100644
index 0000000..111533f
--- /dev/null
+++ b/udev/start_udev
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+# mount /dev as a devtmpfs or tmpfs, depending on current kernel capability
+# mount only, if it's not already mounted (e.g. after handover from initramfs)
+# note: some video drivers require exec access in /dev
+if ! /bin/mountpoint -q /dev ; then
+ if ! /bin/sed -n '/devtmpfs/q1' /proc/filesystems ; then
+ UDEVFS=devtmpfs
+ else
+ UDEVFS=tmpfs
+ fi
+
+ /bin/mount -n -t $UDEVFS udev /dev -o exec,nosuid,mode=0755,size=8M
+
+ if [ $UDEVFS = "tmpfs" ]; then
+ /bin/cp -a /lib/udev/devices/{console,null,kmsg} /dev/
+ fi
+fi
+
+# make sure hotplugger is not set
+echo > /proc/sys/kernel/hotplug
+
+# since v155, udevd automatically copies /lib/udev/devices
+# and creates /proc/{kcore,self/fd/{0,1,2}} symlinks
+
+# launch udev daemon
+/sbin/udevd --daemon
+
+# coldplug devices and wait for the queue to be processed
+/sbin/udevadm trigger --type=subsystems --action=add
+/sbin/udevadm settle
+/sbin/udevadm trigger --type=devices --action=add
+/sbin/udevadm settle
+
+# retry any failures
+/sbin/udevadm trigger --type=failed --action=add
+/sbin/udevadm settle