diff options
author | Indrajith K L | 2022-12-03 17:00:20 +0530 |
---|---|---|
committer | Indrajith K L | 2022-12-03 17:00:20 +0530 |
commit | f5c4671bfbad96bf346bd7e9a21fc4317b4959df (patch) | |
tree | 2764fc62da58f2ba8da7ed341643fc359873142f /go-ipfs | |
download | cli-tools-windows-master.tar.gz cli-tools-windows-master.tar.bz2 cli-tools-windows-master.zip |
Diffstat (limited to 'go-ipfs')
-rw-r--r-- | go-ipfs/LICENSE | 8 | ||||
-rw-r--r-- | go-ipfs/LICENSE-APACHE | 5 | ||||
-rw-r--r-- | go-ipfs/LICENSE-MIT | 19 | ||||
-rw-r--r-- | go-ipfs/README.md | 28 | ||||
-rw-r--r-- | go-ipfs/install.sh | 36 | ||||
-rw-r--r-- | go-ipfs/ipfs.exe | bin | 0 -> 49067520 bytes |
6 files changed, 96 insertions, 0 deletions
diff --git a/go-ipfs/LICENSE b/go-ipfs/LICENSE new file mode 100644 index 0000000..7b5f88c --- /dev/null +++ b/go-ipfs/LICENSE @@ -0,0 +1,8 @@ +This project is transitioning from an MIT-only license to a dual MIT/Apache-2.0 license. +Unless otherwise noted, all code contributed prior to 2019-05-06 and not contributed by +a user listed in [this signoff issue](https://github.com/ipfs/go-ipfs/issues/6302) is +licensed under MIT-only. All new contributions (and past contributions since 2019-05-06) +are licensed under a dual MIT/Apache-2.0 license. + +MIT: https://www.opensource.org/licenses/mit +Apache-2.0: https://www.apache.org/licenses/license-2.0 diff --git a/go-ipfs/LICENSE-APACHE b/go-ipfs/LICENSE-APACHE new file mode 100644 index 0000000..14478a3 --- /dev/null +++ b/go-ipfs/LICENSE-APACHE @@ -0,0 +1,5 @@ +Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/go-ipfs/LICENSE-MIT b/go-ipfs/LICENSE-MIT new file mode 100644 index 0000000..72dc60d --- /dev/null +++ b/go-ipfs/LICENSE-MIT @@ -0,0 +1,19 @@ +The MIT License (MIT) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/go-ipfs/README.md b/go-ipfs/README.md new file mode 100644 index 0000000..f541482 --- /dev/null +++ b/go-ipfs/README.md @@ -0,0 +1,28 @@ +# ipfs commandline tool + +This is the [ipfs](http://ipfs.io) commandline tool. It contains a full ipfs node. + +## Install + +To install it, move the binary somewhere in your `$PATH`: + +```sh +sudo mv ipfs /usr/local/bin/ipfs +``` + +Or run `sudo ./install.sh` which does this for you. + +## Usage + +First, you must initialize your local ipfs node: + +```sh +ipfs init +``` + +This will give you directions to get started with ipfs. +You can always get help with: + +```sh +ipfs --help +``` diff --git a/go-ipfs/install.sh b/go-ipfs/install.sh new file mode 100644 index 0000000..34c5d59 --- /dev/null +++ b/go-ipfs/install.sh @@ -0,0 +1,36 @@ +#!/bin/sh +# +# Installation script for ipfs. It tries to move $bin in one of the +# directories stored in $binpaths. + +INSTALL_DIR=$(dirname $0) + +bin="$INSTALL_DIR/ipfs" +binpaths="/usr/local/bin /usr/bin" + +# This variable contains a nonzero length string in case the script fails +# because of missing write permissions. +is_write_perm_missing="" + +for binpath in $binpaths; do + if mv "$bin" "$binpath/ipfs" ; then + echo "Moved $bin to $binpath" + exit 0 + else + if [ -d "$binpath" ] && [ ! -w "$binpath" ]; then + is_write_perm_missing=1 + fi + fi +done + +echo "We cannot install $bin in one of the directories $binpaths" + +if [ -n "$is_write_perm_missing" ]; then + echo "It seems that we do not have the necessary write permissions." + echo "Perhaps try running this script as a privileged user:" + echo + echo " sudo $0" + echo +fi + +exit 1 diff --git a/go-ipfs/ipfs.exe b/go-ipfs/ipfs.exe Binary files differnew file mode 100644 index 0000000..becadb4 --- /dev/null +++ b/go-ipfs/ipfs.exe |