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
|
2011-02-15 17:52:21 +01:00
|
|
|
version=166
|
2010-12-18 10:19:36 +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
|
|
|
start_udev)
|
2006-02-23 18:19:35 +01:00
|
|
|
|
|
|
|
build() {
|
2010-12-02 18:41:39 +01:00
|
|
|
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
|
2006-02-23 18:19:35 +01:00
|
|
|
}
|