]> granicus.if.org Git - sudo/commitdiff
Add preinstall target that runs SUDO_PREINSTALL_CMD. Used to fixup
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 6 Nov 2012 16:08:53 +0000 (11:08 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 6 Nov 2012 16:08:53 +0000 (11:08 -0500)
the rpath in HP-UX SOM shared libraries for the LDAP libs.

plugins/sudoers/Makefile.in

index d46b8cbae1435ce18de2ed9b8383700de11901e9..e0102b8abf3af5c29fc6b951c3042b9adee8fe2f 100644 (file)
@@ -279,7 +279,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