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