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 <behlendorf1@llnl.gov>
Closes #3617
This commit is contained in:
Brian Behlendorf 2015-07-20 13:16:16 -07:00
parent 53b1d9794e
commit 3b79cef212
1 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,11 @@
%endif %endif
%endif %endif
# Set the default _initconfdir when undefined.
%if %{undefined _initconfdir}
%global _initconfdir /etc/sysconfig
%endif
%bcond_with debug %bcond_with debug
%bcond_with blkid %bcond_with blkid
%bcond_with systemd %bcond_with systemd