From 5e09ae9b75a57c3ce3a78330462065be10019f4c Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 13 Nov 2012 09:41:52 -0500 Subject: [PATCH] Fold preinstall into install-plugin and pass the path to the plugin binary to the preinstall command. --- plugins/sudoers/Makefile.in | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/plugins/sudoers/Makefile.in b/plugins/sudoers/Makefile.in index 4abe43524..9999d8da4 100644 --- a/plugins/sudoers/Makefile.in +++ b/plugins/sudoers/Makefile.in @@ -279,13 +279,10 @@ install-includes: install-doc: install-dirs @LDAP@$(INSTALL) -O $(install_uid) -G $(install_gid) -m 0755 $(srcdir)/sudoers2ldif $(DESTDIR)$(docdir) -preinstall: - if [ X"$$SUDO_PREINSTALL_CMD" != X"" ]; then \ - exec $$SUDO_PREINSTALL_CMD; \ - fi - -install-plugin: sudoers.la install-dirs preinstall +install-plugin: sudoers.la install-dirs if [ X"$(soext)" != X"" ]; then \ + test X"$$SUDO_PREINSTALL_CMD" != X"" && \ + $$SUDO_PREINSTALL_CMD .libs/sudoers$(soext); \ $(INSTALL) -b~ -O $(install_uid) -G $(install_gid) -m $(shlib_mode) .libs/sudoers$(soext) $(DESTDIR)$(plugindir); \ fi -- 2.50.1