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
|
|
|
|
2021-08-11 14:17:40 +00:00
|
|
|
pkgver=2021.08.11.02
|
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
|
2021-07-30 11:44:12 +00:00
|
|
|
219a7e2123adfaa88a1ca8d884739789de35a9433a70b1df57f0b04c551153c737a587a2f5ef4d566cd5c68dd69a94e13ae67f4404b4449a9bd30bbb0a4df912 main.cf
|
2021-06-01 23:17:41 +00:00
|
|
|
e2e2073b064a921a9eeed028e17617bcd2d1235517d908b4daadef45eb4cbb8686023c532d7938a779021cdd9548afe97f59d4c3232e7e01dca229e37e8c63ff secret
|
|
|
|
9c3ae0c3448710cb13e27cfd67864d27d364a3893ce70033df25ecd21cb0cc28a36f7d8aa9fe0cbdd0dc3516e78f34a5645a727387870d74ed8643078ec7e062 pgsql-aliases.cf
|
|
|
|
939677c0733348509a26a9ee654bc57be6cf4ce760c40cac7d1cc802afc0f7ec4b53c3752f60e9482b78290f6e36c5c8eca98645b54b34ffbb51dfbf4080d916 pgsql-users.cf
|
|
|
|
"
|