summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Roman <davidroman96@gmail.com>2019-07-09 22:58:31 +0200
committerJoonas Niilola <juippis@gentoo.org>2020-02-13 08:26:31 +0200
commite5ced3ba64948849d68a23f423841c3bf8428c2b (patch)
tree10f8a0861cbbfb4f466d76b3b6be4067d45c0d58 /net-p2p/go-ipfs/files
parentwww-servers/nginx-unit: Remove obsolete PHP (diff)
downloadgentoo-e5ced3ba64948849d68a23f423841c3bf8428c2b.tar.gz
gentoo-e5ced3ba64948849d68a23f423841c3bf8428c2b.tar.bz2
gentoo-e5ced3ba64948849d68a23f423841c3bf8428c2b.zip
net-p2p/go-ipfs: new package
non binary version of go-ipfs-bin Package-Manager: Portage-2.3.68, Repoman-2.3.16 Signed-off-by: David Roman <davidroman96@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/12412 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'net-p2p/go-ipfs/files')
-rw-r--r--net-p2p/go-ipfs/files/ipfs-at.service18
-rw-r--r--net-p2p/go-ipfs/files/ipfs.confd1
-rw-r--r--net-p2p/go-ipfs/files/ipfs.init17
-rw-r--r--net-p2p/go-ipfs/files/ipfs.service19
4 files changed, 55 insertions, 0 deletions
diff --git a/net-p2p/go-ipfs/files/ipfs-at.service b/net-p2p/go-ipfs/files/ipfs-at.service
new file mode 100644
index 000000000000..c9ce91294177
--- /dev/null
+++ b/net-p2p/go-ipfs/files/ipfs-at.service
@@ -0,0 +1,18 @@
+[Unit]
+Description=InterPlanetary File System
+After=network.target
+
+[Service]
+CPUSchedulingPolicy=batch
+Environment=IPFS_PATH=
+ExecStart=/usr/bin/ipfs daemon --enable-gc --migrate
+ExecStop=/usr/bin/ipfs shutdown
+LimitNOFILE=8192
+PrivateTmp=yes
+ProtectSystem=full
+Restart=on-failure
+Type=simple
+User=%i
+
+[Install]
+WantedBy=multi-user.target
diff --git a/net-p2p/go-ipfs/files/ipfs.confd b/net-p2p/go-ipfs/files/ipfs.confd
new file mode 100644
index 000000000000..f1e8eb77adf5
--- /dev/null
+++ b/net-p2p/go-ipfs/files/ipfs.confd
@@ -0,0 +1 @@
+IPFS_PATH=/var/lib/ipfs/.ipfs
diff --git a/net-p2p/go-ipfs/files/ipfs.init b/net-p2p/go-ipfs/files/ipfs.init
new file mode 100644
index 000000000000..52f48c52d1cd
--- /dev/null
+++ b/net-p2p/go-ipfs/files/ipfs.init
@@ -0,0 +1,17 @@
+#!/sbin/openrc-run
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+export IPFS_PATH=${IPFS_PATH:-/var/lib/ipfs/.ipfs}
+
+pidfile="/run/ipfs.pid"
+command="/usr/bin/ipfs"
+command_args="daemon --enable-gc --migrate"
+command_user="ipfs:ipfs"
+start_stop_daemon_args="--wait 1000 -b \
+ -1 /var/log/ipfs/ipfs.log \
+ -2 /var/log/ipfs/ipfs.log"
+
+depend() {
+ need net
+}
diff --git a/net-p2p/go-ipfs/files/ipfs.service b/net-p2p/go-ipfs/files/ipfs.service
new file mode 100644
index 000000000000..12e9d19fd965
--- /dev/null
+++ b/net-p2p/go-ipfs/files/ipfs.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=InterPlanetary File System
+After=network.target
+
+[Service]
+CPUSchedulingPolicy=batch
+Environment=IPFS_PATH=/var/lib/ipfs/.ipfs
+ExecStart=/usr/bin/ipfs daemon --enable-gc --migrate
+ExecStop=/usr/bin/ipfs shutdown
+Group=ipfs
+LimitNOFILE=8192
+PrivateTmp=yes
+ProtectSystem=full
+Restart=on-failure
+Type=simple
+User=ipfs
+
+[Install]
+WantedBy=multi-user.target