From f40cecc5f5fce18c76a63af75ce415f18ebbd598 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Thu, 21 Jan 2021 18:59:35 +0100 Subject: [PATCH] dovecot: install default configuration to /usr/share/example/dovecot only Closes #25893. --- srcpkgs/dovecot/template | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/srcpkgs/dovecot/template b/srcpkgs/dovecot/template index 828719e5222..b3e60a74614 100644 --- a/srcpkgs/dovecot/template +++ b/srcpkgs/dovecot/template @@ -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() {