31 lines
867 B
Plaintext
31 lines
867 B
Plaintext
# Contributor: Alex Denes <caskd@redxen.eu>
|
|
# Maintainer: Alex Denes <caskd@redxen.eu>
|
|
|
|
. ../APKBUILD-config.template
|
|
|
|
pkgver=2022.04.02.02
|
|
pkgrel=0
|
|
source="
|
|
secret
|
|
main.ini
|
|
"
|
|
|
|
build() {
|
|
. secret
|
|
: "${POSTGRESQL_PASSWORD:?'PostgreSQL password is missing'}"
|
|
: "${SMTP_AUTH_PASSWORD:?'SMTP authentication password is missing'}"
|
|
|
|
cp "main.ini" "main.ini.private"
|
|
rx_replace "POSTGRESQL_PASSWORD" "$POSTGRESQL_PASSWORD" "main.ini.private"
|
|
rx_replace "SMTP_AUTH_PASSWORD" "$SMTP_AUTH_PASSWORD" "main.ini.private"
|
|
}
|
|
|
|
package() {
|
|
rx_install "main.ini.private" "main.ini"
|
|
}
|
|
|
|
sha512sums="
|
|
9a0dee0934034685c2aba7ebb21283ee73fd240c4cee2aa1cfcec66ba5afc3ed3759b2c79e1facba3e3e0a38fe75f11a7f382d968798ba212c36072238c59190 secret
|
|
828523446bdaaf4efe6db07d96ea7c80cea908ed41628d4b1e1353a0602ca62e0e0b4a434b65cca62b9431426c15135f5da691ee34a24939c7a7ca5a52421680 main.ini
|
|
"
|