2021-02-07 21:36:32 +00:00
|
|
|
# Contributor: Alex Denes <caskd@redxen.eu>
|
|
|
|
# Maintainer: Alex Denes <caskd@redxen.eu>
|
|
|
|
_svcname=gitea
|
|
|
|
|
|
|
|
. ../APKBUILD-config.common
|
|
|
|
|
2021-05-08 17:06:42 +00:00
|
|
|
pkgver=2021.05.08
|
|
|
|
pkgrel=0
|
2021-02-09 19:11:29 +00:00
|
|
|
depends="redxen-data-gitea-theme"
|
2021-03-07 13:24:39 +00:00
|
|
|
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"
|
|
|
|
}
|
2021-02-07 21:36:32 +00:00
|
|
|
|
|
|
|
package() {
|
2021-03-07 13:24:39 +00:00
|
|
|
COPYCFG_SRC="redxen-mod.ini" COPYCFG_FNAME_DEST="redxen.ini" package_copy_cfg
|
2021-02-07 21:36:32 +00:00
|
|
|
mkdir -p "$pkgdir"/var/lib/gitea
|
|
|
|
}
|
|
|
|
|
2021-05-08 17:06:42 +00:00
|
|
|
sha512sums="f530ec63e352f2daac6c66325f8ffc679c9fd3959750ccbc6f2f3e2456a0f8a8abe12ec14cdaa05507a6785f166d5d60c016f8b6a9751749c62223a9c0d8d436 redxen.ini
|
2021-03-07 13:24:39 +00:00
|
|
|
012d489c5d71864cda4b99ec16b3d6edbf83d18ea14d2104afe70e320937f4dd223572e384fba040cb3d43ced8ca7267e434756e4a1cd8bd41bb6f9092ad4b9d secrets"
|