# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

EGO_PN="github.com/ipfs/go-ipfs"
EGO_COMMIT="7aab3c29f9d4e8f3bda271b4d5e96d0f88f06bad"
EGO_VENDOR=(
	"bazil.org/fuse 65cc252bf6691cb3c7014bcb2c8dc29de91e3a7e github.com/bazil/fuse"
	"github.com/AndreasBriese/bbloom 343706a395b76e5ca5c7dca46a5d937b48febc74"
	"github.com/Kubuxu/go-os-helper 3d3fc2fb493d8d889dddd5a4524283ac2faa4732"
	"github.com/Kubuxu/gocovmerge 7ecaa51963cdbbd985d4d0d8266fda9fab6680ca"
	"github.com/Stebalien/go-bitfield 076a62f9ce6ea421ab74a91f2d8dc7124f0cfd64"
	"github.com/aead/siphash 83563a290f60225eb120d724600b9690c3fb536f"
	"github.com/beorn7/perks 3a771d992973f24aa725d07868b467d1ddfceafb"
	"github.com/bifurcation/mint 824af65410658916142a7600349144e1289f2110"
	"github.com/blang/semver 2ee87856327ba09384cabd113bc6b5d174e9ec0f"
	"github.com/bren2010/proquint 38337c27106d8f06e9b5cddc6df973ceece1c8ea"
	"github.com/btcsuite/btcd 306aecffea325e97f513b3ff0cf7895a5310651d"
	"github.com/btcsuite/btclog 84c8d2346e9fc8c7b947e243b9c24e6df9fd206a"
	"github.com/btcsuite/btcutil 4c204d6978034c001714728401fcd63060d568b4"
	"github.com/btcsuite/go-socks 4720035b7bfd2a9bb130b1c184f8bbe41b6f0d0f"
	"github.com/btcsuite/goleveldb 7834afc9e8cd15233b6c3d97e12674a31ca24602"
	"github.com/btcsuite/snappy-go 0bdef8d067237991ddaa1bb6072a740bc40601ba"
	"github.com/btcsuite/websocket 31079b6807923eb23992c421b114992b95131b55"
	"github.com/btcsuite/winsvc 148c35904a229a5e84160ec95821e91ec2d30464"
	"github.com/cenkalti/backoff 1e4cf3da559842a91afcb6ea6141451e6c30c618"
	"github.com/cheekybits/genny d2cf3cdd35ce0d789056c4bc02a4d6349c947caf"
	"github.com/coreos/go-semver 9cad4c6d4f6940ce86a0b3797e849b89bb65a593"
	"github.com/cskr/pubsub 65166f5ae403cbf6dcdced31e1f8f8ad95485cb3"
	"github.com/davecgh/go-spew 152484fe5c9ff65d013f0f372d748c03e8749e6d"
	"github.com/davidlazar/go-crypto dcfb0a7ac018a248366f96bcd8a2f8c805d7b268"
	"github.com/dgraph-io/badger 8115aed38f8f8cd248d832f51c27700efc25b201"
	"github.com/dgryski/go-farm 3adb47b1fb0f6d9efcc5051a6c62e2e413ac85a9"
	"github.com/dustin/go-humanize e673fa1ffc91213297a60d18a6f513aa74bced52"
	"github.com/elgris/jsondiff 765b5c24c302e7c7fd032fdb8c69f101918229cb"
	"github.com/facebookgo/atomicfile 2de1f203e7d5e386a6833233882782932729f27e"
	"github.com/fatih/color 5b77d2a35fb0ede96d138fc9a99f5c9b6aef11b4"
	"github.com/fd/go-nat d6a8fd67f078b7cc7a16d623ee52e859b2daccd5"
	"github.com/fsnotify/fsnotify c2828203cd70a50dcccfb2761f8b1f8ceef9a8e9"
	"github.com/go-check/check 788fd78401277ebd861206a03c884797c6ec5541"
	"github.com/gogo/protobuf ba06b47c162d49f2af050fb4c75bcbc86a159d5c"
	"github.com/golang/mock 51421b967af1f557f93a59e0057aaf15ca02e29c"
	"github.com/golang/protobuf c823c79ea1570fb5ff454033735a8e68575d1d0f"
	"github.com/golang/snappy 2e65f85255dbc3072edf28d6b5b8efc472979f5a"
	"github.com/google/go-cmp 3af367b6b30c263d47e8895973edcca9a49cf029"
	"github.com/google/uuid 0cd6bf5da1e1c83f8b45653022c74f71af0538a4"
	"github.com/gopherjs/gopherjs 0766667cb4d1cfb8d5fde1fe210ae41ead3cf589"
	"github.com/gorilla/websocket 66b9c49e59c6c48f0ffce28c2d8b8a5678502c6d"
	"github.com/gxed/go-shellwords 02e3cf038dcea8290e44424da473dd12be796a8a"
	"github.com/gxed/hashland v0.0.1"
	"github.com/gxed/pubsub 26ebdf44f8241701f6ac147523687095c1b9213b"
	"github.com/hashicorp/errwrap 8a6fb523712970c966eefc6b39ed2c5e74880354"
	"github.com/hashicorp/go-multierror 886a7fbe3eb1c874d46f623bfa70af45f425b3d1"
	"github.com/hashicorp/golang-lru 7087cb70de9f7a8bc0a10c375cb0d2280a8edf9c"
	"github.com/hpcloud/tail a30252cb686a21eb2d0b98132633053ec2f7f1e5"
	"github.com/hsanjuan/go-libp2p-gostream e5c5cb660070bb1bd048e1ded13c60ae93aefb9a"
	"github.com/hsanjuan/go-libp2p-http ab43326c121aa6f13e8efd3d4b1ad2b2a8bad2d8"
	"github.com/huin/goupnp 1395d1447324cbea88d249fbfcfd70ea878fdfca"
	"github.com/ipfs/bbloom 4492942caf937893b9cf1ebba71c297beda904b2"
	"github.com/ipfs/dir-index-html 76b6774a477fe6263d445972fe176f3f3b4ea176"
	"github.com/ipfs/go-bitswap f5c954ea81186fae60f255c9b2e660b2be189c32"
	"github.com/ipfs/go-block-format 9e46c0dce5d9a041b8ea1eed8ca924b36355c61b"
	"github.com/ipfs/go-blockservice 9cc3cff48716a13881c50bb86c3210e035fdaccf"
	"github.com/ipfs/go-cid e7e67e08cfba888a4297224402e12832bdc15ea0"
	"github.com/ipfs/go-cidutil 7a289d95efee00994339172286cc99120f87b3e9"
	"github.com/ipfs/go-datastore f3abe0ceeea5156a0873c09d3f3b36c38d881f93"
	"github.com/ipfs/go-detect-race 52daa73989bc95b2fa97d6c610adf62d04eb7822"
	"github.com/ipfs/go-ds-badger fd7402d07c6f0e423fa8476a8431e690aa8c1445"
	"github.com/ipfs/go-ds-flatfs 9faae07a741fb345025d0b8cc5f19401e9ee609f"
	"github.com/ipfs/go-ds-leveldb daa8dc84016ff94f922d663016f11219279b2547"
	"github.com/ipfs/go-ds-measure a74729db656decb31c9d0546aef893eaeb4247f7"
	"github.com/ipfs/go-fs-lock 66f8794e4aed94004486434cf8bf815e5991a0a4"
	"github.com/ipfs/go-ipfs-addr ac4881d4db36effbbeebf93d9172fcb20ed04c15"
	"github.com/ipfs/go-ipfs-blockstore 8d6a694a33d2729a94d848208c75d117b77c3492"
	"github.com/ipfs/go-ipfs-blocksutil 11463846b576c51999afeedd9a0eacda8b5cb2c4"
	"github.com/ipfs/go-ipfs-chunker ecef6090e78f549c5f48f18d398e7b7f97e8c32d"
	"github.com/ipfs/go-ipfs-cmdkit a0d85dc72ec1a9ca4fa5eef2a9ce694dc9e25b72"
	"github.com/ipfs/go-ipfs-cmds b30644a383b2a9b006f85b4fc939707d073fa0d1"
	"github.com/ipfs/go-ipfs-config 355e5f1c516b56e0a6a64c20975bc97d4952d2d5"
	"github.com/ipfs/go-ipfs-delay 6482ad624d0b4f4053563439f8ca0bd619fbc737"
	"github.com/ipfs/go-ipfs-ds-help 4a69beb72c1b4e6e7ed62c5c5cbc1bd7a3d219b2"
	"github.com/ipfs/go-ipfs-exchange-interface b6e88260772433e18af18bb3f237d78678e65f0b"
	"github.com/ipfs/go-ipfs-exchange-offline e3705b31117ceccfa67820f84c1085f74f5e039b"
	"github.com/ipfs/go-ipfs-files 5f55719e3785dceb7c249bfa416d3c90f09b4037"
	"github.com/ipfs/go-ipfs-flags 89d41d6d2542f7b3b25e01d7b4a3769885055454"
	"github.com/ipfs/go-ipfs-posinfo 19b0f52f6bd140be93fb568203586a165eb1aadf"
	"github.com/ipfs/go-ipfs-pq 63128f5dd36a6c20c0f2d1c65eb4390d2590a273"
	"github.com/ipfs/go-ipfs-routing 29e4c89c60c510152e46033844194a62bc89b281"
	"github.com/ipfs/go-ipfs-util a4bb5361e49427531f9a716ead2ce4bd9bdd7959"
	"github.com/ipfs/go-ipld-cbor e63450c54844e1bfe509b17cc73071c4ab150ef0"
	"github.com/ipfs/go-ipld-format e6e9ea4d16a85d09cafb4dace15b978e984fa672"
	"github.com/ipfs/go-ipld-git 67b930ecf4a5da62c9e3afeedf1d08c7e5a1861e"
	"github.com/ipfs/go-ipns a989b48e3b7d32af1c872cbf2f6e884a08a9b351"
	"github.com/ipfs/go-log 91b837264c0f35dd4e2be341d711316b91d3573d"
	"github.com/ipfs/go-merkledag 5269250611ae9a98ed4c7ccb26c2a167c632d247"
	"github.com/ipfs/go-metrics-interface 87aa106f53272f064ca7956a6db83f17a553f254"
	"github.com/ipfs/go-metrics-prometheus 0b7557851a2614da8dc0a766fcd7aa380e23e558"
	"github.com/ipfs/go-mfs 03dab9a6f01ce073f222f49b68cee04239bd1467"
	"github.com/ipfs/go-path 84f898040c4de6ca3c36797da88d2e620345604b"
	"github.com/ipfs/go-todocounter bc75efcf13e6e50fbba27679ba5451585d70c954"
	"github.com/ipfs/go-unixfs c67cc5f14fc99fd5c750be892b0708239fb4284c"
	"github.com/ipfs/go-verifcid 34e41ba962e7ce0211a05915f788486c8db755f1"
	"github.com/ipfs/hang-fds 7a8a28f4b275d193ef56fc921f61f68b4e8d64d0"
	"github.com/ipfs/interface-go-ipfs-core cc74fb831271f0004fc5c6039981fccba1a61871"
	"github.com/ipfs/iptb ae2b4b3d6c9166db00a845c9e88181c0886f585b"
	"github.com/ipfs/iptb-plugins 92b0057eca3aba25dc50e5142c5dd81371392f6e"
	"github.com/jackpal/gateway 3e22696d638838706029ca361983ee533724b300"
	"github.com/jackpal/go-nat-pmp b977c5efcadd604e306a97fdf06ff544f785df56"
	"github.com/jbenet/go-cienv 1bb1476777ec5d7f390f8c2b0e9aef8814f8aee7"
	"github.com/jbenet/go-context d14ea06fba99483203c19d92cfcd13ebe73135f4"
	"github.com/jbenet/go-is-domain 74c9979ffaae8b6bcf79c372feb11836287009d8"
	"github.com/jbenet/go-random 123a90aedc0cfa3fbac8e2854d3d3b8219d9d156"
	"github.com/jbenet/go-random-files 31b3f20ebded11390a052597f61b9661e6e7c9ff"
	"github.com/jbenet/go-temp-err-catcher aac704a3f4f27190b4ccc05f303a4931fd1241ff"
	"github.com/jbenet/goprocess b497e2f366b8624394fb2e89c10ab607bebdde0b"
	"github.com/jessevdk/go-flags 1679536dcc895411a9f5848d9a0250be7856448c"
	"github.com/jonboulle/clockwork e6ec3ec5da5cce15fff8966d365c17f6d01b61a9"
	"github.com/jrick/logrotate a93b200c26cbae3bb09dd0dc2c7c7fe1468a034a"
	"github.com/jtolds/gls 77f18212c9c7edc9bd6a33d383a7b545ce62f064"
	"github.com/kisielk/errcheck 55d8f507faff4d6eddd0c41a3e713e2567fca4e5"
	"github.com/kisielk/gotool 80517062f582ea3340cd4baf70e86d539ae7d84d"
	"github.com/kkdai/bstream f391b8402d23024e7c0f624b31267a89998fca95"
	"github.com/kr/pretty c21352ee25c82043780a7b54cc9b2fbe60411457"
	"github.com/kr/pty 282ce0e5322c82529687d609ee670fac7c7d917c"
	"github.com/kr/text a90d266dd68b224558779a7ed518f29481427f41"
	"github.com/libp2p/go-addr-util 4cd36c0f325f9e38f1e31ff7a10b9d94d53a11cf"
	"github.com/libp2p/go-buffer-pool eecb57f6a721b4a66062ebeb61d1da7ce1c38fbf"
	"github.com/libp2p/go-conn-security 80b6115ae32f104b2ed14d16a8551248f4599338"
	"github.com/libp2p/go-conn-security-multistream d4c3bf7e5688390e4106d3ec73aafd7d0856143b"
	"github.com/libp2p/go-flow-metrics 1f5b3acc846b2c8ce4c4e713296af74f5c24df55"
	"github.com/libp2p/go-libp2p 2308ba3c0036ddf8ac390c893b71d946c57a7328"
	"github.com/libp2p/go-libp2p-autonat 16d66b2ad60fc6b6956b0c2bd332111a94db6dbb"
	"github.com/libp2p/go-libp2p-autonat-svc c3542af4efe70dbe7bda6a1ccefbca9c1d7d85be"
	"github.com/libp2p/go-libp2p-blankhost 177484ab3c284e75a9fa25b3114b2c5a4395deaa"
	"github.com/libp2p/go-libp2p-circuit 0e57e52a3e3dc6d9e446117beded675d021fd3a4"
	"github.com/libp2p/go-libp2p-connmgr 1c0efb5c206fbfabd51c3c6102d80b58254864d5"
	"github.com/libp2p/go-libp2p-crypto b0ed0e663e8b6832bad3f4502b2f6551ff2686cd"
	"github.com/libp2p/go-libp2p-daemon 6515dbf2b539565b2e3135fa4c3cc2eeaf46bc64"
	"github.com/libp2p/go-libp2p-discovery d4ef632c52ff995d94eaed926529eede8faa3965"
	"github.com/libp2p/go-libp2p-host 7e2de4bb2b77a5b155b9993309b34e0e8b1890b0"
	"github.com/libp2p/go-libp2p-interface-connmgr 8bddc198c80e6242d016361b3c5f02fb920e9faa"
	"github.com/libp2p/go-libp2p-interface-pnet b02026130a4daafb8001e039e116121cb92ae1a9"
	"github.com/libp2p/go-libp2p-kad-dht d1855272f4c0b93bd3cf4cf2fa27f1daf8880433"
	"github.com/libp2p/go-libp2p-kbucket c228706f665e12eb98ec89a68782824bf928ae0e"
	"github.com/libp2p/go-libp2p-loggables 332c68ea465a3353571377635eb0fc257a0c38c4"
	"github.com/libp2p/go-libp2p-metrics f7021db7729eb519a86ec6a90b5b476e6072f6f7"
	"github.com/libp2p/go-libp2p-nat 3efa307896b71a07705d8d0cf7f19a4595c62d4f"
	"github.com/libp2p/go-libp2p-net 3835e54052bfbea8a8cc81758c4981aeda28de51"
	"github.com/libp2p/go-libp2p-netutil 126124c7f3e570a469754c4857bd86527f5eb94e"
	"github.com/libp2p/go-libp2p-peer 6ce6ea8d949b826bc1e663ba5bc321c3cc9c2cce"
	"github.com/libp2p/go-libp2p-peerstore d2a21b6d4a88bd06c1cd5700b38df4529e556b28"
	"github.com/libp2p/go-libp2p-pnet 7424696a369ba1535fd7961f22d710e39ae7c8f9"
	"github.com/libp2p/go-libp2p-protocol c170ad966a647835bda0cbe4dc710cf9f94949b6"
	"github.com/libp2p/go-libp2p-pubsub 25cbf38777e869acb77e8079c3c76d6b430e66ad"
	"github.com/libp2p/go-libp2p-pubsub-router 27aa7580237561645ab222f2d7f28cf6dfe904c2"
	"github.com/libp2p/go-libp2p-quic-transport 068db1079c34a1e4957d0ac3921f62afff169da1"
	"github.com/libp2p/go-libp2p-record 4c2093f40950fe401a612a725ef0765c0c767b60"
	"github.com/libp2p/go-libp2p-routing ab366780f22ac0d2625105a9f6d3cace1817dd30"
	"github.com/libp2p/go-libp2p-routing-helpers 80177179327fbef5249eb0bc7f372d830f939a5c"
	"github.com/libp2p/go-libp2p-secio c3eee8a92db23bd65c434512810c60bec85e7ac9"
	"github.com/libp2p/go-libp2p-swarm 60a7ff4a5eda1873184a80689a0c7a3b36e76452"
	"github.com/libp2p/go-libp2p-transport 760cba29c65701ce7b688f238f6c93cc1d899dde"
	"github.com/libp2p/go-libp2p-transport-upgrader b4ab689796cdae99ad6641abcedcd7c23258de0c"
	"github.com/libp2p/go-maddr-filter 1258bb7e3e3a37bb9a93aaf77ef88f8405b39bce"
	"github.com/libp2p/go-mplex b16006283f6036f9a461f78692c397b134a75393"
	"github.com/libp2p/go-msgio 2efd92d62d528c56c6711346e82df0c74a5742a8"
	"github.com/libp2p/go-reuseport 3e6d618acfdfacbbeff71cb2bd70fc188f897a0f"
	"github.com/libp2p/go-reuseport-transport a38ecc623029c60063f999d16a7b62c1053adfc3"
	"github.com/libp2p/go-stream-muxer 96b8d4dc6b2577782a7c6c33776c115e3d2eacf6"
	"github.com/libp2p/go-tcp-transport 69079ce9b2140ebe9e750c70ac30b94fef08f627"
	"github.com/libp2p/go-testutil 425d0bf3c5d09720ab62cb2b79107d83651f271b"
	"github.com/libp2p/go-ws-transport 2114e839891f0a824d9a36919165fed197522d87"
	"github.com/lucas-clemente/aes12 cd47fb39b79f867c6e4e5cd39cf7abd799f71670"
	"github.com/lucas-clemente/quic-go 9a1c64f81d6b79426aa7d4eca2dc33c2970c07fa"
	"github.com/lucas-clemente/quic-go-certificates d2f86524cced5186554df90d92529757d22c1cb6"
	"github.com/mattn/go-colorable 3a70a971f94a22f2fa562ffcc7a0eb45f5daf045"
	"github.com/mattn/go-isatty a6dda38a851a575e6799957cdd53ffe0b3fdd90f"
	"github.com/mattn/go-runewidth 3ee7d812e62a0804a7d0a324e0249ca2db3476d3"
	"github.com/matttproud/golang_protobuf_extensions c12348ce28de40eed0136aa2b644d0ee0650e56c"
	"github.com/mgutz/ansi 9520e82c474b0a04dd04f8a40959027271bab992"
	"github.com/miekg/dns 8fc2e5773bbd308ca2fcc962fd8d25c1bd0f6743"
	"github.com/minio/blake2b-simd 3f5f724cb5b182a5c278d6d3d55b40e7f8c2efb4"
	"github.com/minio/sha256-simd 2d45a736cd16732fe6a57563cc20d8b035193e58"
	"github.com/mitchellh/go-homedir af06845cf3004701891bf4fdb884bfe4920b3727"
	"github.com/mr-tron/base58 89529c6904fcd077434931b4eac8b4b2f0991baf"
	"github.com/multiformats/go-base32 a9c2755c3d1672dbe6a7e4a5d182169fa30b6a8e"
	"github.com/multiformats/go-multiaddr 0297994296f173f2708ff1a9f9ae336af59172c5"
	"github.com/multiformats/go-multiaddr-dns e7c544d7a325c57bdbd7e9ba9c035a6701c5c7d2"
	"github.com/multiformats/go-multiaddr-net bd61b0499a3cfc893a8eb109c5669342b1671881"
	"github.com/multiformats/go-multibase d63641945dc1749baa23686ad0564ad63fef0493"
	"github.com/multiformats/go-multicodec c2f134385bb7ba156c2f973d97c359747dfed041"
	"github.com/multiformats/go-multihash 6b439b7c6e3c44c112171540500be697ba235235"
	"github.com/multiformats/go-multistream f3f44044ac2444cd3a017c0b269f8da65b0012f1"
	"github.com/onsi/ginkgo 2e1be8f7d90e9d3e3e58b0ce470f2f14d075406f"
	"github.com/onsi/gomega 65fb64232476ad9046e57c26cd0bff3d3a8dc6cd"
	"github.com/opentracing/opentracing-go 1949ddbfd147afd4d964a9f00b24eb291e0e7c38"
	"github.com/pkg/errors 05ac58a23b8798a296fa64f7d9c1559904db4b98"
	"github.com/pmezard/go-difflib c0b812dadcf4498dede02bb7f0c5c478be997e34"
	"github.com/polydawn/refmt df39d6c2d9927373b43de256531d24ade9884f98"
	"github.com/prometheus/client_golang ac0d4da0b001139583d0dfb84d614a0f907ea0a9"
	"github.com/prometheus/client_model 5c3871d89910bfb32f5fcab2aa4b9ec68e65a99f"
	"github.com/prometheus/common 4724e9255275ce38f7179b2478abeae4e28c904f"
	"github.com/prometheus/procfs 1dc9a6cbc91aacc3e8b2d63db4d2e957a5394ac4"
	"github.com/rs/cors 9a47f48565a795472d43519dd49aac781f3034fb"
	"github.com/sirupsen/logrus c155da19408a8799da419ed3eeb0cb5db0ad5dbc"
	"github.com/smartystreets/assertions b2de0cb4f26d0705483a2f495d89896d0b808573"
	"github.com/smartystreets/goconvey a17d461953aae4fb1a1d7f33653151da5f80392f"
	"github.com/spaolacci/murmur3 f09979ecbc725b9e6d41a297405f65e7e8804acc"
	"github.com/spf13/pflag 583c0c0531f06d5278b7d917446061adc344b5cd"
	"github.com/stretchr/objx facf9a85c22f48d2f52f2380e4efce1768749a89"
	"github.com/stretchr/testify ffdc059bfe9ce6a4e144ba849dbedead332c6053"
	"github.com/syndtr/goleveldb 9d007e481048296f09f59bd19bb7ae584563cd95"
	"github.com/texttheater/golang-levenshtein d188e65d659ef53fcdb0691c12f1bba64928b649"
	"github.com/urfave/cli cfb38830724cc34fedffe9a2a29fb54fa9169cd1"
	"github.com/warpfork/go-wish 5ad1f5abf4368a7f5ae616fdbf02821b6a93bf10"
	"github.com/whyrusleeping/base32 c30ac30633ccdabefe87eb12465113f06f1bab75"
	"github.com/whyrusleeping/cbor 63513f603b11583741970c5045ea567130ddb492"
	"github.com/whyrusleeping/chunker fe64bd25879f446bb7e8a4adf5d4a68552211bd3"
	"github.com/whyrusleeping/go-ctrlnet f564fbbdaa9582765fe2ac69b802f3ddbbe6af37"
	"github.com/whyrusleeping/go-keyspace 5b898ac5add1da7178a4a98e69cb7b9205c085ee"
	"github.com/whyrusleeping/go-logging 0457bb6b88fc1973573aaf6b5145d8d3ae972390"
	"github.com/whyrusleeping/go-notifier 097c5d47330ff6a823f67e3515faa13566a62c6f"
	"github.com/whyrusleeping/go-smux-multiplex 69b7a74ecfb84be57bdcf4b264a7042d80569287"
	"github.com/whyrusleeping/go-smux-multistream 90c0868b4933b5cb1bbcf68a3ca11c6767ccc048"
	"github.com/whyrusleeping/go-smux-yamux 7402600b69ab8af34116420d9b9cd4e1b8968901"
	"github.com/whyrusleeping/go-sysinfo 4a357d4b90b11a6fd867fdb51c21d686645830c2"
	"github.com/whyrusleeping/mafmt 158fbc0fcc20b3d8a251df520466e16f66eb3651"
	"github.com/whyrusleeping/mdns ef14215e6b30606f4ce84174ed7a644a05cb1af3"
	"github.com/whyrusleeping/multiaddr-filter e903e4adabd70b78bc9293b6ee4f359afb3f9f59"
	"github.com/whyrusleeping/tar-utils 8c6c8ba81d5c71fd69c0f48dbde4b2fb422b6dfc"
	"github.com/whyrusleeping/timecache cfcb2f1abfee846c430233aef0b630a946e0a5a6"
	"github.com/whyrusleeping/yamux 5364a42fe4b5efa5967c11c8f9b0f049cac0c4a9"
	"go4.org ce4c26f7be8eb27dc77f996b08d286dd80bc4a01 github.com/go4org/go4"
	"golang.org/x/crypto 8dd112bcdc25174059e45e07517d9fc663123347 github.com/golang/crypto"
	"golang.org/x/net c95aed5357e77a4bf7d3955c46740000a17adee1 github.com/golang/net"
	"golang.org/x/sync 42b317875d0fa942474b76e1b46a6060d720ae6e github.com/golang/sync"
	"golang.org/x/sys b6889370fb1098ed892bd3400d189bb6a3355813 github.com/golang/sys"
	"golang.org/x/text v0.3.0 github.com/golang/text"
	"golang.org/x/tools 90fa682c2a6e6a37b3a1364ce2fe1d5e41af9d6d github.com/golang/tools"
	"golang.org/x/xerrors a5947ffaace3e882f334c1750858b4a6a7e52422 github.com/golang/xerrors"
	"google.golang.org/genproto 11092d34479b07829b72e10713b159248caf5dad github.com/google/go-genproto"
	"gopkg.in/airbrake/gobrake.v2 668876711219e8b0206e2994bf0a59d889c775aa github.com/airbrake/gobrake"
	"gopkg.in/check.v1 788fd78401277ebd861206a03c884797c6ec5541 github.com/go-check/check"
	"gopkg.in/cheggaaa/pb.v1 bb72f4540310b63d56fcbcb42db6042f9eca7a55 github.com/cheggaaa/pb"
	"gopkg.in/fsnotify.v1 c2828203cd70a50dcccfb2761f8b1f8ceef9a8e9 github.com/fsnotify/fsnotify"
	"gopkg.in/gemnasium/logrus-airbrake-hook.v2 bbcc56fcf0ca142c5f8e396cca816fb034967332 github.com/gemnasium/logrus-airbrake-hook"
	"gopkg.in/tomb.v1 dd632973f1e7218eb1089048e0798ec9ae7dceb8 github.com/go-tomb/tomb"
	"gopkg.in/yaml.v2 5420a8b6744d3b0345ab293f6fcba19c978f1183 github.com/go-yaml/yaml"
	"gotest.tools b6e20af1ed078cd01a6413b734051a292450b4cb github.com/gotestyourself/gotest.tools"
	"gotest.tools/gotestsum v0.3.3 github.com/gotestyourself/gotestsum"
)

inherit golang-vcs-snapshot systemd user bash-completion-r1

SRC_URI="https://${EGO_PN}/archive/${EGO_COMMIT}.tar.gz -> ${P}.tar.gz
	https://raw.githubusercontent.com/ipfs/go-ipfs/${EGO_COMMIT}/misc/completion/ipfs-completion.bash -> ${P}.bash
	${EGO_VENDOR_URI}"

DESCRIPTION="A peer-to-peer hypermedia protocol to make the web faster, safer, and more open."
HOMEPAGE="https://ipfs.io/"
LICENSE="MIT"

SLOT="0"
IUSE="debug +fuse test"
RESTRICT="mirror"
KEYWORDS="-* ~amd64 ~arm ~x86"

RDEPEND="fuse? ( sys-fs/fuse:0 )"

QA_PRESTRIPPED="/usr/bin/ipfs"

src_compile() {
	GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \
		go install -v -work -x -tags "$(usex !fuse nofuse '')" \
			${EGO_PN}/cmd/ipfs || die
}

src_install() {
	dobin bin/ipfs
	use debug && dostrip -x /usr/bin/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
}

src_test() {
	TEST_NO_FUSE="$(usex fuse 0 1)" emake test_go_short
}

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.'
}