summaryrefslogtreecommitdiffstats
path: root/zfs.spec.in
diff options
context:
space:
mode:
authorKyle Fuller <[email protected]>2011-08-05 20:22:58 +0100
committerBrian Behlendorf <[email protected]>2011-08-08 16:21:10 -0700
commit12d06bac9b22b11d8a322dfea4bdb50b106c254f (patch)
treed3014ec1f682731484091506966b2032d2396f8a /zfs.spec.in
parentf3ab88d6461dec46dea240763843f66300facfab (diff)
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 <[email protected]> Closes #356
Diffstat (limited to 'zfs.spec.in')
-rw-r--r--zfs.spec.in7
1 files changed, 4 insertions, 3 deletions
diff --git a/zfs.spec.in b/zfs.spec.in
index cba98af1d..56e8c4764 100644
--- a/zfs.spec.in
+++ b/zfs.spec.in
@@ -3,9 +3,9 @@
%define release @ZFS_META_RELEASE@
%define debug_package %{nil}
%define _prefix /
-%define _bindir /lib/udev
%define _libexecdir /usr/libexec
%define _datadir /usr/share
+%define _udevdir /lib/udev
Summary: ZFS Library and Utils
Group: Utilities/System
@@ -61,7 +61,7 @@ which are ZFS aware.
%prep
%setup
%build
-%configure --with-config=user --without-blkid
+%configure --with-config=user --without-blkid --with-udevdir=%{_udevdir}
make
%install
@@ -80,8 +80,9 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/*
%{_mandir}/man8/*
%{_sysconfdir}/init.d/*
-%{_sysconfdir}/udev/rules.d/*
%{_sysconfdir}/zfs/*
+%{_udevdir}/*
+%{_udevdir}/rules.d/*
%files devel
%defattr(-,root,root)