Github messages for voidlinux
 help / color / mirror / Atom feed
From: paper42 <paper42@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: WIP: New packages: gotify server and CLI
Date: Sun, 03 Jan 2021 21:12:46 +0100	[thread overview]
Message-ID: <20210103201246.XUWjzQ5twORvZA1QQO9YM656xaU_pT5YHaNAQYXkWr8@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-27583@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1523 bytes --]

New comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/27583#issuecomment-753669982

Comment:
I tried to package this a few months ago, but abandoned it after the UI didn't work, but I don't remember a segfault. Here is my template (not optimal, some lines are probably not neccessary):
```
# Template file for 'gotify-server'
pkgname=gotify-server
version=2.0.20
revision=1
wrksrc=server-${version}
build_style=go
go_ldflags="-X 'main.Version=${version}' -X 'main.Mode=prod'"
go_import_path="github.com/gotify/server"
hostmakedepends="yarn packr2"
short_desc="Simple server for sending and receiving messages in real-time"
maintainer="Paper <paper@tilde.institute>"
license="MIT"
homepage="https://gotify.net/"
distfiles="https://github.com/gotify/server/archive/v${version}.tar.gz"
checksum=18b656af071368a37493286a2fe6718ec9e50fcaa09ace651c4d72971cc70e89

system_accounts="_gotify"
make_dirs="/var/gotify/ 0755 _gotify _gotify"

do_check() {
	#make test-race test-coverage # test-js
	make test
}

post_extract() {
	vsed -i config.example.yml -e 's,data/,/var/gotify/,'
}

pre_build() {
	cd ui
	yarn install
	yarn build
	cd ${wrksrc}
	# embed assets to the binary
	packr2
}

post_install() {
	mv ${DESTDIR}/usr/bin/server ${DESTDIR}/usr/bin/gotify-server
	vlicense LICENSE
	vsconf config.example.yml
	vsv gotify
}
```
`files/gotify/run`:
```
#!/bin/sh
export GIN_MODE=release
exec chpst -u _gotify:_gotify gotify-server
```

  parent reply	other threads:[~2021-01-03 20:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-31 21:14 [PR PATCH] " CameronNemo
2021-01-03  9:45 ` WIP: " paper42
2021-01-03 16:37 ` CameronNemo
2021-01-03 16:38 ` CameronNemo
2021-01-03 20:12 ` paper42 [this message]
2021-01-03 21:13 ` [PR PATCH] [Updated] " CameronNemo
2021-01-15  5:42 ` CameronNemo
2021-01-15  5:43 ` [PR PATCH] [Updated] " CameronNemo
2021-01-16 23:28 ` paper42
2021-01-17  1:26 ` [PR PATCH] [Closed]: " CameronNemo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210103201246.XUWjzQ5twORvZA1QQO9YM656xaU_pT5YHaNAQYXkWr8@z \
    --to=paper42@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).