2006-02-23 18:19:35 +01:00
|
|
|
# Description: Userspace device management daemon
|
|
|
|
# URL: http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
|
2007-09-30 17:59:20 +02:00
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
2006-02-23 18:19:35 +01:00
|
|
|
|
|
|
|
name=udev
|
2010-10-08 18:55:26 +02:00
|
|
|
version=163
|
2010-01-09 15:56:30 +01:00
|
|
|
release=1
|
2007-09-30 17:59:20 +02:00
|
|
|
source=(ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/$name-$version.tar.bz2 \
|
2010-05-23 16:29:45 +02:00
|
|
|
http://crux.nu/files/distfiles/udev-config-20090523.tar.bz2 \
|
|
|
|
start_udev)
|
2006-02-23 18:19:35 +01:00
|
|
|
|
|
|
|
build() {
|
2006-09-05 21:48:14 +02:00
|
|
|
cd udev-$version
|
2007-09-30 17:59:20 +02:00
|
|
|
|
2008-12-05 21:51:41 +01:00
|
|
|
./configure --prefix=/usr --exec-prefix= --sysconfdir=/etc \
|
2009-07-18 16:54:15 +02:00
|
|
|
--libexecdir=/lib/udev --mandir=/usr/man \
|
2009-12-14 20:13:45 +01:00
|
|
|
--disable-extras --disable-introspection
|
2008-08-09 08:38:18 +02:00
|
|
|
|
2008-12-05 21:51:41 +01:00
|
|
|
make
|
2009-08-25 20:35:46 +02:00
|
|
|
make install DESTDIR=$PKG \
|
|
|
|
pkgconfigdir=/usr/lib/pkgconfig
|
2007-09-30 17:59:20 +02:00
|
|
|
|
2006-08-03 15:43:56 +02:00
|
|
|
mkdir -p $PKG/lib/{firmware,udev/devices/{pts,shm}}
|
2009-08-25 20:15:54 +02:00
|
|
|
mkdir -p $PKG/usr/lib
|
|
|
|
|
|
|
|
# Fix location of devel lib
|
|
|
|
rm $PKG/lib/libudev.so
|
2010-09-02 11:06:50 +02:00
|
|
|
ln -sf ../../lib/libudev.so.0.9.1 $PKG/usr/lib/libudev.so
|
2008-12-05 21:51:41 +01:00
|
|
|
|
|
|
|
# Populate nodes
|
2006-08-03 15:43:56 +02:00
|
|
|
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
|
2008-12-05 21:51:41 +01:00
|
|
|
|
|
|
|
# Add CRUX items + LFS rules
|
2006-08-03 15:43:56 +02:00
|
|
|
install -m 0755 $SRC/start_udev $PKG/sbin
|
2008-12-05 21:51:41 +01:00
|
|
|
|
2009-06-05 14:10:27 +02:00
|
|
|
pushd $SRC/udev-config-20090523
|
2008-12-05 21:51:41 +01:00
|
|
|
make DESTDIR=$PKG RULES_DIR=/lib/udev/rules.d install
|
|
|
|
popd
|
2007-09-30 17:59:20 +02:00
|
|
|
|
2008-08-26 21:45:54 +02:00
|
|
|
# Keep udevinfo for legacy support
|
|
|
|
mkdir -p $PKG/usr/bin
|
|
|
|
ln -s /sbin/udevadm $PKG/usr/bin/udevinfo
|
2009-07-18 16:54:15 +02:00
|
|
|
|
|
|
|
# Remove junk
|
|
|
|
rm -rf $PKG/usr/share/{gtk-,}doc
|
|
|
|
rm $PKG/lib/libudev.la
|
2006-02-23 18:19:35 +01:00
|
|
|
}
|