Skip to content

Commit

Permalink
BUILD: Fix installation without samba
Browse files Browse the repository at this point in the history
winbindplugindir is defined only when BUILD_SAMBA is on. Also the file
doesn't exist when BUILD_SAMBA is off, so installation will fail.

Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
  • Loading branch information
sorah authored and Lukas Slebodnik committed Oct 22, 2016
1 parent 96d239e commit 13adcd0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile.am
Expand Up @@ -4151,7 +4151,9 @@ install-data-hook:
if [ ! $(krb5rcachedir) = "__LIBKRB5_DEFAULTS__" ]; then \
$(MKDIR_P) $(DESTDIR)/$(krb5rcachedir) ; \
fi
if BUILD_SAMBA
mv $(DESTDIR)/$(winbindplugindir)/winbind_idmap_sss.so $(DESTDIR)/$(winbindplugindir)/sss.so
endif

uninstall-hook:
if [ -f $(abs_builddir)/src/config/.files2 ]; then \
Expand All @@ -4173,7 +4175,9 @@ if BUILD_PYTHON3_BINDINGS
cd $(DESTDIR)$(py3execdir) && \
rm -f pysss.so pyhbac.so pysss_murmur.so pysss_nss_idmap.so
endif
if BUILD_SAMBA
rm $(DESTDIR)/$(winbindplugindir)/sss.so
endif

clean-local:
if BUILD_PYTHON2_BINDINGS
Expand Down

0 comments on commit 13adcd0

Please sign in to comment.