]> git.pld-linux.org Git - packages/apache1-mod_auth_ldap.git/commitdiff
- axps in pre and post
authorPaweł Gołaszewski <blues@pld-linux.org>
Fri, 10 Aug 2001 19:19:41 +0000 (19:19 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache1-mod_auth_ldap.spec -> 1.8

apache1-mod_auth_ldap.spec

index 7f89ece8bfbb8285b7f6db6763898fb8bda18a6d..b4f559d7c56fd62eab715da1308794763c9fe8b2 100644 (file)
@@ -17,6 +17,9 @@ BuildRequires:        openldap-devel
 URL:           http://www.rudedog.org/auth_ldap/
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                _libexecdir     %{_prefix}/lib/apache
+
+
 %description
 This is an authentication module for Apache that allows you to
 authenticate HTTP clients using user entries in an LDAP directory.
@@ -53,10 +56,18 @@ rm -rf $RPM_BUILD_ROOT
 
 gzip -9nf PROBLEMS
 
+%post
+%{_sbindir}/apxs -e -a -n auth_ldap %{_libexecdir}/mod_auth_ldap.so 1>&2
+
+%preun
+if [ "$1" = "0" ]; then
+       %{_sbindir}/apxs -e -A -n auth_ldap %{_libexecdir}/mod_auth_ldap.so 1>&2
+fi
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
 %doc *.html *.gz
-%attr(755,root,root) %{_libdir}/apache/mod_auth_ldap.so
+%attr(755,root,root) %{_libexecdir}/mod_auth_ldap.so
This page took 0.083334 seconds and 4 git commands to generate.