CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
udev: initial import (we need to overlay udev 141 for omap850 devices) 2.8
authorJose V Beneyto <sepen@crux.nu>
Mon, 29 Oct 2012 18:16:19 +0000 (18:16 +0000)
committerJose V Beneyto <sepen@crux.nu>
Mon, 29 Oct 2012 18:16:19 +0000 (18:16 +0000)
udev/.footprint [new file with mode: 0644]
udev/.md5sum [new file with mode: 0644]
udev/Pkgfile [new file with mode: 0644]
udev/glibc-2.16.patch [new file with mode: 0644]
udev/start_udev [new file with mode: 0644]

diff --git a/udev/.footprint b/udev/.footprint
new file mode 100644 (file)
index 0000000..6242dbd
--- /dev/null
@@ -0,0 +1,87 @@
+drwxr-xr-x     root/root       etc/
+-rw-r--r--     root/root       etc/scsi_id.config
+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.2.0
+-rwxr-xr-x     root/root       lib/libudev.so.0.2.0
+lrwxrwxrwx     root/root       lib/libvolume_id.so.1 -> libvolume_id.so.1.1.0
+-rwxr-xr-x     root/root       lib/libvolume_id.so.1.1.0
+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)
+lrwxrwxrwx     root/root       lib/udev/devices/core -> /proc/kcore
+lrwxrwxrwx     root/root       lib/udev/devices/fd -> /proc/self/fd
+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/
+lrwxrwxrwx     root/root       lib/udev/devices/stderr -> /proc/self/fd/2
+lrwxrwxrwx     root/root       lib/udev/devices/stdin -> /proc/self/fd/0
+lrwxrwxrwx     root/root       lib/udev/devices/stdout -> /proc/self/fd/1
+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.sh
+-rwxr-xr-x     root/root       lib/udev/fstab_import
+-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/40-alsa.rules
+-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/55-lfs.rules
+-rw-r--r--     root/root       lib/udev/rules.d/60-cdrom_id.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-cdrom.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/vol_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/
+lrwxrwxrwx     root/root       sbin/scsi_id -> ../lib/udev/scsi_id
+-rwxr-xr-x     root/root       sbin/start_udev
+-rwxr-xr-x     root/root       sbin/udevadm
+-rwxr-xr-x     root/root       sbin/udevd
+lrwxrwxrwx     root/root       sbin/vol_id -> ../lib/udev/vol_id
+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
+-rw-r--r--     root/root       usr/include/libvolume_id.h
+drwxr-xr-x     root/root       usr/lib/
+lrwxrwxrwx     root/root       usr/lib/libudev.so -> ../../lib/libudev.so.0.2.0
+lrwxrwxrwx     root/root       usr/lib/libvolume_id.so -> ../../lib/libvolume_id.so.1.1.0
+drwxr-xr-x     root/root       usr/lib/pkgconfig/
+-rw-r--r--     root/root       usr/lib/pkgconfig/libudev.pc
+-rw-r--r--     root/root       usr/lib/pkgconfig/libvolume_id.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/ata_id.8.gz
+-rw-r--r--     root/root       usr/man/man8/cdrom_id.8.gz
+-rw-r--r--     root/root       usr/man/man8/create_floppy_devices.8.gz
+-rw-r--r--     root/root       usr/man/man8/edd_id.8.gz
+-rw-r--r--     root/root       usr/man/man8/path_id.8.gz
+-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
+-rw-r--r--     root/root       usr/man/man8/usb_id.8.gz
+-rw-r--r--     root/root       usr/man/man8/vol_id.8.gz
diff --git a/udev/.md5sum b/udev/.md5sum
new file mode 100644 (file)
index 0000000..0f7d82f
--- /dev/null
@@ -0,0 +1,4 @@
+b77aadceabaee88ebcc4a95b1f37406e  glibc-2.16.patch
+f27ca9ef668bcf7561717e7543d06f4c  start_udev
+1670fe81cabf5161319c52084cf81134  udev-141.tar.bz2
+54a23553332b0f1aa6366f884cd4799e  udev-config-20081015.tar.bz2
diff --git a/udev/Pkgfile b/udev/Pkgfile
new file mode 100644 (file)
index 0000000..92abaa6
--- /dev/null
@@ -0,0 +1,62 @@
+# 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
+# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
+# Depends on:
+
+name=udev
+version=141
+release=1
+source=(http://crux-arm.nu/files/distfiles/$name-$version.tar.bz2 \
+        http://crux.nu/files/distfiles/udev-config-20081015.tar.bz2 \
+        start_udev glibc-2.16.patch)
+
+build() {
+  cd udev-$version
+
+  patch -p1 -i $SRC/glibc-2.16.patch
+
+  ./configure --build=$CHOST \
+              --host=$CTARGET \
+              --prefix=/usr \
+              --exec-prefix= \
+              --sysconfdir=/etc \
+              --mandir=/usr/man
+
+  make V=1
+  make install DESTDIR=$PKG
+
+  # scsi_id + vol_id need to be multi-path
+  (cd $PKG/sbin; ln -s ../lib/udev/vol_id vol_id)
+  (cd $PKG/sbin; ln -s ../lib/udev/scsi_id scsi_id)
+
+  mkdir -p $PKG/lib/{firmware,udev/devices/{pts,shm}}
+
+  # Populate nodes
+  mknod -m 600 $PKG/lib/udev/devices/console c 5 1
+  mknod -m 666 $PKG/lib/udev/devices/null c 1 3
+  mknod -m 666 $PKG/lib/udev/devices/zero c 1 5
+  ln -s /proc/self/fd $PKG/lib/udev/devices/fd
+  ln -s /proc/self/fd/0 $PKG/lib/udev/devices/stdin
+  ln -s /proc/self/fd/1 $PKG/lib/udev/devices/stdout
+  ln -s /proc/self/fd/2 $PKG/lib/udev/devices/stderr
+  ln -s /proc/kcore $PKG/lib/udev/devices/core
+
+  # Install some upstream rules
+  cp -a rules/packages/40-alsa.rules $PKG/lib/udev/rules.d/
+
+  # Add CRUX items + LFS rules
+  install -m 0755 $SRC/start_udev $PKG/sbin
+
+  pushd $SRC/udev-config-20081015
+  make DESTDIR=$PKG RULES_DIR=/lib/udev/rules.d install
+  popd
+
+  # Comment uucp lines in default rules
+  sed -i 's|.*uucp.*|#&|g' $PKG/lib/udev/rules.d/50-udev-default.rules
+  sed -i 's|.*uucp.*|#&|g' $PKG/lib/udev/rules.d/55-lfs.rules
+
+  # Keep udevinfo for legacy support
+  mkdir -p $PKG/usr/bin
+  ln -s /sbin/udevadm $PKG/usr/bin/udevinfo
+}
diff --git a/udev/glibc-2.16.patch b/udev/glibc-2.16.patch
new file mode 100644 (file)
index 0000000..56eb3dc
--- /dev/null
@@ -0,0 +1,12 @@
+diff -purN udev-141.orig/udev/udevd.c udev-141/udev/udevd.c
+--- udev-141.orig/udev/udevd.c 2012-10-29 09:44:47.000000000 +0000
++++ udev-141/udev/udevd.c      2012-10-29 09:47:35.000000000 +0000
+@@ -38,7 +38,7 @@
+ #ifdef HAVE_INOTIFY
+ #include <sys/inotify.h>
+ #endif
+-
++#include <sys/resource.h>
+ #include "udev.h"
+ #define UDEVD_PRIORITY                        -4
diff --git a/udev/start_udev b/udev/start_udev
new file mode 100644 (file)
index 0000000..1be7ce9
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+# mount /dev as a tmpfs; note: some video drivers require exec access in /dev
+/bin/mount -n -t tmpfs udev /dev -o exec,nosuid,mode=0755
+
+# unset hotplugger
+echo > /proc/sys/kernel/hotplug
+
+# populate /dev with static nodes and directories
+/bin/cp -a /lib/udev/devices/* /dev/
+
+# launch udev daemon
+/sbin/udevd --daemon
+
+# coldplug devices and wait for the queue to be processed
+/sbin/udevadm trigger
+/sbin/udevadm settle