aports/config/postfix/APKBUILD

50 lines
1.5 KiB
Plaintext
Raw Normal View History

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
. ../APKBUILD-config.template
2021-02-07 21:36:32 +00:00
2021-06-02 18:02:34 +00:00
pkgver=2021.06.02.01
pkgrel=0
depends="postfix-pgsql redxen-secret-letsencrypt-chain redxen-secret-letsencrypt-private"
_rx_postfix_pgsql_source="
pgsql-aliases.cf
pgsql-users.cf
2021-01-05 04:21:09 +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
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
2021-06-02 18:02:34 +00:00
ab325be459210b5aae65cc6a7ff170139b619f0f3d1205e2e8892e57e8eec51a84389745b238e6c0903ed493af462b0d7ab408731e35b1b4ccecbdfc92d58b23 main.cf
e2e2073b064a921a9eeed028e17617bcd2d1235517d908b4daadef45eb4cbb8686023c532d7938a779021cdd9548afe97f59d4c3232e7e01dca229e37e8c63ff secret
9c3ae0c3448710cb13e27cfd67864d27d364a3893ce70033df25ecd21cb0cc28a36f7d8aa9fe0cbdd0dc3516e78f34a5645a727387870d74ed8643078ec7e062 pgsql-aliases.cf
939677c0733348509a26a9ee654bc57be6cf4ce760c40cac7d1cc802afc0f7ec4b53c3752f60e9482b78290f6e36c5c8eca98645b54b34ffbb51dfbf4080d916 pgsql-users.cf
"