]> git.pld-linux.org Git - packages/amavisd-new.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:
    amavisd-new.spec -> 1.109

amavisd-new.spec

index 1d2e660dc7c7f00b6b1fd9e14a6a5fed90dabc35..00cf4ed36a863501dd9119e57cde8f8f25cbe5a5 100644 (file)
@@ -22,7 +22,7 @@ Patch2:               %{name}-tools-dbdir.patch
 URL:           http://www.ijs.si/software/amavisd/
 BuildRequires: autoconf
 BuildRequires: rpm-perlprov
-BuildRequires: rpmbuild(macros) >= 1.268
+BuildRequires: rpmbuild(macros) >= 1.304
 BuildRequires: sendmail-devel
 Requires(post,preun):  /sbin/chkconfig
 Requires(postun):      /usr/sbin/groupdel
@@ -168,6 +168,16 @@ if [ "$1" = "0" ];then
        /sbin/chkconfig --del amavis-milter
 fi
 
+%post -n openldap-schema-amavisd-new
+%openldap_schema_register %{schemadir}/amavisd-new.schema
+%service -q ldap restart
+
+%postun -n openldap-schema-amavisd-new
+if [ "$1" = "0" ]; then
+       %openldap_schema_unregister %{schemadir}/amavisd-new.schema
+       %service -q ldap restart
+fi
+
 %files
 %defattr(644,root,root,755)
 %doc AAAREADME.first INSTALL RELEASE_NOTES README_FILES/* test-messages
This page took 0.083462 seconds and 4 git commands to generate.