]> git.pld-linux.org Git - packages/amavisd-new.git/blobdiff - amavisd-new.spec
- register openldap schema
[packages/amavisd-new.git] / 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.026939 seconds and 4 git commands to generate.