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 01:37:54 +0200 [thread overview]
Message-ID: <20201022233754.miOMEeAQF6xX0yjSHs5F0ybVgQz9tSbmhdqTRvEa6r4@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: 2448 bytes --]
From 6504283f1c0c2c83f0f129b3094be36528cca283 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 1/2] go-ipfs: add runit service.
---
srcpkgs/go-ipfs/files/ipfs/run | 4 ++++
srcpkgs/go-ipfs/template | 7 ++++++-
2 files changed, 10 insertions(+), 1 deletion(-)
create mode 100755 srcpkgs/go-ipfs/files/ipfs/run
diff --git a/srcpkgs/go-ipfs/files/ipfs/run b/srcpkgs/go-ipfs/files/ipfs/run
new file mode 100755
index 00000000000..291e47879c0
--- /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} 1>/dev/null
diff --git a/srcpkgs/go-ipfs/template b/srcpkgs/go-ipfs/template
index 96509787305..b03ead0e5ba 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
@@ -26,4 +30,5 @@ post_install() {
vlicense LICENSE-MIT
vdoc README.md
vdoc CHANGELOG.md
+ vsv ipfs
}
From d6d1fbea425a5fa3f0abc873ec3f4deb4ddd2fc9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
<jan.christian@gruenhage.xyz>
Date: Fri, 23 Oct 2020 00:35:14 +0200
Subject: [PATCH 2/2] go-ipfs: use vcompletion for completions
---
srcpkgs/go-ipfs/template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/go-ipfs/template b/srcpkgs/go-ipfs/template
index b03ead0e5ba..4f0a7e98403 100644
--- a/srcpkgs/go-ipfs/template
+++ b/srcpkgs/go-ipfs/template
@@ -26,7 +26,7 @@ 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
next prev parent reply other threads:[~2020-10-22 23:37 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 ` jcgruenhage [this message]
2020-10-23 11:00 ` [PR PATCH] [Updated] go-ipfs: add runit service and use vcompletion jcgruenhage
2020-10-23 11:10 ` [PR REVIEW] " Duncaen
2020-10-23 11:28 ` [PR PATCH] [Updated] " jcgruenhage
2020-10-23 11:28 ` [PR REVIEW] " 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=20201022233754.miOMEeAQF6xX0yjSHs5F0ybVgQz9tSbmhdqTRvEa6r4@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).