50 lines
1.5 KiB
Plaintext
50 lines
1.5 KiB
Plaintext
# Contributor: Alex Denes <caskd@redxen.eu>
|
|
# Maintainer: Alex Denes <caskd@redxen.eu>
|
|
|
|
. ../APKBUILD-config.template
|
|
|
|
pkgver=2023.10.30.01
|
|
pkgrel=0
|
|
depends="postfix-pgsql redxen-secret-letsencrypt-chain redxen-secret-letsencrypt-private"
|
|
|
|
_rx_postfix_pgsql_source="
|
|
pgsql-aliases.cf
|
|
pgsql-users.cf
|
|
"
|
|
_rx_postfix_base_source="
|
|
master.cf
|
|
main.cf
|
|
"
|
|
source="
|
|
$_rx_postfix_base_source
|
|
secret
|
|
$_rx_postfix_pgsql_source
|
|
"
|
|
|
|
build() {
|
|
. secret
|
|
: "${POSTGRESQL_PASSWORD:?'PostgreSQL database access password missing'}"
|
|
|
|
for i in $_rx_postfix_pgsql_source; do
|
|
cp "$i" "$i".private
|
|
rx_replace "POSTGRESQL_PASSWORD" "$POSTGRESQL_PASSWORD" "$i".private
|
|
done
|
|
}
|
|
|
|
package() {
|
|
for i in $_rx_postfix_base_source; do
|
|
rx_install "$i"
|
|
done
|
|
for i in $_rx_postfix_pgsql_source; do
|
|
rx_install "$i".private "$i"
|
|
done
|
|
}
|
|
|
|
sha512sums="
|
|
1cb4072b03f3e9d79b15a082ccad99fc005129b56fc42c467713520f89feef298082637fbfaa01a04c2a1b6e69a254d9018adccaf9d98a4532f067214a4035f4 master.cf
|
|
a47f017c48446161f2a460d00aefa8f25332f2e7ab2ddc435a2f1ae37642c4abcae170532e92defa16ccb050ffbd21fd073b7c42b84d212a0c1fbd0e507d88fd main.cf
|
|
e2e2073b064a921a9eeed028e17617bcd2d1235517d908b4daadef45eb4cbb8686023c532d7938a779021cdd9548afe97f59d4c3232e7e01dca229e37e8c63ff secret
|
|
51595b478be5cb66c9cb92963ba82f3851a5e912a1c427330ebd1a5abedd3e763467448e83f5c58f08dc51e70d420d0db6026eccc9955e3bb58f52f3773a4c85 pgsql-aliases.cf
|
|
df25ccb7d6d27fba0cf4c75b440b81fc80e006583ff56f7a78fb8ddc361a4e63a0d80e92ccaf34d72e59a7b3babf8ca893c7b055ae0f9d75c04fc9b40dd00608 pgsql-users.cf
|
|
"
|