Move udev rules from /etc/udev to /lib/udev

This change moves the default install location for the zfs udev
rules from /etc/udev/ to /lib/udev/.  The correct convention is
for rules provided by a package to be installed in /lib/udev/.
The /etc/udev/ directory is reserved for custom rules or local
overrides.

Additionally, this patch cleans up some abuse of the bindir install
location by adding a udevdir and udevruledir install directories.
This allows us to revert to the default bin install location.  The
udev install directories can be set with the following new options.

  --with-udevdir=DIR      install udev helpers [EPREFIX/lib/udev]
  --with-udevruledir=DIR  install udev rules [UDEVDIR/rules.d]

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #356
This commit is contained in:
Kyle Fuller
2011-08-05 20:22:58 +01:00
committed by Brian Behlendorf
parent f3ab88d646
commit 12d06bac9b
18 changed files with 45 additions and 30 deletions
+1 -1
View File
@@ -1 +1 @@
dist_bin_SCRIPTS = sas_switch_id
dist_udev_SCRIPTS = sas_switch_id
+1 -1
View File
@@ -1 +1 @@
dist_bin_SCRIPTS = zpool_id
dist_udev_SCRIPTS = zpool_id
+1 -1
View File
@@ -4,7 +4,7 @@ DEFAULT_INCLUDES += \
-I$(top_srcdir)/include \
-I$(top_srcdir)/lib/libspl/include
bin_PROGRAMS = zvol_id
udev_PROGRAMS = zvol_id
zvol_id_SOURCES = \
$(top_srcdir)/cmd/zvol_id/zvol_id_main.c