aports/config/dovecot/APKBUILD

66 lines
1.7 KiB
Plaintext
Raw Normal View History

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
. ../APKBUILD-config.template
2021-02-07 21:36:32 +00:00
pkgver=2021.07.30.01
pkgrel=0
depends="
dovecot-lmtpd
dovecot-pgsql
dovecot-pigeonhole-plugin
redxen-secret-letsencrypt-chain
redxen-secret-letsencrypt-private
"
_rx_dovecot_base_src="
2021-01-05 02:07:09 +00:00
dovecot.conf
"
_rx_dovecot_sieve_src="
automove.sieve
"
_rx_dovecot_pgsql_src="
2021-01-05 02:07:09 +00:00
pgsql.conf
"
source="
$_rx_dovecot_base_src
$_rx_dovecot_sieve_src
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
for i in $_rx_dovecot_sieve_src; do
sievec "$i" "${i%%.sieve}".svbin
done
}
2021-01-05 02:07:09 +00:00
package() {
for i in $_rx_dovecot_base_src; do
rx_install "$i"
done
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
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
}
sha512sums="
877f7ae8f1b625f9941c51805636f1a3ea32600bff60872f45a18e65101026d8144ae79b69d6972af55c8376976fb0799e27bcc9b6044e509ab06813e4929b7c dovecot.conf
c4481b22e829ad26b6a76a05830585ba6e5050a98163c4c59ae5f49980d08e5d19077678fbe0cc2f83a4284eeb09654fcf307225e08f3921518353e84ccb5f14 automove.sieve
3b28fdfdafaffe19e038b8fd3d3dfdeea51b68c68a148054a1daf618a5ed6e18bdfc58154f9fd32ce982eae9d03e50b3a63ea3a21f9a358e26e4d77164530151 secret
5ed93cd8326a1fe604a91acb38da6864ee002877a069fa8f5b67fa10b7213d21966d7500b460cb14cedc063470b346002daf3031fc6be0d25d3bd864ff4b2f2f pgsql.conf
"