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=2021.06.01.03
|
|
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
|
|
8206984e9fb01cef0b06b366bd6af1cc74227d07404c68d50b0d59fadf409b2868fece46cf7931c78f2315d47385b85f4741cfb9eb397be8fbf4f0c75cb94242 main.ini
|
|
"
|