summaryrefslogtreecommitdiff
path: root/udev
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2004-04-30 20:51:35 +0000
committerMichael Lauer <mickey@vanille-media.de>2004-04-30 20:51:35 +0000
commit4e16c20420135a3e5b7be3d12fa67ec8c16bbd84 (patch)
tree9282b781bb4ac703d61f09a126f8f73b7e1ff556 /udev
parentb8267192aef35b6121eea2921432e920a8e194d6 (diff)
add support for udev-as-/dev - patch courtesy pb_.
BKrev: 4092bc57gZmk3T-bcbI5MrklT_kypA
Diffstat (limited to 'udev')
-rw-r--r--udev/udev-024/sh-not-bash.patch0
-rw-r--r--udev/udev_024.oe33
2 files changed, 33 insertions, 0 deletions
diff --git a/udev/udev-024/sh-not-bash.patch b/udev/udev-024/sh-not-bash.patch
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/udev/udev-024/sh-not-bash.patch
diff --git a/udev/udev_024.oe b/udev/udev_024.oe
index e69de29bb2..94bf4eb9ef 100644
--- a/udev/udev_024.oe
+++ b/udev/udev_024.oe
@@ -0,0 +1,33 @@
+DEPENDS = "virtual/libc"
+DESCRIPTION = " udev is a program which dynamically creates and removes device nodes from \
+/dev/. It responds to /sbin/hotplug device events and requires a 2.6 kernel."
+
+SRC_URI = "http://kernel.org/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
+ file://${FILESDIR}/flags.patch;patch=1 \
+ file://${FILESDIR}/sh-not-bash.patch;patch=1"
+
+bindir = "/bin"
+sbindir = "/sbin"
+libdir = "/lib"
+udevdir ?= "/udev"
+
+EXTRA_OEMAKE_append = " 'prefix=${prefix}' \
+ 'udevdir=${udevdir}' \
+ 'exec_prefix=${prefix}' \
+ 'etcdir=${sysconfdir}' \
+ 'sbindir=${sbindir}' \
+ 'mandir=${mandir}' \
+ 'hotplugdir=${sysconfdir}/hotplug.d/default' \
+ 'configdir=${sysconfdir}/udev/'"
+export LD = "${CC}"
+
+do_install () {
+ oe_runmake 'DESTDIR=${D}' install
+ if [ "${udevdir}" == "/dev" ]; then
+ install -m 0755 ${S}/extras/start_udev ${D}/etc/init.d/start_udev
+ install -d ${D}/etc/rcS.d
+ ln -s /etc/init.d/start/dev ${D}/etc/rcS.d/S37start_udev
+ else
+ chmod 0755 ${D}/etc/init.d/udev
+ fi
+}