2006-02-23 17:19:35 +00: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 17:19:35 +00:00
|
|
|
|
|
|
|
name=udev
|
2011-08-03 10:57:42 +02:00
|
|
|
version=173
|
2011-04-01 11:40:25 +02:00
|
|
|
release=1
|
2011-08-03 10:57:42 +02:00
|
|
|
source=(http://www.kernel.org/pub/linux/utils/kernel/hotplug/$name-$version.tar.bz2 \
|
2011-04-26 18:45:13 +02:00
|
|
|
start_udev)
|
2006-02-23 17:19:35 +00:00
|
|
|
|
|
|
|
build() {
|
2010-12-02 18:41:39 +01:00
|
|
|
cd udev-$version
|
|
|
|
|
|
|
|
./configure --prefix=/usr \
|
2011-02-20 15:25:41 +01:00
|
|
|
--sbindir=/sbin \
|
2010-12-02 18:41:39 +01:00
|
|
|
--sysconfdir=/etc \
|
2011-02-20 15:25:41 +01:00
|
|
|
--with-rootlibdir=/lib \
|
2010-12-02 18:41:39 +01:00
|
|
|
--libexecdir=/lib/udev \
|
|
|
|
--mandir=/usr/man \
|
2011-02-20 15:25:41 +01:00
|
|
|
--disable-introspection \
|
2011-05-24 10:04:04 +02:00
|
|
|
--disable-gudev \
|
|
|
|
--disable-udev_acl \
|
|
|
|
--disable-keymap \
|
2011-02-20 15:25:41 +01:00
|
|
|
--enable-static
|
2010-12-02 18:41:39 +01:00
|
|
|
|
|
|
|
make
|
2011-02-20 15:25:41 +01:00
|
|
|
make install DESTDIR=$PKG
|
2010-12-02 18:41:39 +01:00
|
|
|
|
|
|
|
mkdir -p $PKG/lib/{firmware,udev/devices/{pts,shm}}
|
|
|
|
mkdir -p $PKG/lib
|
|
|
|
|
|
|
|
# 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 17:19:35 +00:00
|
|
|
}
|