summaryrefslogtreecommitdiff
path: root/net-p2p/go-ipfs-bin
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-08-08 20:11:47 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-08-08 20:11:47 +0100
commitf625b9919a60a30f1bd860f7d1b2eac183ced593 (patch)
tree7543f00925ff7277e31881de0a87801681f6f92f /net-p2p/go-ipfs-bin
parente3872864be25f7421015bef2732fa57c0c9fb726 (diff)
gentoo resync : 08.08.2018
Diffstat (limited to 'net-p2p/go-ipfs-bin')
-rw-r--r--net-p2p/go-ipfs-bin/Manifest10
-rw-r--r--net-p2p/go-ipfs-bin/files/ipfs.confd1
-rw-r--r--net-p2p/go-ipfs-bin/files/ipfs.init17
-rw-r--r--net-p2p/go-ipfs-bin/files/ipfs.service14
-rw-r--r--net-p2p/go-ipfs-bin/go-ipfs-bin-0.4.15-r1.ebuild (renamed from net-p2p/go-ipfs-bin/go-ipfs-bin-0.4.15.ebuild)20
-rw-r--r--net-p2p/go-ipfs-bin/go-ipfs-bin-0.4.17.ebuild47
6 files changed, 107 insertions, 2 deletions
diff --git a/net-p2p/go-ipfs-bin/Manifest b/net-p2p/go-ipfs-bin/Manifest
index 1207d392babb..9646412a452d 100644
--- a/net-p2p/go-ipfs-bin/Manifest
+++ b/net-p2p/go-ipfs-bin/Manifest
@@ -1,11 +1,19 @@
+AUX ipfs.confd 30 BLAKE2B 7ecaa40f2a4097690f9d8091da5891e0bbfb0f298bed4a59769c8d0ef978a2471865a01177950da5869b61f3b8c124f43eab97daf297c06efecdc25785a5846d SHA512 c55afeb3efe381d18258ddf00f58325b77156375cf223fb2daa049df056efe22e9139cce0f81dc4c73759dad5097af5f3201414beb5950bd894df9ae8c7c4ed1
+AUX ipfs.init 464 BLAKE2B f5927ab792427a87c330772fca4adc177ae84899be5c6b856f763d6e71d1cbdf1d151bf6eea46ff13ba5ce5996a55468a4749d37c1e8306c4d07f897f17430a1 SHA512 6616a0114039a7c178ee9788c748e4abf143a875df2a9d6d823249d7adef2024cd3f537cf45a624e76751792e8c24b1d42b0dd536686b14d6f53f59ca53ca1f4
+AUX ipfs.service 245 BLAKE2B b2d528a82a79d1e7fd5cfedac1a4db2412e7e02c87c3e5e902b0bd1a9259fd4156328b8c289df42a898a64a396d83ef93f24743d042b4fe24a2d97f8f0c5235e SHA512 58e21b8c7a7c0af0b05ee936fcd7e8e61903755f1c124a4d59758bb094d520d3dafb9b5b8b92d2a4b414367fbdaf2ec0025c05cbc796d0ee26f2916d12dde472
DIST go-ipfs-bin-0.4.14.bash 20856 BLAKE2B 60370fabf7dee1f157c242fef5709b486428db4dde24388fca1a21655b44e9cbd07a523af05c66f70e8a7ac43a40cb4a439faaae856bfe52c74853e7539b4f3e SHA512 17568f42a0980734e57a6c22bab4bac149719ab4d586a5a477f4b11610c2c982c1b5c395b9244c73aa95c82bd40688b8368960bfc0fd5db2e6139660d38e6c9a
DIST go-ipfs-bin-0.4.15.bash 20856 BLAKE2B 60370fabf7dee1f157c242fef5709b486428db4dde24388fca1a21655b44e9cbd07a523af05c66f70e8a7ac43a40cb4a439faaae856bfe52c74853e7539b4f3e SHA512 17568f42a0980734e57a6c22bab4bac149719ab4d586a5a477f4b11610c2c982c1b5c395b9244c73aa95c82bd40688b8368960bfc0fd5db2e6139660d38e6c9a
+DIST go-ipfs-bin-0.4.17.bash 20856 BLAKE2B 60370fabf7dee1f157c242fef5709b486428db4dde24388fca1a21655b44e9cbd07a523af05c66f70e8a7ac43a40cb4a439faaae856bfe52c74853e7539b4f3e SHA512 17568f42a0980734e57a6c22bab4bac149719ab4d586a5a477f4b11610c2c982c1b5c395b9244c73aa95c82bd40688b8368960bfc0fd5db2e6139660d38e6c9a
DIST go-ipfs_v0.4.14_linux-386.tar.gz 8199245 BLAKE2B 950daceb417126203b803e512a41c004118990a981ead1f4dcc09185994be17d2c0899627f0a3cbb99e20a1e003d704e9bee6ce405dfd992a1871f3cdbc324b7 SHA512 bb2f88f6409adbe79a543bdde8d758a7e0f043b044aac42886fe9f2a973cf3477ef333df52103673aa93dfddc71946cad99021df813a9425f42599ee1ce70270
DIST go-ipfs_v0.4.14_linux-amd64.tar.gz 10218138 BLAKE2B 10269581a8325172e5a5cebd64a760289864850703e62dc7e29a330d946d51b0b3ce2631a19fe9c7ea32f2eebb2b34a2bdb2682ac86a78bcf87a012d97bf5585 SHA512 71269aca8350e67a70faf7c16d2d7f9885d2e46a5af7cd737d888369d4a231e06ac8b4bebac43eda54c39b8cf345c80fbbc15fd227f0923f8381b3b0720fccb8
DIST go-ipfs_v0.4.14_linux-arm.tar.gz 8136810 BLAKE2B 4fc6b52fec544cdd0c33ca31dd520821bbba2f8fab2b90994cd092de7ea7a132db4acdad80c2929df11b2e0d36d040efdd1708db5b1c3f05b89dadf60974544e SHA512 d87b5072aab2e3c00c8028f69042dea53523ba43eae01257b6fd25b9f5dc43aa09474368496da40bd62f99f63cc53c9786ce6babae08016d86ec8030c8c06b27
DIST go-ipfs_v0.4.15_linux-386.tar.gz 8189548 BLAKE2B 6f82260f92b55d863189ad6f0cdeff4972df863953d132cbb11623e06c33b154e650e9fd0bd03d4a3f8477cce22447603a0207f0afc6eed074fcf7d05ead01af SHA512 11b4f11da0754819456dc7b5d149d72670582cd3e9c90b518546024356857c49a9a97ebebf1bc495e48e4bde96884e58f979a51fc57993bdff0509bccc6fad31
DIST go-ipfs_v0.4.15_linux-amd64.tar.gz 10209630 BLAKE2B ce6fec2968765ac54f1376f0e8f9f3728338b06104a4b841b7993b5955f889e62e0bcf4e79fe6e180ef2e6cb4e9b07745935aaea74d7d6a050b7484e6d6ba9be SHA512 d77790c5c58f49229989b0e08fa537bc084bf9e2953479e307557e96924f96b913f00c4a7a76c687f2db63f098a18a575f34d88a3f226e7933039e8d8910dd10
DIST go-ipfs_v0.4.15_linux-arm.tar.gz 8124892 BLAKE2B 8f3ab08f83ca7c4067a230fc0557393f107a08d1df069fd2029393cc1320d5cf678316e988472696aeceadea2d4f04e8c0bb85526284627c1d9e5f0acb2cc3e7 SHA512 4e98fda84d0f8c1e118150771b03a238cec96631d8ea798bf5c494f60711f1d272abe0830edfafb9f7fa6e246c59f30fe7896f231217f1b5aa2bdb6ccd3a94a5
+DIST go-ipfs_v0.4.17_linux-386.tar.gz 8625346 BLAKE2B e72b51a25eb0c18958f434483d28c45b43120ec9e583184cad8ac57c9470d685c568d9e166899d355200f89a0fe9fb3b05f9ce4c00c8c03bb928b0714b5d67c8 SHA512 031ee1624499ba9fd72efef780b1a04dee9a69dccc41190cebefcf5c271f676829fc220281db24d75a9159cd52fbbe3c85855911a5925efa23db85d2daefb500
+DIST go-ipfs_v0.4.17_linux-amd64.tar.gz 10726868 BLAKE2B bde05330dec16a9d40cf6ab0a872a2b2640e9d6811bc70b0a77a2149c36f0f9ddca927dcf66a7264b71b9a39ca49ab4e698ddaa7683b4b4ce871e207032ba9f5 SHA512 1d0b1b14b544c81ed6ecf4b5481e9b186d11d29afe1c63ad49abcc54346ec98ba28f7cfd712b5947a988ea7b810c71178ee79aadc87f3a946ecbfd5dcfd00b17
+DIST go-ipfs_v0.4.17_linux-arm.tar.gz 8541559 BLAKE2B a0633f414a2b8e6bfd1679442653cdcecaa1f3e5072ed9ca3afb64dd0183155077af71723a282285f2d70b7ac256d4e2e27515175453f16cd900ee01dcfb7440 SHA512 586b40575a18933eccd3a5af81efac8c0b6ea941bb5cef9e5bfc95ce56134863934c0e2fde29aa24944791c4842f0055ef43d1aab64b339649033801e4739cb6
EBUILD go-ipfs-bin-0.4.14.ebuild 795 BLAKE2B f095381ec82d12277234f86342b3171e4cc6a15034293ea147a383f077b90d252f4952e0e9e9f33058aba7ea3dc7289177d4f14ebd0a8e93c14383c72ff4cc57 SHA512 afb45caddf2511d8afff6d774fd82d10ac9dd829316a9e26cb7e8e7c0a5890cc3dd751a2eccb6b2cd8bd3de2bbf02a0dfe2919664ee0364960f023d78540032a
-EBUILD go-ipfs-bin-0.4.15.ebuild 772 BLAKE2B 764b2f58ddd2c3fea8955a1bc76aa6c5189d4a1f826b71d8b5684755db3815c4ca908c3237fd9bf7ad10b1f083109b6d92204d4818dc165ca22bcaf816a6626b SHA512 1c7ab86d2ee7f6acdcdccb679b5253dd7ee08c965a0777bc735cbbd215cc03a6ad67cf1395688d63d514761518bb0e24112d51e964403a658717e4e31b1313db
+EBUILD go-ipfs-bin-0.4.15-r1.ebuild 1287 BLAKE2B 3666b649191a0a28df535b602c5b72f710c3e4bbbd6d86a87d6a7738f8f6340c5b339734c8f302601621709b1b3a8a140dbe4d8caa1183ec2261d5091f6e8af7 SHA512 e14ef66905312d4492ad994ba3d51d3e133a9545bfd96ccf04e1086298230324f4677e456f968739dc4dd359269a975cc3267c520a7c8d1bfeeae272fdfd3078
+EBUILD go-ipfs-bin-0.4.17.ebuild 1287 BLAKE2B 3666b649191a0a28df535b602c5b72f710c3e4bbbd6d86a87d6a7738f8f6340c5b339734c8f302601621709b1b3a8a140dbe4d8caa1183ec2261d5091f6e8af7 SHA512 e14ef66905312d4492ad994ba3d51d3e133a9545bfd96ccf04e1086298230324f4677e456f968739dc4dd359269a975cc3267c520a7c8d1bfeeae272fdfd3078
MISC metadata.xml 606 BLAKE2B a6db8a5d8f57434206cbe3a8d69a3734381fdc2f13c2dd17596f2dd69fce52deca63717920ef0ff8f861451465f4702f967dbe1790916898000c7eeb858604a3 SHA512 3c0ae2eeeb423edc50a5961f9e9f040b33c0a343e77b47dafc1699eea65708df2365944338da691a637ea79680976dfc91346e6572c42cae94a429c0902c8065
diff --git a/net-p2p/go-ipfs-bin/files/ipfs.confd b/net-p2p/go-ipfs-bin/files/ipfs.confd
new file mode 100644
index 000000000000..f1e8eb77adf5
--- /dev/null
+++ b/net-p2p/go-ipfs-bin/files/ipfs.confd
@@ -0,0 +1 @@
+IPFS_PATH=/var/lib/ipfs/.ipfs
diff --git a/net-p2p/go-ipfs-bin/files/ipfs.init b/net-p2p/go-ipfs-bin/files/ipfs.init
new file mode 100644
index 000000000000..7b38cf43049b
--- /dev/null
+++ b/net-p2p/go-ipfs-bin/files/ipfs.init
@@ -0,0 +1,17 @@
+#!/sbin/openrc-run
+# Copyright 1999-2018 Gentoo Foundation
+# 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-bin/files/ipfs.service b/net-p2p/go-ipfs-bin/files/ipfs.service
new file mode 100644
index 000000000000..189ace2fd762
--- /dev/null
+++ b/net-p2p/go-ipfs-bin/files/ipfs.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=InterPlanetary File System
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/ipfs daemon --enable-gc --migrate
+ExecStop=/usr/bin/ipfs shutdown
+Group=%i
+Restart=always
+Type=simple
+User=%i
+
+[Install]
+WantedBy=multi-user.target
diff --git a/net-p2p/go-ipfs-bin/go-ipfs-bin-0.4.15.ebuild b/net-p2p/go-ipfs-bin/go-ipfs-bin-0.4.15-r1.ebuild
index c810e8c42f96..ac6442670566 100644
--- a/net-p2p/go-ipfs-bin/go-ipfs-bin-0.4.15.ebuild
+++ b/net-p2p/go-ipfs-bin/go-ipfs-bin-0.4.15-r1.ebuild
@@ -3,7 +3,7 @@
EAPI=6
-inherit bash-completion-r1
+inherit bash-completion-r1 systemd user
DESCRIPTION="Main implementation of IPFS"
HOMEPAGE="https://ipfs.io/"
@@ -25,5 +25,23 @@ QA_PREBUILT="/usr/bin/ipfs"
src_install() {
dobin ipfs
+ systemd_dounit "${FILESDIR}/ipfs.service"
+ newinitd "${FILESDIR}/ipfs.init" ipfs
+ newconfd "${FILESDIR}/ipfs.confd" ipfs
+
newbashcomp "${DISTDIR}/${P}.bash" "ipfs"
+ keepdir /var/log/ipfs
+}
+
+pkg_preinst() {
+ enewgroup ipfs
+ enewuser ipfs "" "" /var/lib/ipfs ipfs
+
+ fowners -R ipfs:ipfs /var/log/ipfs
+}
+
+pkg_postinst() {
+ elog 'To be able to use the ipfs service you will need to create the ipfs repository'
+ elog '(eg: su -s /bin/sh -c "ipfs init -e" ipfs)'
+ elog 'or change IPFS_PATH of /etc/conf.d/ipfs with another with proper permissions.'
}
diff --git a/net-p2p/go-ipfs-bin/go-ipfs-bin-0.4.17.ebuild b/net-p2p/go-ipfs-bin/go-ipfs-bin-0.4.17.ebuild
new file mode 100644
index 000000000000..ac6442670566
--- /dev/null
+++ b/net-p2p/go-ipfs-bin/go-ipfs-bin-0.4.17.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit bash-completion-r1 systemd user
+
+DESCRIPTION="Main implementation of IPFS"
+HOMEPAGE="https://ipfs.io/"
+SRC_URI="amd64? ( https://dist.ipfs.io/go-ipfs/v${PV}/go-ipfs_v${PV}_linux-amd64.tar.gz )
+ x86? ( https://dist.ipfs.io/go-ipfs/v${PV}/go-ipfs_v${PV}_linux-386.tar.gz )
+ arm? ( https://dist.ipfs.io/go-ipfs/v${PV}/go-ipfs_v${PV}_linux-arm.tar.gz )
+
+ https://raw.githubusercontent.com/ipfs/go-ipfs/v${PV}/misc/completion/ipfs-completion.bash -> ${P}.bash"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~arm ~x86"
+
+RDEPEND="sys-fs/fuse"
+S="${WORKDIR}/go-ipfs"
+
+QA_PREBUILT="/usr/bin/ipfs"
+
+src_install() {
+ dobin ipfs
+
+ systemd_dounit "${FILESDIR}/ipfs.service"
+ newinitd "${FILESDIR}/ipfs.init" ipfs
+ newconfd "${FILESDIR}/ipfs.confd" ipfs
+
+ newbashcomp "${DISTDIR}/${P}.bash" "ipfs"
+ keepdir /var/log/ipfs
+}
+
+pkg_preinst() {
+ enewgroup ipfs
+ enewuser ipfs "" "" /var/lib/ipfs ipfs
+
+ fowners -R ipfs:ipfs /var/log/ipfs
+}
+
+pkg_postinst() {
+ elog 'To be able to use the ipfs service you will need to create the ipfs repository'
+ elog '(eg: su -s /bin/sh -c "ipfs init -e" ipfs)'
+ elog 'or change IPFS_PATH of /etc/conf.d/ipfs with another with proper permissions.'
+}