]> 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.

--HG--
branch : 1.8

plugins/sudoers/Makefile.in

index 74e7bd92e26f14a8aac139730de9a1c3b9e9020d..0eac93a3283716619e019e404204b6ab35e26dbc 100644 (file)
@@ -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