mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 19:19:32 +03:00
12d06bac9b
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
15 lines
421 B
Plaintext
15 lines
421 B
Plaintext
AC_DEFUN([ZFS_AC_CONFIG_USER_UDEV], [
|
|
AC_ARG_WITH(udevdir,
|
|
AC_HELP_STRING([--with-udevdir=DIR],
|
|
[install udev helpers [[EPREFIX/lib/udev]]]),
|
|
udevdir=$withval, udevdir='${exec_prefix}/lib/udev')
|
|
|
|
AC_ARG_WITH(udevruledir,
|
|
AC_HELP_STRING([--with-udevruledir=DIR],
|
|
[install udev rules [[UDEVDIR/rules.d]]]),
|
|
udevruledir=$withval, udevruledir='${udevdir}/rules.d')
|
|
|
|
AC_SUBST(udevdir)
|
|
AC_SUBST(udevruledir)
|
|
])
|