dovecot: install default configuration to /usr/share/example/dovecot only

Closes #25893.
This commit is contained in:
Leah Neukirchen 2021-01-21 18:59:35 +01:00
parent 43c98a178b
commit f40cecc5f5

View file

@ -2,7 +2,7 @@
# revbump dovecot-plugin-pigeonhole when updating dovecot! # revbump dovecot-plugin-pigeonhole when updating dovecot!
pkgname=dovecot pkgname=dovecot
version=2.3.13 version=2.3.13
revision=1 revision=2
build_style=gnu-configure build_style=gnu-configure
configure_args="--with-moduledir=/usr/lib/dovecot/modules --with-sql=plugin configure_args="--with-moduledir=/usr/lib/dovecot/modules --with-sql=plugin
--disable-static --with-pam --with-mysql --with-pgsql --with-lucene --disable-static --with-pam --with-mysql --with-pgsql --with-lucene
@ -45,21 +45,14 @@ fi
# For SSL support. # For SSL support.
depends="ca-certificates" depends="ca-certificates"
system_accounts="_dovecot _dovenull" system_accounts="_dovecot _dovenull"
conf_files="/etc/dovecot/*.conf /etc/dovecot/conf.d/*.conf /etc/ssl/dovecot-openssl.cnf"
post_install() { post_install() {
local econfdir=usr/share/doc/dovecot/example-config vsconf doc/dovecot-openssl.cnf
local econfdird=${econfdir}/conf.d vsconf doc/mkcert.sh
mv ${DESTDIR}/usr/share/doc/dovecot/example-config/* \
# install example conf files and ssl.conf ${DESTDIR}/usr/share/examples/dovecot
vmkdir etc/dovecot/conf.d mv ${DESTDIR}/usr/share/examples/dovecot/*.ext \
install -m644 ${DESTDIR}/${econfdird}/*.conf \ ${DESTDIR}/usr/share/examples/dovecot/conf.d
${DESTDIR}/etc/dovecot/conf.d
install -m644 ${DESTDIR}/${econfdird}/*.conf.ext \
${DESTDIR}/etc/dovecot/conf.d
install -m644 ${DESTDIR}/${econfdir}/dovecot.conf ${DESTDIR}/etc/dovecot
vinstall doc/dovecot-openssl.cnf 644 etc/ssl
vbin doc/mkcert.sh dovecot-mkcert.sh
rm ${DESTDIR}/etc/dovecot/README rm ${DESTDIR}/etc/dovecot/README
vsv dovecot vsv dovecot
@ -77,14 +70,12 @@ dovecot-devel_package() {
dovecot-plugin-ldap_package() { dovecot-plugin-ldap_package() {
depends="dovecot>=${version}" depends="dovecot>=${version}"
short_desc+=" - LDAP plugin" short_desc+=" - LDAP plugin"
conf_files="/etc/dovecot/conf.d/auth-ldap.conf.ext"
pkg_install() { pkg_install() {
vmove usr/lib/dovecot/libdovecot-ldap.* vmove usr/lib/dovecot/libdovecot-ldap.*
vmove usr/lib/dovecot/modules/dict/libdict_ldap.so vmove usr/lib/dovecot/modules/dict/libdict_ldap.so
vmove usr/lib/dovecot/modules/auth/libauthdb_ldap.so vmove usr/lib/dovecot/modules/auth/libauthdb_ldap.so
vmove usr/share/doc/dovecot/example-config/conf.d/auth-ldap.conf.ext vmove usr/share/examples/dovecot/conf.d/auth-ldap.conf.ext
vmove usr/share/doc/dovecot/example-config/dovecot-ldap.conf.ext vmove usr/share/examples/dovecot/conf.d/dovecot-ldap.conf.ext
vmove etc/dovecot/conf.d/auth-ldap.conf.ext
} }
} }
dovecot-plugin-lucene_package() { dovecot-plugin-lucene_package() {