we have to add our own rules file, which contains only one rules so far, because udev 174 comes without a rule for mounting the fusectl system. See http://tinyurl.com/3uabdln Adding the rule to the fuse port isn't a senseful option, because udev still has one rule for fuse. Well, I bet we have to do similar things more often in the future, because udev is going to be systemd centric.
52 lines
1.4 KiB
Plaintext
52 lines
1.4 KiB
Plaintext
# Description: Userspace device management daemon
|
|
# URL: http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
|
|
name=udev
|
|
version=174
|
|
release=1
|
|
source=(http://people.freedesktop.org/~kay/$name-$version.tar.bz2 \
|
|
81-crux.rules start_udev)
|
|
|
|
build() {
|
|
cd udev-$version
|
|
|
|
./configure --prefix=/usr \
|
|
--sbindir=/sbin \
|
|
--sysconfdir=/etc \
|
|
--with-rootlibdir=/lib \
|
|
--libexecdir=/lib/udev \
|
|
--mandir=/usr/man \
|
|
--disable-introspection \
|
|
--disable-gudev \
|
|
--disable-udev_acl \
|
|
--disable-keymap \
|
|
--enable-static
|
|
|
|
make
|
|
make install DESTDIR=$PKG
|
|
|
|
mkdir -p $PKG/lib/{firmware,udev/devices/{pts,shm}}
|
|
mkdir -p $PKG/{lib,sbin}
|
|
|
|
# Symlink to udevd
|
|
ln -s ../lib/udev/udevd $PKG/sbin/udevd
|
|
|
|
# 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
|
|
install -m 0644 $SRC/81-crux.rules $PKG/lib/udev/rules.d
|
|
|
|
# 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
|
|
}
|