Change gitea custom dir

This commit is contained in:
Alex D. 2020-12-27 13:42:45 +00:00
parent 4c94c48039
commit cd6efcfe49
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
4 changed files with 17 additions and 15 deletions

View File

@ -2,7 +2,7 @@
# Maintainer: Alex Denes <caskd@redxen.eu> # Maintainer: Alex Denes <caskd@redxen.eu>
pkgname=redxen-data-gitea-theme pkgname=redxen-data-gitea-theme
pkgver=2020.12.27 pkgver=2020.12.27
pkgrel=0 pkgrel=1
pkgdesc="Gitea customization files" pkgdesc="Gitea customization files"
url="https://git.redxen.eu/RedXen" url="https://git.redxen.eu/RedXen"
arch="noarch" arch="noarch"
@ -15,6 +15,7 @@ source="
redxen.css redxen.css
" "
builddir="$srcdir" builddir="$srcdir"
_customroot="var/lib/gitea/custom"
build() { build() {
sizes="120 180 192 512 880" sizes="120 180 192 512 880"
@ -25,17 +26,17 @@ build() {
} }
package() { package() {
install -Dm644 logo-120.png "$pkgdir"/gitea/custom/public/img/gitea-sm.png install -Dm644 logo-120.png "$pkgdir"/"$_customroot"/public/img/gitea-sm.png
install -Dm644 logo-180.png "$pkgdir"/gitea/custom/public/img/favicon.png install -Dm644 logo-180.png "$pkgdir"/"$_customroot"/public/img/favicon.png
install -Dm644 logo-180.png "$pkgdir"/gitea/custom/public/img/apple-touch-icon.png install -Dm644 logo-180.png "$pkgdir"/"$_customroot"/public/img/apple-touch-icon.png
install -Dm644 logo-192.png "$pkgdir"/gitea/custom/public/img/gitea-192.png install -Dm644 logo-192.png "$pkgdir"/"$_customroot"/public/img/gitea-192.png
install -Dm644 logo-512.png "$pkgdir"/gitea/custom/public/img/gitea-512.png install -Dm644 logo-512.png "$pkgdir"/"$_customroot"/public/img/gitea-512.png
install -Dm644 logo-880.png "$pkgdir"/gitea/custom/public/img/gitea-lg.png install -Dm644 logo-880.png "$pkgdir"/"$_customroot"/public/img/gitea-lg.png
install -Dm644 logo.svg "$pkgdir"/gitea/custom/public/img/favicon.svg install -Dm644 logo.svg "$pkgdir"/"$_customroot"/public/img/favicon.svg
install -Dm644 logo.svg "$pkgdir"/gitea/custom/public/img/gitea-safari.svg install -Dm644 logo.svg "$pkgdir"/"$_customroot"/public/img/gitea-safari.svg
install -Dm644 redxen.css "$pkgdir"/gitea/custom/public/css/theme-redxen.css install -Dm644 redxen.css "$pkgdir"/"$_customroot"/public/css/theme-redxen.css
} }
sha512sums="d706ce4edaeccf6fbcea779a55046a20af136a3b9235e35f84c41e6f0aa7ddcae8fa3568d87e8d2f8be4f799c7cfd9f8b4b0ac653c0b4687d498eda25fc3864b logo.svg sha512sums="d706ce4edaeccf6fbcea779a55046a20af136a3b9235e35f84c41e6f0aa7ddcae8fa3568d87e8d2f8be4f799c7cfd9f8b4b0ac653c0b4687d498eda25fc3864b logo.svg

View File

@ -1,8 +1,8 @@
# Contributor: Alex Denes <caskd@redxen.eu> # Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu> # Maintainer: Alex Denes <caskd@redxen.eu>
pkgname=redxen-openrc-gitea pkgname=redxen-openrc-gitea
pkgver=2020.12.22 pkgver=2020.12.27
pkgrel=1 pkgrel=0
pkgdesc="Gitea OpenRC service files" pkgdesc="Gitea OpenRC service files"
url="https://git.redxen.eu/RedXen" url="https://git.redxen.eu/RedXen"
arch="noarch" arch="noarch"
@ -19,5 +19,5 @@ package() {
install -Dm755 runfile "$pkgdir"/etc/init.d/gitea.redxen install -Dm755 runfile "$pkgdir"/etc/init.d/gitea.redxen
install -Dm644 conffile "$pkgdir"/etc/conf.d/gitea.redxen install -Dm644 conffile "$pkgdir"/etc/conf.d/gitea.redxen
} }
sha512sums="36549d4308a540d14e3ed4037a44ea6fcf1a0e7decc8553a45fcf2f28c22fc9d92653ac59082c21ee03b90b8860b8de0b951d3135724d6be1b65a889382235fb runfile sha512sums="bc341c2ebaa77ed1a2ce8c75f42fa163071ff7d8af49c7263dac278fef333e974aa62b25443002a95daa105543d0e92921a8056fe97e4f1fce8a3ac97270006c runfile
2adbbbb1b0e6c70780132e2df64f39bfc3a14f0a66e703fe6310cd2c1d5eb0a3cd53ecb415c6ce76ef584016aaa0514582e8e38327576e952d1b93f9de4284da conffile" 65016c3f31cf55b2a1a054004bc0c9965a8278de5bdf00c720a9dc2023265a487ee5fd64058e477e990ed80f1468e5dc86e4a67b3d1e8073072db3abf0c6f247 conffile"

View File

@ -1,2 +1,3 @@
GITEA_CONF=/etc/gitea/redxen.ini GITEA_CONF=/etc/gitea/redxen.ini
GITEA_WORK_DIR=/gitea GITEA_WORK_DIR=/gitea
GITEA_CUSTOM=/var/lib/gitea/custom

View File

@ -5,7 +5,7 @@ name=gitea
command="/usr/bin/gitea" command="/usr/bin/gitea"
command_user="${GITEA_USER:-gitea}" command_user="${GITEA_USER:-gitea}"
command_args="web --config '${GITEA_CONF:-/etc/gitea/app.ini}'" command_args="web --config '${GITEA_CONF:-/etc/gitea/app.ini}'"
supervise_daemon_args="--env GITEA_WORK_DIR='${GITEA_WORK_DIR:-/var/lib/gitea}' --chdir '${GITEA_WORK_DIR:-/var/lib/gitea}' --stdout '${GITEA_LOG_FILE:-/var/log/gitea/http.log}' --stderr '${GITEA_LOG_FILE:-/var/log/gitea/http.log}'" supervise_daemon_args="--env GITEA_WORK_DIR='${GITEA_WORK_DIR:-/var/lib/gitea}' --env GITEA_CUSTOM='${GITEA_CUSTOM:-/var/lib/gitea/custom}' --chdir '${GITEA_WORK_DIR:-/var/lib/gitea}' --stdout '${GITEA_LOG_FILE:-/var/log/gitea/http.log}' --stderr '${GITEA_LOG_FILE:-/var/log/gitea/http.log}'"
pidfile="/run/gitea.pid" pidfile="/run/gitea.pid"
depend() { depend() {