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-11-09 15:53:56 +01:00
|
|
|
version=175
|
2011-04-01 11:40:25 +02:00
|
|
|
release=1
|
2011-11-09 15:53:56 +01:00
|
|
|
source=(http://people.freedesktop.org/~kay/$name/$name-$version.tar.bz2 \
|
2011-10-24 18:50:46 +02:00
|
|
|
81-crux.rules 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 \
|
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}}
|
2011-10-24 18:50:46 +02:00
|
|
|
mkdir -p $PKG/{lib,sbin}
|
|
|
|
|
|
|
|
# Symlink to udevd
|
|
|
|
ln -s ../lib/udev/udevd $PKG/sbin/udevd
|
2010-12-02 18:41:39 +01:00
|
|
|
|
|
|
|
# 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
|
2011-10-24 18:50:46 +02:00
|
|
|
install -m 0644 $SRC/81-crux.rules $PKG/lib/udev/rules.d
|
2010-12-02 18:41:39 +01:00
|
|
|
|
|
|
|
# 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
|
|
|
}
|