46 lines
1.2 KiB
Plaintext
46 lines
1.2 KiB
Plaintext
# Contributor: Alex Denes <caskd@redxen.eu>
|
|
# Maintainer: Alex Denes <caskd@redxen.eu>
|
|
|
|
. ../APKBUILD-config.template
|
|
|
|
pkgver=2021.06.25.02
|
|
pkgrel=0
|
|
depends="dovecot-lmtpd dovecot-pgsql redxen-secret-letsencrypt-chain redxen-secret-letsencrypt-private"
|
|
_rx_dovecot_base_src="
|
|
dovecot.conf
|
|
"
|
|
_rx_dovecot_pgsql_src="
|
|
pgsql.conf
|
|
"
|
|
source="
|
|
$_rx_dovecot_base_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
|
|
}
|
|
|
|
package() {
|
|
for i in $_rx_dovecot_base_src; do
|
|
rx_install "$i"
|
|
done
|
|
for i in $_rx_dovecot_pgsql_src; do
|
|
rx_install "$i".private "$i"
|
|
done
|
|
install -dm700 "$(rx_cpkgdir)"/var/mail
|
|
}
|
|
|
|
sha512sums="
|
|
f9b8dcc6e90a359e16dcfe388b20595a7e5821b13801dfffa6c77a617802128733095029e90b0a81d437a4819c11ccdc30951a81b6ac708597731c5d2e41ee6c dovecot.conf
|
|
3b28fdfdafaffe19e038b8fd3d3dfdeea51b68c68a148054a1daf618a5ed6e18bdfc58154f9fd32ce982eae9d03e50b3a63ea3a21f9a358e26e4d77164530151 secret
|
|
5ed93cd8326a1fe604a91acb38da6864ee002877a069fa8f5b67fa10b7213d21966d7500b460cb14cedc063470b346002daf3031fc6be0d25d3bd864ff4b2f2f pgsql.conf
|
|
"
|