2011-12-01 15:17:22 +04:00
The options used used usually look like:
%configure \
2009-06-17 04:25:07 +04:00
--prefix=/usr \
--sysconfdir=/etc \
2011-12-01 15:17:22 +04:00
--bindir=/usr/bin \
2009-06-17 04:25:07 +04:00
--libdir=/usr/lib64 \
2011-12-01 15:17:22 +04:00
--libexecdir=/usr/lib/udev \
--with-systemdsystemunitdir=/usr/lib/systemd/system \
2008-07-30 15:57:51 +04:00
--with-selinux
2008-07-30 03:45:23 +04:00
2011-12-01 15:17:22 +04:00
The options used in a RPM spec file look like:
2009-06-17 04:25:07 +04:00
%configure \
--prefix=%{_prefix} \
--sysconfdir=%{_sysconfdir} \
2011-12-01 15:17:22 +04:00
--bindir=%{_bindir} \
2009-06-17 04:25:07 +04:00
--libdir=%{_libdir} \
2011-12-01 15:17:22 +04:00
--libexecdir=%{_prefix}/lib/udev \
--with-systemdsystemunitdir=%{_prefix}/lib/systemd/system \
2009-06-17 04:25:07 +04:00
--with-selinux
2008-07-30 03:45:23 +04:00
2011-12-01 15:17:22 +04:00
The options to install udev in the rootfs instead of /usr,
and udevadm in /sbin:
--bindir=/sbin
--libexecdir=/lib/udev
--with-systemdsystemunitdir=/lib/systemd/system
--with-rootlibdir=/lib64
Some tools expect udevadm in 'sbin'. A symlink to udevadm in 'bin'
needs to be manually created if needed.
2008-08-29 00:58:03 +04:00
The defined location for scripts and binaries which are called
2011-12-01 15:17:22 +04:00
from rules is /usr/lib/udev/ on all systems and architectures. Any
2008-08-29 00:58:03 +04:00
other location will break other packages, who rightfully expect
2011-12-01 15:17:22 +04:00
the /usr/lib/udev/ directory, to install their rule helper and udev
2008-08-29 00:58:03 +04:00
rule files.
2008-07-30 03:45:23 +04:00
2011-12-01 15:17:22 +04:00
It is possible to use the /usr/lib/udev/devices/ directory to place
2008-07-30 03:45:23 +04:00
device nodes, directories and symlinks, which are copied to /dev/
at every bootup. That way, nodes for devices which can not be
detected automatically, or are activated on-demand by opening the
pre-existing device node, will be available.
2011-04-29 16:27:11 +04:00
Default udev rules and persistent device naming rules may be required
2008-07-30 03:45:23 +04:00
by other software that depends on the data udev collects from the
2011-04-29 16:27:11 +04:00
devices.