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=2021.07.30.02
|
|
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="
|
|
b43313dc2b00848bfbc6b14bdcee2c7a024aeeae5d2a46b6aaf370d55f58ac9f9a4cf992b7d75a8acf35b75fd00d04144626169ef153614b223de87677bfda21 master.cf
|
|
219a7e2123adfaa88a1ca8d884739789de35a9433a70b1df57f0b04c551153c737a587a2f5ef4d566cd5c68dd69a94e13ae67f4404b4449a9bd30bbb0a4df912 main.cf
|
|
e2e2073b064a921a9eeed028e17617bcd2d1235517d908b4daadef45eb4cbb8686023c532d7938a779021cdd9548afe97f59d4c3232e7e01dca229e37e8c63ff secret
|
|
9c3ae0c3448710cb13e27cfd67864d27d364a3893ce70033df25ecd21cb0cc28a36f7d8aa9fe0cbdd0dc3516e78f34a5645a727387870d74ed8643078ec7e062 pgsql-aliases.cf
|
|
939677c0733348509a26a9ee654bc57be6cf4ce760c40cac7d1cc802afc0f7ec4b53c3752f60e9482b78290f6e36c5c8eca98645b54b34ffbb51dfbf4080d916 pgsql-users.cf
|
|
"
|