File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ exec 2>&1
3+
4+ [ -r ./conf ] && . ./conf
5+
6+ cd /var/lib/olivetin
7+ exec chpst -u _olivetin OliveTin -configdir /etc/OliveTin ${OPTS}
Original file line number Diff line number Diff line change 1+ # Template file for 'olivetin'
2+ pkgname=olivetin
3+ version=3000.20.0
4+ revision=1
5+ archs="~i686"
6+ build_style=go
7+ build_wrksrc="service"
8+ go_import_path=github.com/OliveTin/OliveTin
9+ go_package=.
10+ go_ldflags="-X main.version=${version}"
11+ hostmakedepends="nodejs python3"
12+ short_desc="Web interface for running predefined shell commands"
13+ maintainer="Dominic Karvik <dominic@dominic.io>"
14+ license="AGPL-3.0-only"
15+ homepage="https://www.olivetin.app/"
16+ distfiles="https://github.com/OliveTin/OliveTin/archive/refs/tags/${version}.tar.gz"
17+ checksum=fa0cd2ef577756e701aeb0ce4ee3918019e5c78ce4ecee568d51e31a65f4474a
18+ nopie=yes
19+ system_accounts="_olivetin"
20+ make_dirs="/etc/OliveTin 0750 _olivetin _olivetin
21+ /var/lib/olivetin 0750 _olivetin _olivetin"
22+
23+ pre_build() {
24+ make -C ../frontend dist
25+ sed -i 's|config.WebUIDir = "./webui"|config.WebUIDir = "/usr/share/olivetin/webui"|' internal/config/config.go
26+ }
27+
28+ post_install() {
29+ vmkdir usr/share/olivetin/webui
30+ vcopy ../frontend/dist/. usr/share/olivetin/webui
31+ vlicense ../LICENSE
32+ vsv olivetin
33+ }
You can’t perform that action at this time.
0 commit comments