39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
# Contributor: Alex Denes <caskd@redxen.eu>
|
|
# Maintainer: Alex Denes <caskd@redxen.eu>
|
|
|
|
. ../APKBUILD-config.template
|
|
|
|
pkgver=2021.07.30.01
|
|
pkgrel=0
|
|
depends="redxen-data-gitea-theme"
|
|
source="
|
|
redxen.ini
|
|
secret
|
|
"
|
|
|
|
build() {
|
|
. secret
|
|
: "${POSTGRESQL_GITEA_PASSWORD:?'PostgreSQL database access password missing'}"
|
|
: "${GITEA_SECRET_KEY:?'Gitea secret key is missing'}"
|
|
: "${GITEA_INTERNAL_TOKEN:?'Gitea internal token is missing'}"
|
|
: "${GITEA_MAILER_PASSWD:?'Gitea SMTP password is missing'}"
|
|
: "${GITEA_OAUTH_JWT_TOKEN:?'Gitea OAuth token is missing'}"
|
|
|
|
cp redxen.ini redxen-mod.ini
|
|
rx_replace "POSTGRESQL_GITEA_PASSWORD" "$POSTGRESQL_GITEA_PASSWORD" "redxen-mod.ini"
|
|
rx_replace "GITEA_SECRET_KEY" "$GITEA_SECRET_KEY" "redxen-mod.ini"
|
|
rx_replace "GITEA_INTERNAL_TOKEN" "$GITEA_INTERNAL_TOKEN" "redxen-mod.ini"
|
|
rx_replace "GITEA_MAILER_PASSWD" "$GITEA_MAILER_PASSWD" "redxen-mod.ini"
|
|
rx_replace "GITEA_OAUTH_JWT_TOKEN" "$GITEA_OAUTH_JWT_TOKEN" "redxen-mod.ini"
|
|
}
|
|
|
|
package() {
|
|
rx_install redxen-mod.ini redxen.ini
|
|
install -dm700 "$(rx_cpkgdir)"/var/lib/gitea
|
|
}
|
|
|
|
sha512sums="
|
|
fb309ffca3624b170649de462c1057660888908336e76c7884eef7a10d1be2e9185fb124c86599d50a37e0a36196ca06d64b0ecffaa23b00c3a79c51f99cc2e4 redxen.ini
|
|
012d489c5d71864cda4b99ec16b3d6edbf83d18ea14d2104afe70e320937f4dd223572e384fba040cb3d43ced8ca7267e434756e4a1cd8bd41bb6f9092ad4b9d secret
|
|
"
|