chiark / gitweb /
use libexecdir, bindir, sbindir, switch to /usr/lib/udev in documentation
[elogind.git] / INSTALL
1 The options used used usually look like:
2   %configure \
3     --prefix=/usr \
4     --sysconfdir=/etc \
5     --bindir=/usr/bin \
6     --sbindir=/usr/sbin \
7     --libdir=/usr/lib64 \
8     --libexecdir=/usr/lib/udev \
9     --with-systemdsystemunitdir=/usr/lib/systemd/system \
10     --with-selinux
11
12 The options used in a RPM spec file look like:
13   %configure \
14     --prefix=%{_prefix} \
15     --sysconfdir=%{_sysconfdir} \
16     --bindir=%{_bindir} \
17     --sbindir=%{_sbindir} \
18     --libdir=%{_libdir} \
19     --libexecdir=%{_prefix}/lib/udev \
20     --with-systemdsystemunitdir=%{_prefix}/lib/systemd/system \
21     --with-selinux
22
23 The options to install udev in the rootfs instead of /usr,
24 and udevadm in /sbin:
25     --bindir=/sbin
26     --sbindir=/sbin
27     --libexecdir=/lib/udev
28     --with-systemdsystemunitdir=/lib/systemd/system
29     --with-rootlibdir=/lib64
30
31 Some tools expect udevadm in 'sbin'. A symlink to udevadm in 'bin'
32 needs to be manually created if needed.
33
34 The defined location for scripts and binaries which are called
35 from rules is /usr/lib/udev/ on all systems and architectures. Any
36 other location will break other packages, who rightfully expect
37 the /usr/lib/udev/ directory, to install their rule helper and udev
38 rule files.
39
40 It is possible to use the /usr/lib/udev/devices/ directory to place
41 device nodes, directories and symlinks, which are copied to /dev/
42 at every bootup. That way, nodes for devices which can not be
43 detected automatically, or are activated on-demand by opening the
44 pre-existing device node, will be available.
45
46 Default udev rules and persistent device naming rules may be required
47 by other software that depends on the data udev collects from the
48 devices.