From: Todd C. Miller Date: Tue, 6 Nov 2012 16:08:53 +0000 (-0500) Subject: Add preinstall target that runs SUDO_PREINSTALL_CMD. Used to fixup X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ff0788f9bc12ac775955b978c9a702d29b1a6459;p=sudo Add preinstall target that runs SUDO_PREINSTALL_CMD. Used to fixup the rpath in HP-UX SOM shared libraries for the LDAP libs. --HG-- branch : 1.8 --- diff --git a/plugins/sudoers/Makefile.in b/plugins/sudoers/Makefile.in index 74e7bd92e..0eac93a32 100644 --- a/plugins/sudoers/Makefile.in +++ b/plugins/sudoers/Makefile.in @@ -278,7 +278,12 @@ install-includes: install-doc: install-dirs @LDAP@$(INSTALL) -O $(install_uid) -G $(install_gid) -m 0755 $(srcdir)/sudoers2ldif $(DESTDIR)$(docdir) -install-plugin: sudoers.la install-dirs +preinstall: + if [ X"$$SUDO_PREINSTALL_CMD" != X"" ]; then \ + exec $$SUDO_PREINSTALL_CMD; \ + fi + +install-plugin: sudoers.la install-dirs preinstall if [ X"$(soext)" != X"" ]; then \ $(INSTALL) -b~ -O $(install_uid) -G $(install_gid) -m $(shlib_mode) .libs/sudoers$(soext) $(DESTDIR)$(plugindir); \ fi