--- postfix.spec.orig 2007-02-15 13:38:10 -0500 +++ postfix.spec 2007-02-15 12:14:09 -0500 @@ -24,6 +24,7 @@ %def_without ipv6 %def_with sasl %def_with cyrus +%def_with dovecot %def_with tls %def_without memcache @@ -141,6 +142,14 @@ %description cyrus This package provides Cyrus SASL support for Postfix. +%package dovecot +Summary: Dovecot SASL plugin for Postfix +Group: System/Servers +Requires: %name = %serial:%version-%release + +%description dovecot +This package provides Dovecot SASL support for Postfix. + %package tls Summary: SSL/TLS support for Postfix Group: System/Servers @@ -380,6 +389,16 @@ XSASLS='$(XSASL_CYRUS)' \ # %endif #with cyrus +%if_with dovecot +%make_build -C .. xsasls \ + DIRS='src/xsasl' \ + DEBUG='%optflags_shared' \ + LIBS='../../lib/libpostfix.so' \ + SYSLIBS= \ + AUXLIBS= \ + XSASLS='$(XSASL_DOVECOT)' \ + # +%endif #with dovecot %endif #with sasl popd # src @@ -668,6 +687,11 @@ %dir %plugin_directory %plugin_directory/xsasl_cyrus.so %endif #with cyrus +%if_with dovecot +%files dovecot +%dir %plugin_directory +%plugin_directory/xsasl_dovecot.so +%endif #with dovecot %endif #with sasl %if_with tls