From 13adcd07000ba3ca1422c6ee863df17d70e2b14c Mon Sep 17 00:00:00 2001 From: Sorah Fukumori Date: Sun, 23 Oct 2016 01:43:05 +0900 Subject: BUILD: Fix installation without samba MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Lukáš Slebodník --- Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile.am b/Makefile.am index 7fc4e2bd7..64328766e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 \ @@ -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 -- cgit