]> git.pld-linux.org Git - packages/apache-mod_cfg_ldap.git/commitdiff
- rebuild with new auto/ac/apache-mod_cfg_ldap-1_2-2
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 21 Dec 2005 23:33:16 +0000 (23:33 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- add missing apache restart
- rel 2

Changed files:
    apache-mod_cfg_ldap.spec -> 1.10

apache-mod_cfg_ldap.spec

index be2af80879e54babab96c1e1a86f1ee9ffbb7f3d..5fa75cb869c1bc7340206041c75f108cee1d582e 100644 (file)
@@ -4,21 +4,22 @@ Summary:      Module to keep Apache VirtualHost configuration in an LDAP directory
 Summary(pl):   Modu³ do przechowywania konfiguracji serwerów wirtualnych Apache'a w katalogu LDAP
 Name:          apache-mod_%{mod_name}
 Version:       1.2
-Release:       1
+Release:       2
 License:       BSD
 Group:         Networking/Daemons
 Source0:       http://dl.sourceforge.net/modcfgldap/mod_%{mod_name}-%{version}.tar.gz
 # Source0-md5: 055924d6488608f684b22e7b04cea2ea
 URL:           http://modcfgldap.sourceforge.net/
 BuildRequires: %{apxs}
-BuildRequires: apache-devel >= 2
+BuildRequires: apache-devel >= 2.0
 BuildRequires: db-devel >= 4.2.52
 Requires(post,preun):  %{apxs}
-Requires:      apache >= 2
+Requires:      apache(modules-api) = %apache_modules_api
+Requires:      apache >= 2.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _sysconfdir     %(%{apxs} -q SYSCONFDIR)
-%define                _pkglibdir      %(%{apxs} -q LIBEXECDIR)
+%define                _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
+%define                _sysconfdir     %(%{apxs} -q SYSCONFDIR 2>/dev/null)
 
 %description
 mod_cfg_ldap allows you to keep your virtual host configuration in a
@@ -39,12 +40,24 @@ w katalogu LDAP i uaktualnianie jej prawie w czasie rzeczywistym.
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf}
 
-install -m755 .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
+install .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
 install cfg_ldap.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/85_mod_cfg_ldap.conf
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+if [ -f /var/lock/subsys/httpd ]; then
+       /etc/rc.d/init.d/httpd restart 1>&2
+fi
+
+%postun
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/httpd ]; then
+               /etc/rc.d/init.d/httpd restart 1>&2
+       fi
+fi
+
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog INSTALL README TODO *.schema
This page took 0.050713 seconds and 4 git commands to generate.