33 lines
1.1 KiB
Plaintext
33 lines
1.1 KiB
Plaintext
# Contributor: Alex Denes <caskd@redxen.eu>
|
|
# Maintainer: Alex Denes <caskd@redxen.eu>
|
|
_svcname=gitea
|
|
|
|
. ../APKBUILD-config.common
|
|
|
|
pkgver=2021.05.08
|
|
pkgrel=0
|
|
depends="redxen-data-gitea-theme"
|
|
source="
|
|
redxen.ini
|
|
secrets
|
|
"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
install -D "redxen.ini" "redxen-mod.ini"
|
|
. secrets
|
|
replace_in_file "POSTGRESQL_GITEA_PASSWORD" "$POSTGRESQL_GITEA_PASSWORD" "redxen-mod.ini"
|
|
replace_in_file "GITEA_SECRET_KEY" "$GITEA_SECRET_KEY" "redxen-mod.ini"
|
|
replace_in_file "GITEA_INTERNAL_TOKEN" "$GITEA_INTERNAL_TOKEN" "redxen-mod.ini"
|
|
replace_in_file "GITEA_MAILER_PASSWD" "$GITEA_MAILER_PASSWD" "redxen-mod.ini"
|
|
replace_in_file "GITEA_OAUTH_JWT_TOKEN" "$GITEA_OAUTH_JWT_TOKEN" "redxen-mod.ini"
|
|
}
|
|
|
|
package() {
|
|
COPYCFG_SRC="redxen-mod.ini" COPYCFG_FNAME_DEST="redxen.ini" package_copy_cfg
|
|
mkdir -p "$pkgdir"/var/lib/gitea
|
|
}
|
|
|
|
sha512sums="f530ec63e352f2daac6c66325f8ffc679c9fd3959750ccbc6f2f3e2456a0f8a8abe12ec14cdaa05507a6785f166d5d60c016f8b6a9751749c62223a9c0d8d436 redxen.ini
|
|
012d489c5d71864cda4b99ec16b3d6edbf83d18ea14d2104afe70e320937f4dd223572e384fba040cb3d43ced8ca7267e434756e4a1cd8bd41bb6f9092ad4b9d secrets"
|