Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions srcpkgs/olivetin/files/olivetin/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
exec 2>&1

[ -r ./conf ] && . ./conf

cd /var/lib/olivetin
exec chpst -u _olivetin OliveTin -configdir /etc/OliveTin ${OPTS}
33 changes: 33 additions & 0 deletions srcpkgs/olivetin/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Template file for 'olivetin'
pkgname=olivetin
version=3000.20.0
revision=1
archs="~i686"
build_style=go
build_wrksrc="service"
go_import_path=github.com/OliveTin/OliveTin
go_package=.
go_ldflags="-X main.version=${version}"
hostmakedepends="nodejs python3"
short_desc="Web interface for running predefined shell commands"
maintainer="Dominic Karvik <dominic@dominic.io>"
license="AGPL-3.0-only"
homepage="https://www.olivetin.app/"
distfiles="https://github.com/OliveTin/OliveTin/archive/refs/tags/${version}.tar.gz"
checksum=fa0cd2ef577756e701aeb0ce4ee3918019e5c78ce4ecee568d51e31a65f4474a
nopie=yes
system_accounts="_olivetin"
make_dirs="/etc/OliveTin 0750 _olivetin _olivetin
/var/lib/olivetin 0750 _olivetin _olivetin"

pre_build() {
make -C ../frontend dist
sed -i 's|config.WebUIDir = "./webui"|config.WebUIDir = "/usr/share/olivetin/webui"|' internal/config/config.go
}

post_install() {
vmkdir usr/share/olivetin/webui
vcopy ../frontend/dist/. usr/share/olivetin/webui
vlicense ../LICENSE
vsv olivetin
}
Loading