mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-30 21:09:38 +03:00
b9f27ee765
Change the variable substitution in the udev rule templates according to the method described in the Autoconf manual; Chapter 4.7.2: Installation Directory Variables. The udev rules are improperly generated if the bindir parameter overrides the prefix parameter during configure. For example: # ./configure --prefix=/usr/local --bindir=/opt/zfs/bin The udev helper is installed as /opt/zfs/bin/zpool_id, but the corresponding udev rule has a different path: # /usr/local/etc/udev/rules.d/60-zpool.rules ENV{DEVTYPE}=="disk", IMPORT{program}="/usr/local/bin/zpool_id -d %p" The @bindir@ variable expands to "${exec_prefix}/bin", so it cannot be used instead of @prefix@ directly. This also applies to the zvol_id helper. Closes #283.
16 lines
271 B
Makefile
16 lines
271 B
Makefile
pkgsysconfdir = $(sysconfdir)/udev/rules.d
|
|
|
|
pkgsysconf_DATA = \
|
|
60-zpool.rules \
|
|
60-zvol.rules
|
|
|
|
EXTRA_DIST = \
|
|
60-zpool.rules.in \
|
|
60-zvol.rules.in
|
|
|
|
$(pkgsysconf_DATA):
|
|
-$(SED) -e 's,@bindir\@,$(bindir),g' '$@.in' >'$@'
|
|
|
|
distclean-local::
|
|
-$(RM) $(pkgsysconf_DATA)
|