New package: gotify-server-2.1.4
This commit is contained in:
parent
df8147b0a5
commit
ff0ae34f92
1
srcpkgs/gotify-server/files/gotify-server/log/run
Symbolic link
1
srcpkgs/gotify-server/files/gotify-server/log/run
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/bin/vlogger
|
3
srcpkgs/gotify-server/files/gotify-server/run
Executable file
3
srcpkgs/gotify-server/files/gotify-server/run
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
exec 2>&1
|
||||
exec chpst -u _gotify:_gotify gotify-server
|
44
srcpkgs/gotify-server/template
Normal file
44
srcpkgs/gotify-server/template
Normal file
@ -0,0 +1,44 @@
|
||||
# Template file for 'gotify-server'
|
||||
pkgname=gotify-server
|
||||
version=2.1.4
|
||||
revision=1
|
||||
wrksrc="server-$version"
|
||||
build_style=go
|
||||
go_import_path="github.com/gotify/server/v2"
|
||||
go_ldflags="-w -s -extldflags=-fuse-ld=bfd \
|
||||
-X main.Version=${version} \
|
||||
-X main.BuildDate=${SOURCE_DATE_EPOCH} \
|
||||
-X main.Mode=prod"
|
||||
hostmakedepends="yarn packr2"
|
||||
short_desc="Simple server for sending and receiving messages"
|
||||
maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
|
||||
license="MIT"
|
||||
homepage="https://gotify.net"
|
||||
distfiles="https://github.com/gotify/server/archive/v${version}.tar.gz"
|
||||
checksum=141e16147dadc34264c4ec9fb1e28df229148d87fa73deaad3ac5b2ecbb0dfb3
|
||||
conf_files="/etc/gotify/config.yml"
|
||||
|
||||
system_accounts="_gotify"
|
||||
_gotify_homedir="/var/lib/gotify"
|
||||
make_dirs="/var/lib/gotify 0750 _gotify _gotify"
|
||||
|
||||
post_patch() {
|
||||
vsed 's,data/,/var/lib/gotify/,' -i config.example.yml
|
||||
}
|
||||
|
||||
pre_build() {
|
||||
cd ui
|
||||
yarn
|
||||
yarn build
|
||||
|
||||
cd "$wrksrc"
|
||||
packr2
|
||||
}
|
||||
|
||||
post_install() {
|
||||
mv ${DESTDIR}/usr/bin/server ${DESTDIR}/usr/bin/gotify-server
|
||||
vlicense LICENSE
|
||||
vinstall config.example.yml 644 etc/gotify config.yml
|
||||
|
||||
vsv gotify-server
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user