]> git.pld-linux.org Git - packages/apache-mod_cfg_ldap.git/commitdiff
- register openldap schema
authorzbyniu <zbyniu@pld-linux.org>
Tue, 20 Feb 2007 22:25:43 +0000 (22:25 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache-mod_cfg_ldap.spec -> 1.20

apache-mod_cfg_ldap.spec

index 5fb5d374773f743378ebb840b14c01ad59b56d49..a7f38fefe00d734897e560e9fc8a88f63d35f951 100644 (file)
@@ -15,7 +15,7 @@ BuildRequires:        %{apxs}
 BuildRequires: apache-devel >= 2.0
 BuildRequires: db-devel >= 4.2.52
 BuildRequires: openldap-devel >= 2.3.0
-BuildRequires: rpmbuild(macros) >= 1.268
+BuildRequires: rpmbuild(macros) >= 1.304
 Requires:      apache(modules-api) = %apache_modules_api
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -32,10 +32,10 @@ mod_cfg_ldap pozwala na przechowywanie konfiguracji hostów wirtualnych
 w katalogu LDAP i uaktualnianie jej prawie w czasie rzeczywistym.
 
 %package -n openldap-schema-mod_cfg_ldap
-Summary:       mod_cfg_ldap LDAP schema
-Summary(pl.UTF-8):     Schemat LDAP dla mod_cfg_ldap
-Group:         Networking/Daemons
-Requires:      openldap-servers
+Summary:       mod_cfg_ldap LDAP schema
+Summary(pl.UTF-8):     Schemat LDAP dla mod_cfg_ldap
+Group:         Networking/Daemons
+Requires:      openldap-servers
 
 %description -n openldap-schema-mod_cfg_ldap
 This package contains LDAP schema for use with mod_cfg_ldap.
@@ -70,6 +70,16 @@ if [ "$1" = "0" ]; then
        %service -q httpd restart
 fi
 
+%post -n openldap-schema-mod_cfg_ldap
+%openldap_schema_register %{schemadir}/mod_cfg_ldap.schema
+%service -q ldap restart
+
+%postun -n openldap-schema-mod_cfg_ldap
+if [ "$1" = "0" ]; then
+       %openldap_schema_unregister %{schemadir}/mod_cfg_ldap.schema
+       %service -q ldap restart
+fi
+
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog INSTALL README TODO
This page took 0.102623 seconds and 4 git commands to generate.