Client-only build needs /usr/share/ipa and freeipa.template
We condition make to run in install/share only for ENABLE_SERVER case. This means client side never has /usr/share/ipa created and populated. Force-create the directory and put freeipa.template in the spec right now until upstream fix is done properly to allow client-side target to run install/share too.
This commit is contained in:
parent
aed8774b7e
commit
023dc4e57a
@ -1139,8 +1139,12 @@ touch %{buildroot}%{_libdir}/krb5/plugins/libkrb5/winbind_krb5_locator.so
|
|||||||
mkdir -p %{buildroot}%{_sysconfdir}/cron.d
|
mkdir -p %{buildroot}%{_sysconfdir}/cron.d
|
||||||
%endif # ONLY_CLIENT
|
%endif # ONLY_CLIENT
|
||||||
|
|
||||||
|
%if %{ONLY_CLIENT}
|
||||||
# Even client build must have /usr/share/ipa
|
# Even client build must have /usr/share/ipa
|
||||||
mkdir -p %{buildroot}%{_usr}/share/ipa
|
mkdir -p %{buildroot}%{_usr}/share/ipa
|
||||||
|
%__install install/share/freeipa.template %{buildroot}%{_usr}/share/ipa
|
||||||
|
%endif # ONLY_CLIENT
|
||||||
|
|
||||||
# Collect templates and filter out non-server ones
|
# Collect templates and filter out non-server ones
|
||||||
find %{buildroot}%{_usr}/share/ipa -maxdepth 1 -name '*.template' -a ! -name 'freeipa.template' -fprintf server-templates '%{_usr}/share/ipa/%f\n'
|
find %{buildroot}%{_usr}/share/ipa -maxdepth 1 -name '*.template' -a ! -name 'freeipa.template' -fprintf server-templates '%{_usr}/share/ipa/%f\n'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user