2021-01-05 02:07:09 +00:00
|
|
|
# Contributor: Alex Denes <caskd@redxen.eu>
|
|
|
|
# Maintainer: Alex Denes <caskd@redxen.eu>
|
2021-02-07 21:36:32 +00:00
|
|
|
|
2021-06-01 23:17:41 +00:00
|
|
|
. ../APKBUILD-config.template
|
2021-02-07 21:36:32 +00:00
|
|
|
|
2021-07-30 13:08:22 +00:00
|
|
|
pkgver=2021.07.30.01
|
2021-06-25 18:28:09 +00:00
|
|
|
pkgrel=0
|
2021-07-30 13:08:22 +00:00
|
|
|
depends="
|
|
|
|
dovecot-lmtpd
|
|
|
|
dovecot-pgsql
|
|
|
|
dovecot-pigeonhole-plugin
|
|
|
|
redxen-secret-letsencrypt-chain
|
|
|
|
redxen-secret-letsencrypt-private
|
|
|
|
"
|
2021-06-01 23:17:41 +00:00
|
|
|
_rx_dovecot_base_src="
|
2021-01-05 02:07:09 +00:00
|
|
|
dovecot.conf
|
2021-06-01 23:17:41 +00:00
|
|
|
"
|
2021-07-30 13:08:22 +00:00
|
|
|
_rx_dovecot_sieve_src="
|
|
|
|
automove.sieve
|
|
|
|
"
|
2021-06-01 23:17:41 +00:00
|
|
|
_rx_dovecot_pgsql_src="
|
2021-01-05 02:07:09 +00:00
|
|
|
pgsql.conf
|
|
|
|
"
|
2021-06-01 23:17:41 +00:00
|
|
|
source="
|
|
|
|
$_rx_dovecot_base_src
|
2021-07-30 13:08:22 +00:00
|
|
|
$_rx_dovecot_sieve_src
|
|
|
|
|
2021-06-01 23:17:41 +00:00
|
|
|
secret
|
|
|
|
$_rx_dovecot_pgsql_src
|
|
|
|
"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
. secret
|
|
|
|
: "${POSTGRESQL_PASSWORD:?'PostgreSQL database access password missing'}"
|
|
|
|
|
|
|
|
for i in $_rx_dovecot_pgsql_src; do
|
|
|
|
cp "$i" "$i".private
|
|
|
|
rx_replace "POSTGRESQL_PASSWORD" "$POSTGRESQL_PASSWORD" "$i".private
|
|
|
|
done
|
2021-07-30 13:08:22 +00:00
|
|
|
|
|
|
|
for i in $_rx_dovecot_sieve_src; do
|
|
|
|
sievec "$i" "${i%%.sieve}".svbin
|
|
|
|
done
|
2021-06-01 23:17:41 +00:00
|
|
|
}
|
2021-01-05 02:07:09 +00:00
|
|
|
|
|
|
|
package() {
|
2021-06-01 23:17:41 +00:00
|
|
|
for i in $_rx_dovecot_base_src; do
|
|
|
|
rx_install "$i"
|
|
|
|
done
|
2021-07-30 13:08:22 +00:00
|
|
|
for i in $_rx_dovecot_sieve_src; do
|
|
|
|
_rx_installdir="$_rx_installdir/sieve" rx_install "$i"
|
|
|
|
_rx_installdir="$_rx_installdir/sieve" rx_install "${i%%.sieve}".svbin
|
|
|
|
done
|
2021-06-01 23:17:41 +00:00
|
|
|
for i in $_rx_dovecot_pgsql_src; do
|
|
|
|
rx_install "$i".private "$i"
|
|
|
|
done
|
|
|
|
install -dm700 "$(rx_cpkgdir)"/var/mail
|
2021-01-05 02:07:09 +00:00
|
|
|
}
|
|
|
|
|
2021-06-01 23:17:41 +00:00
|
|
|
sha512sums="
|
2021-07-30 13:08:22 +00:00
|
|
|
877f7ae8f1b625f9941c51805636f1a3ea32600bff60872f45a18e65101026d8144ae79b69d6972af55c8376976fb0799e27bcc9b6044e509ab06813e4929b7c dovecot.conf
|
|
|
|
c4481b22e829ad26b6a76a05830585ba6e5050a98163c4c59ae5f49980d08e5d19077678fbe0cc2f83a4284eeb09654fcf307225e08f3921518353e84ccb5f14 automove.sieve
|
2021-06-01 23:17:41 +00:00
|
|
|
3b28fdfdafaffe19e038b8fd3d3dfdeea51b68c68a148054a1daf618a5ed6e18bdfc58154f9fd32ce982eae9d03e50b3a63ea3a21f9a358e26e4d77164530151 secret
|
|
|
|
5ed93cd8326a1fe604a91acb38da6864ee002877a069fa8f5b67fa10b7213d21966d7500b460cb14cedc063470b346002daf3031fc6be0d25d3bd864ff4b2f2f pgsql.conf
|
|
|
|
"
|