2021-01-05 04:21: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
|
|
|
|
2024-03-30 18:45:58 +00:00
|
|
|
pkgver=2023.10.30.01
|
2021-03-09 09:48:40 +00:00
|
|
|
pkgrel=0
|
2021-02-09 19:11:29 +00:00
|
|
|
depends="postfix-pgsql redxen-secret-letsencrypt-chain redxen-secret-letsencrypt-private"
|
2021-06-01 23:17:41 +00:00
|
|
|
|
|
|
|
_rx_postfix_pgsql_source="
|
2021-01-07 17:13:22 +00:00
|
|
|
pgsql-aliases.cf
|
|
|
|
pgsql-users.cf
|
2021-01-05 04:21:09 +00:00
|
|
|
"
|
2021-06-01 23:17:41 +00:00
|
|
|
_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'}"
|
2021-01-05 04:21:09 +00:00
|
|
|
|
2021-06-01 23:17:41 +00:00
|
|
|
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="
|
2021-08-11 14:17:40 +00:00
|
|
|
1cb4072b03f3e9d79b15a082ccad99fc005129b56fc42c467713520f89feef298082637fbfaa01a04c2a1b6e69a254d9018adccaf9d98a4532f067214a4035f4 master.cf
|
2024-03-30 18:45:58 +00:00
|
|
|
a47f017c48446161f2a460d00aefa8f25332f2e7ab2ddc435a2f1ae37642c4abcae170532e92defa16ccb050ffbd21fd073b7c42b84d212a0c1fbd0e507d88fd main.cf
|
2021-06-01 23:17:41 +00:00
|
|
|
e2e2073b064a921a9eeed028e17617bcd2d1235517d908b4daadef45eb4cbb8686023c532d7938a779021cdd9548afe97f59d4c3232e7e01dca229e37e8c63ff secret
|
2023-07-05 16:37:36 +00:00
|
|
|
51595b478be5cb66c9cb92963ba82f3851a5e912a1c427330ebd1a5abedd3e763467448e83f5c58f08dc51e70d420d0db6026eccc9955e3bb58f52f3773a4c85 pgsql-aliases.cf
|
|
|
|
df25ccb7d6d27fba0cf4c75b440b81fc80e006583ff56f7a78fb8ddc361a4e63a0d80e92ccaf34d72e59a7b3babf8ca893c7b055ae0f9d75c04fc9b40dd00608 pgsql-users.cf
|
2021-06-01 23:17:41 +00:00
|
|
|
"
|