Skip to content

Commit

Permalink
Set default _initconfdir directory
Browse files Browse the repository at this point in the history
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 openzfs#3617
  • Loading branch information
behlendorf authored and kernelOfTruth committed Jul 23, 2015
1 parent 2a7a829 commit 512cdf6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rpm/generic/zfs.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 512cdf6

Please sign in to comment.