summaryrefslogtreecommitdiffstats
path: root/rpm
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2015-07-20 13:16:16 -0700
committerBrian Behlendorf <[email protected]>2015-07-21 13:16:50 -0700
commit3b79cef21294f3ec46c4f71cc5a68a75a4d0ebc7 (patch)
tree23f9c0f77223be8b91cfaab7a8e5354270c8fc9c /rpm
parent53b1d9794efc1dc5467a624e1d5c4cad662a3858 (diff)
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 <[email protected]> Closes #3617
Diffstat (limited to 'rpm')
-rw-r--r--rpm/generic/zfs.spec.in5
1 files changed, 5 insertions, 0 deletions
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