From 3b79cef21294f3ec46c4f71cc5a68a75a4d0ebc7 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Mon, 20 Jul 2015 13:16:16 -0700 Subject: Set default _initconfdir directory The _initconfdir macro is normally provided by global rpm macros file for use in the spec file. However, older distributions such as CentOS 6 do not define it. To prevent a build failure in this case the spec file has been updated to use a reasonable default when the value is undefined. Signed-off-by: Brian Behlendorf Closes #3617 --- rpm/generic/zfs.spec.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in index 68bc00192..c4d153433 100644 --- a/rpm/generic/zfs.spec.in +++ b/rpm/generic/zfs.spec.in @@ -28,6 +28,11 @@ %endif %endif +# Set the default _initconfdir when undefined. +%if %{undefined _initconfdir} +%global _initconfdir /etc/sysconfig +%endif + %bcond_with debug %bcond_with blkid %bcond_with systemd -- cgit v1.2.3