Github messages for voidlinux
 help / color / mirror / Atom feed
From: jcgruenhage <jcgruenhage@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] go-ipfs: add runit service and use vcompletion
Date: Fri, 23 Oct 2020 13:28:15 +0200	[thread overview]
Message-ID: <20201023112815.rSckmo6xFAckgAemWdiGrJmtYrgxtnpa0HAhovqW5J8@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-25777@inbox.vuxu.org>

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

There is an updated pull request by jcgruenhage against master on the void-packages repository

https://github.com/jcgruenhage/void-packages go-ipfs-0.7.0_2
https://github.com/void-linux/void-packages/pull/25777

go-ipfs: add runit service and use vcompletion


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-go-ipfs-0.7.0_2-25777.patch --]
[-- Type: text/x-diff, Size: 2217 bytes --]

From f18c4586971674207337a8e02ffbf29d3dd46984 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Wed, 21 Oct 2020 22:18:49 +0200
Subject: [PATCH] go-ipfs: add runit service and use vcompletion

---
 srcpkgs/go-ipfs/files/ipfs/log/run | 1 +
 srcpkgs/go-ipfs/files/ipfs/run     | 4 ++++
 srcpkgs/go-ipfs/template           | 9 +++++++--
 3 files changed, 12 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/go-ipfs/files/ipfs/log/run
 create mode 100755 srcpkgs/go-ipfs/files/ipfs/run

diff --git a/srcpkgs/go-ipfs/files/ipfs/log/run b/srcpkgs/go-ipfs/files/ipfs/log/run
new file mode 120000
index 00000000000..3a5b4a58605
--- /dev/null
+++ b/srcpkgs/go-ipfs/files/ipfs/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/go-ipfs/files/ipfs/run b/srcpkgs/go-ipfs/files/ipfs/run
new file mode 100755
index 00000000000..29690e65659
--- /dev/null
+++ b/srcpkgs/go-ipfs/files/ipfs/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+[ -r conf ] && . ./conf
+export IPFS_PATH=${IPFS_PATH:=/var/lib/ipfs}
+exec chpst -u _ipfs ipfs daemon ${OPTS:=--init --enable-gc --migrate} 2>&1
diff --git a/srcpkgs/go-ipfs/template b/srcpkgs/go-ipfs/template
index 96509787305..4f0a7e98403 100644
--- a/srcpkgs/go-ipfs/template
+++ b/srcpkgs/go-ipfs/template
@@ -1,7 +1,7 @@
 # Template file for 'go-ipfs'
 pkgname=go-ipfs
 version=0.7.0
-revision=1
+revision=2
 build_style=go
 go_import_path="github.com/ipfs/${pkgname}"
 go_package="${go_import_path}/cmd/ipfs"
@@ -15,6 +15,10 @@ changelog="https://github.com/ipfs/go-ipfs/blob/master/CHANGELOG.md"
 distfiles="https://${go_import_path}/archive/v${version}.tar.gz"
 checksum=152986ebb30657ab706bee708fbe929114f5e8c39fbe602e3bbec93fe74c9123
 
+system_accounts="_ipfs"
+make_dirs="/var/lib/ipfs 0700 _ipfs _ipfs"
+_ipfs_homedir="/var/lib/ipfs"
+
 pre_build() {
 	if [ "$CROSS_BUILD" ]; then
 		export CGO_ENABLED=0
@@ -22,8 +26,9 @@ pre_build() {
 }
 
 post_install() {
-	vinstall misc/completion/ipfs-completion.bash 644 usr/share/bash-completion/completions ipfs
+	vcompletion misc/completion/ipfs-completion.bash bash ipfs
 	vlicense LICENSE-MIT
 	vdoc README.md
 	vdoc CHANGELOG.md
+	vsv ipfs
 }

  parent reply	other threads:[~2020-10-23 11:28 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-21 20:20 [PR PATCH] go-ipfs: add runit service jcgruenhage
2020-10-21 20:25 ` [PR REVIEW] " jcgruenhage
2020-10-21 21:09 ` sirikid
2020-10-22 21:46 ` jcgruenhage
2020-10-22 22:36 ` [PR PATCH] [Updated] " jcgruenhage
2020-10-22 23:37 ` [PR PATCH] [Updated] go-ipfs: add runit service and use vcompletion jcgruenhage
2020-10-23 11:00 ` jcgruenhage
2020-10-23 11:10 ` [PR REVIEW] " Duncaen
2020-10-23 11:28 ` jcgruenhage [this message]
2020-10-23 11:28 ` jcgruenhage
2020-10-24 21:06 ` [PR PATCH] [Merged]: " Piraty

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=20201023112815.rSckmo6xFAckgAemWdiGrJmtYrgxtnpa0HAhovqW5J8@z \
    --to=jcgruenhage@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).