Commit cf5127f2 authored by Lorenzo Setale's avatar Lorenzo Setale

first take on packing ipfs for debian

parent eacbca1f
# This file contains quick phony targets to build IPFS packages
ARCH ?= amd64
OS ?= linux
IPFS_VERSION=$(shell curl https://dist.ipfs.io/go-ipfs/versions | tail -n 1)
NUMBER_IPFS_VERSION=$(shell echo ${IPFS_VERSION} | sed 's/v//')
download_ipfs:
mkdir -p build/orig/
curl -L --output build/orig/ipfs-${IPFS_VERSION}-${ARCH}.tar.gz \
https://dist.ipfs.io/go-ipfs/${IPFS_VERSION}/go-ipfs_${IPFS_VERSION}_${OS}-${ARCH}.tar.gz
.PHONY: download_ipfs
unpack_ipfs: download_ipfs
rm -rf build/source/
mkdir -p build/source/
tar -xvzf build/orig/ipfs-${IPFS_VERSION}-${ARCH}.tar.gz -C build/source/
.PHONY: unpack_ipfs
prepare_deb_pkg:
echo "Section: ipfs" > build/ipfs-deb
echo "Priority: optional" >> build/ipfs-deb
echo "Standards-Version: ${NUMBER_IPFS_VERSION}" >> build/ipfs-deb
echo "" >> build/ipfs-deb
echo "Package: ipfs" >> build/ipfs-deb
echo "Version: ${NUMBER_IPFS_VERSION}-siderus" >> build/ipfs-deb
echo "Maintainer: Siderus Team <hello@siderus.io>" >> build/ipfs-deb
echo "Architecture: ${ARCH}" >> build/ipfs-deb
echo "Description: IPFS is a global, versioned, peer-to-peer filesystem." >> build/ipfs-deb
echo " It combines good ideas from Git, BitTorrent, Kademlia," >> build/ipfs-deb
echo " SFS, and the Web. It is like a single bittorrent swarm," >> build/ipfs-deb
echo " exchanging git objects. IPFS provides an interface as" >> build/ipfs-deb
echo " simple as the HTTP web, but with permanence built in." >> build/ipfs-deb
echo " You can also mount the world at /ipfs." >> build/ipfs-deb
echo " This package is maintained and distributed by Siderus." >> build/ipfs-deb
.PHONY: prepare_deb_pkg
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment