%general-entities; ]> eudev &eudev-version;
&eudev-url;
Eudev-&eudev-version; Eudev <para>The Eudev package contains programs for dynamic creation of device nodes.</para> <segmentedlist> <segtitle>&buildtime;</segtitle> <segtitle>&diskspace;</segtitle> <seglistitem> <seg>&eudev-ch6-sbu;</seg> <seg>&eudev-ch6-du;</seg> </seglistitem> </segmentedlist> </sect2> <sect2 role="installation"> <title>Installation of Eudev First, clean up a few warnings and fix a test script: sed -i '/struct ucred/i struct ucred;' src/libudev/util.h sed -r -i 's|/usr(/bin/test)|\1|' test/udev-test.pl Prepare Eudev for compilation: BLKID_CFLAGS=-I/tools/include \ BLKID_LIBS='-L/tools/lib -lblkid' \ ./configure --prefix=/usr \ --bindir=/sbin \ --sbindir=/sbin \ --libdir=/usr/lib \ --sysconfdir=/etc \ --libexecdir=/lib \ --with-rootprefix= \ --with-rootlibdir=/lib \ --enable-split-usr \ --enable-libkmod \ --enable-rule_generator \ --disable-introspection \ --disable-keymap \ --disable-gudev \ --disable-gtk-doc-html \ --with-firmware-path=/lib/firmware Compile the package: make Create some directories now that are needed for tests, but will also be used as a part of installation: mkdir -pv /lib/{firmware,udev/devices/pts} mkdir -pv /lib/udev/rules.d mkdir -pv /etc/udev/rules.d To test the results, run issue: make check Install the package: make install Now, install the man pages: tar -xvf ../eudev-&eudev-version;-manpages.tar.bz2 -C /usr/share Finally, create some custom rules that are not covered as a part of the defaults: cat > /etc/udev/rules.d/55-lfs.rules << "EOF" # /etc/udev/rules.d/55-lfs.rules: Rule definitions for LFS. # Core kernel devices # This causes the system clock to be set as soon as /dev/rtc becomes available. SUBSYSTEM=="rtc", ACTION=="add", MODE="0644", RUN+="/etc/rc.d/init.d/setclock start" KERNEL=="rtc", ACTION=="add", MODE="0644", RUN+="/etc/rc.d/init.d/setclock start" # Comms devices KERNEL=="ippp[0-9]*", GROUP="dialout" KERNEL=="isdn[0-9]*", GROUP="dialout" KERNEL=="isdnctrl[0-9]*", GROUP="dialout" KERNEL=="dcbri[0-9]*", GROUP="dialout" EOF Contents of Eudev Installed programs Installed libraries Installed directories udevadm and udevd libudev.so /etc/udev, /lib/udev, and /lib/firmware Short Descriptions udevadm Generic udev administration tool: controls the udevd daemon, provides info from the Udev database, monitors uevents, waits for uevents to finish, tests Udev configuration, and triggers uevents for a given device udevadm udevd A daemon that listens for uevents on the netlink socket, creates devices and runs the configured external programs in response to these uevents udevd libudev A library interface to udev device information libudev /etc/udev Contains Udev configuration files, device permissions, and rules for device naming /etc/udev