From: jcgruenhage <jcgruenhage@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] go-ipfs: add runit service.
Date: Fri, 23 Oct 2020 00:36:09 +0200 [thread overview]
Message-ID: <20201022223609.Xost8hOhwBsU2v2CTtOorVwjIQc2BrGzpgu14ud-51w@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: 333 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.
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: 2401 bytes --]
From 7ad13aeb4cd8c813a605b7e365015a19d8acb4c0 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 | 6 +++++-
2 files changed, 9 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..6120b2300c2 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,9 @@ 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"
+_ipfs_homedir="/var/lib/ipfs"
+
pre_build() {
if [ "$CROSS_BUILD" ]; then
export CGO_ENABLED=0
@@ -26,4 +29,5 @@ post_install() {
vlicense LICENSE-MIT
vdoc README.md
vdoc CHANGELOG.md
+ vsv ipfs
}
From a4debb8299ec64d55af96aa68b0b055c1d5ac20c 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 6120b2300c2..7733e5cf971 100644
--- a/srcpkgs/go-ipfs/template
+++ b/srcpkgs/go-ipfs/template
@@ -25,7 +25,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 22:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-21 20:20 [PR PATCH] " 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 ` jcgruenhage [this message]
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 ` [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=20201022223609.Xost8hOhwBsU2v2CTtOorVwjIQc2BrGzpgu14ud-51w@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).