--- dovecot-1.0_beta3.ebuild.orig 2006-02-16 15:58:16.000000000 +0100 +++ dovecot-1.0_beta3.ebuild.orig 2006-02-16 15:57:52.000000000 +0100 @@ -93,6 +93,21 @@ "${D}"/etc/dovecot.conf fi + # Create additional config files + if use mysql || use postgres ; then + cp "${S}"/doc/dovecot-sql.conf "${D}"/etc/ + fperms 0600 /etc/dovecot-sql.conf + sed -i -e "/db sql/,/args/s/=/= \/etc\/dovecot-sql.conf/" \ + "${D}"/etc/dovecot.conf + fi + + if use ldap ; then + cp "${S}"/doc/dovecot-ldap.conf "${D}"/etc/ + fperms 0600 /etc/dovecot-ldap.conf + sed -i -e "/db ldap/,/args/s/=/= \/etc\/dovecot-ldap.conf/" \ + "${D}"/etc/dovecot.conf + fi + # Documentation rm -rf "${D}"/usr/share/doc/dovecot dodoc AUTHORS NEWS README TODO dovecot-example.conf