1 # Description: Userspace device management daemon
2 # URL: http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Arch Maintainer: CRUX ARM System Team, crux-arm at mikeux dot dyndns dot org
10 source=(ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/$name-$version.tar.bz2 \
11 http://crux.nu/files/distfiles/udev-config-20090523.tar.bz2 \
17 ./configure --build=$CHOST \
22 --libexecdir=/lib/udev \
25 --disable-introspection
28 make install DESTDIR=$PKG \
29 pkgconfigdir=/usr/lib/pkgconfig
31 mkdir -p $PKG/lib/{firmware,udev/devices/{pts,shm}}
34 # Fix location of devel lib
35 rm $PKG/lib/libudev.so
36 ln -sf ../../lib/libudev.so.0.5.1 $PKG/usr/lib/libudev.so
39 mknod -m 600 $PKG/lib/udev/devices/console c 5 1
40 mknod -m 666 $PKG/lib/udev/devices/null c 1 3
41 mknod -m 666 $PKG/lib/udev/devices/zero c 1 5
42 ln -s /proc/self/fd $PKG/lib/udev/devices/fd
43 ln -s /proc/self/fd/0 $PKG/lib/udev/devices/stdin
44 ln -s /proc/self/fd/1 $PKG/lib/udev/devices/stdout
45 ln -s /proc/self/fd/2 $PKG/lib/udev/devices/stderr
46 ln -s /proc/kcore $PKG/lib/udev/devices/core
48 # Add CRUX items + LFS rules
49 install -m 0755 $SRC/start_udev $PKG/sbin
51 pushd $SRC/udev-config-20090523
52 make DESTDIR=$PKG RULES_DIR=/lib/udev/rules.d install
55 # Keep udevinfo for legacy support
57 ln -s /sbin/udevadm $PKG/usr/bin/udevinfo
60 rm -rf $PKG/usr/share/{gtk-,}doc
61 rm $PKG/lib/libudev.la
63 # Fix location of devel lib
64 rm $PKG/lib/libudev.so
65 ln -sf ../../lib/libudev.so.0.5.1 $PKG/usr/lib/libudev.so