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.19.01
|
|
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
|
|
c9214b04c982083ebbc56043708888aa41a3b4d2cd2fb8e7b9341ccfd9f1b5fd15d7d2cb9c829e66e9fd15dcd1ccf315ff8400a15aed1c201ff59844aa69f4cb main.ini
|
|
"
|