Skip to content

Commit b3215dc

Browse files
committed
New package: olivetin-3000.20.0
1 parent 3ca148b commit b3215dc

2 files changed

Lines changed: 40 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh
2+
exec 2>&1
3+
4+
[ -r ./conf ] && . ./conf
5+
6+
: "${OPTS:=-config /etc/OliveTin/config.yaml}"
7+
8+
cd /var/lib/olivetin
9+
exec chpst -u _olivetin OliveTin -configdir /etc/OliveTin ${OPTS}

‎srcpkgs/olivetin/template‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Template file for 'olivetin'
2+
pkgname=olivetin
3+
version=3000.20.0
4+
revision=1
5+
nopie=yes
6+
wrksrc="OliveTin-${version}"
7+
hostmakedepends="go nodejs python3"
8+
9+
short_desc="Web interface for running predefined shell commands"
10+
maintainer="Orphaned <orphan@voidlinux.org>"
11+
license="AGPL-3.0-only"
12+
homepage="https://www.olivetin.app/"
13+
distfiles="https://github.com/OliveTin/OliveTin/archive/refs/tags/${version}.tar.gz"
14+
checksum=fa0cd2ef577756e701aeb0ce4ee3918019e5c78ce4ecee568d51e31a65f4474a
15+
system_accounts="_olivetin"
16+
make_dirs="/etc/OliveTin 0750 _olivetin _olivetin
17+
/var/lib/olivetin 0750 _olivetin _olivetin"
18+
19+
do_build() {
20+
make -C frontend dist
21+
sed -i 's|config.WebUIDir = "./webui"|config.WebUIDir = "/usr/share/olivetin/webui"|' service/internal/config/config.go
22+
(cd service && go build -buildmode=pie -ldflags "-X main.version=${version}" -o OliveTin .)
23+
}
24+
25+
do_install() {
26+
vbin service/OliveTin
27+
vmkdir usr/share/olivetin/webui
28+
vcopy frontend/dist/. usr/share/olivetin/webui
29+
vsv olivetin
30+
}
31+

0 commit comments

Comments
 (0)