chiark / gitweb /
7341272e68b76762a1a5c15623d382d052413c3f
[elogind.git] / INSTALL
1 Usual options for udev installed in the root filesystem are:
2   ./configure \
3     --prefix=/usr \
4     --sysconfdir=/etc \
5     --sbindir=/sbin \
6     --libdir=/usr/lib64 \
7     --with-rootlibdir=/lib64 \
8     --libexecdir=/lib/udev \
9     --with-selinux
10
11 All options:
12   --prefix=
13       Usually /usr, prefix for man pages, include files.
14   --sysconfdir=
15       Usually /etc.
16   --sbindir=
17       Usually /sbin, the place for udevd and udevadm.
18   --libexecdir=
19       Usually /lib/udev, the udev private directory.
20   --enable-debug
21       Compile-in verbose debug messages. Usually not needed,
22       it increases the size of the binaries.
23   --disable-logging
24       Disable all logging and compile-out all log strings. This
25       is not recommended, as it makes it almost impossible to debug
26       udev in the running system.
27   --with-selinux
28       Link against SELinux libraries to set the expected context
29       for created files.
30   --disable-rule_generator
31       Disable persistent network, cdrom naming support.
32   --disable-hwdb
33       Disable hardware database support
34   --disable-udev_acl
35       Disable local user acl permissions support.
36   --disable-gudev
37       Disable Gobject libudev support.
38   --disable-introspection
39       Disable Gobject introspection support.
40   --disable-keymap
41       Disable keymap fixup support.
42   --enable-floppy
43       Enable legacy floppy support.
44   --enable-edd
45       Enable disk edd support.
46   --enable-action_modeswitch
47       Enable action modeswitch support.
48
49 The options used in a RPM spec file usually look like:
50   %configure \
51     --prefix=%{_prefix} \
52     --sysconfdir=%{_sysconfdir} \
53     --sbindir=/sbin \
54     --libdir=%{_libdir} \
55     --with-rootlibdir=/%{_lib} \
56     --libexecdir=/lib/udev \
57     --with-selinux
58
59 The defined location for scripts and binaries which are called
60 from rules is /lib/udev/ on all systems and architectures. Any
61 other location will break other packages, who rightfully expect
62 the /lib/udev/ directory, to install their rule helper and udev
63 rule files.
64
65 It is possible to use the /lib/udev/devices/ directory to place
66 device nodes, directories and symlinks, which are copied to /dev/
67 at every bootup. That way, nodes for devices which can not be
68 detected automatically, or are activated on-demand by opening the
69 pre-existing device node, will be available.
70
71 Default udev rules and persistent device naming rules may be required
72 by other software that depends on the data udev collects from the
73 devices.