Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: Gokapi-1.6.1
@ 2022-08-31 15:58 ahesford
  2022-09-03  1:48 ` [PR PATCH] [Closed]: " ahesford
  0 siblings, 1 reply; 2+ messages in thread
From: ahesford @ 2022-08-31 15:58 UTC (permalink / raw)
  To: ml

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

There is a new pull request by ahesford against master on the void-packages repository

https://github.com/ahesford/void-packages gokapi
https://github.com/void-linux/void-packages/pull/39004

New package: Gokapi-1.6.1
Looking to use this for work, might as well package it.

#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

A patch file from https://github.com/void-linux/void-packages/pull/39004.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gokapi-39004.patch --]
[-- Type: text/x-diff, Size: 2104 bytes --]

From 9b05e152f60a3691125f4d3c2dda5d8d72998b0f Mon Sep 17 00:00:00 2001
From: "Andrew J. Hesford" <ajh@sideband.org>
Date: Tue, 30 Aug 2022 21:54:50 -0400
Subject: [PATCH] New package: Gokapi-1.6.1

---
 srcpkgs/Gokapi/files/gokapi/log/run |  3 +++
 srcpkgs/Gokapi/files/gokapi/run     | 11 +++++++++++
 srcpkgs/Gokapi/template             | 25 +++++++++++++++++++++++++
 3 files changed, 39 insertions(+)
 create mode 100644 srcpkgs/Gokapi/files/gokapi/log/run
 create mode 100644 srcpkgs/Gokapi/files/gokapi/run
 create mode 100644 srcpkgs/Gokapi/template

diff --git a/srcpkgs/Gokapi/files/gokapi/log/run b/srcpkgs/Gokapi/files/gokapi/log/run
new file mode 100644
index 000000000000..cb759c1f80d7
--- /dev/null
+++ b/srcpkgs/Gokapi/files/gokapi/log/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec logger -t gokapi -p daemon.info
diff --git a/srcpkgs/Gokapi/files/gokapi/run b/srcpkgs/Gokapi/files/gokapi/run
new file mode 100644
index 000000000000..cc7bb8dae22f
--- /dev/null
+++ b/srcpkgs/Gokapi/files/gokapi/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+[ -r ./conf ] && . ./conf 
+
+: ${USER:=_gokapi}
+: ${GROUP:=_gokapi}
+: ${HOME:=/var/lib/gokapi}
+
+export USER GROUP HOME
+
+cd "${HOME}" && exec chpst -u ${USER}:${GROUP} gokapi 2>&1
diff --git a/srcpkgs/Gokapi/template b/srcpkgs/Gokapi/template
new file mode 100644
index 000000000000..4eb7702d73cc
--- /dev/null
+++ b/srcpkgs/Gokapi/template
@@ -0,0 +1,25 @@
+# Template file for 'Gokapi'
+pkgname=Gokapi
+version=1.6.1
+revision=1
+build_style=go
+go_import_path=github.com/forceu/gokapi
+go_package="${go_import_path}/cmd/gokapi"
+short_desc="Lightweight, self-hosted Firefox Send alternative"
+maintainer="Andrew J. Hesford <ajh@sideband.org>"
+license="AGPL-3.0-only"
+homepage="https://github.com/Forceu/Gokapi"
+distfiles="${homepage}/archive/v${version}.tar.gz"
+checksum=225f069817eef50cdd316f6c9ed037e939f4c5678c488dfb54dd52141d367e0f
+system_accounts="_gokapi"
+_gokapi_homedir="/var/lib/gokapi"
+make_dirs="/var/lib/gokapi 700 _gokapi _gokapi"
+
+pre_build() {
+	GOARCH= go generate ./...
+}
+
+post_install() {
+	vlicense LICENSE.md
+	vsv gokapi
+}

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Closed]: New package: Gokapi-1.6.1
  2022-08-31 15:58 [PR PATCH] New package: Gokapi-1.6.1 ahesford
@ 2022-09-03  1:48 ` ahesford
  0 siblings, 0 replies; 2+ messages in thread
From: ahesford @ 2022-09-03  1:48 UTC (permalink / raw)
  To: ml

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

There's a closed pull request on the void-packages repository

New package: Gokapi-1.6.1
https://github.com/void-linux/void-packages/pull/39004

Description:
Looking to use this for work, might as well package it.

#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-03  1:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-31 15:58 [PR PATCH] New package: Gokapi-1.6.1 ahesford
2022-09-03  1:48 ` [PR PATCH] [Closed]: " ahesford

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).