Skip to content

Instantly share code, notes, and snippets.

@PabloCastellano
Created June 17, 2016 13:48
Show Gist options
  • Save PabloCastellano/062e0c887c1dcb89e4c0826e1c7a52d1 to your computer and use it in GitHub Desktop.
Save PabloCastellano/062e0c887c1dcb89e4c0826e1c7a52d1 to your computer and use it in GitHub Desktop.
libbitcoin_packages_debian.sh
#
# libbitcoin version 2 Debian packaging script
# Tested on Debian 8.3
#
export PACKAGES_DIR=$HOME
cd $PACKAGES_DIR
apt-get install sudo
sudo apt-get install -y libtool autoconf make pkg-config libtool-bin devscripts dh-autoreconf git quilt
sudo apt-get install -y libzmq3 libzmq3-dev # czmq
sudo apt-get install -y libgmp-dev # secp256k1
sudo apt-get install -y libboost1.55-all-dev # libbitcoin-consensus
sudo apt-get install -y libsodium-dev libsodium13 # libbitcoin-client, libbitcoin-server
# apt-get install -y libtool autoconf make pkg-config libtool-bin devscripts dh-autoreconf git quilt libsodium13 libzmq3 libzmq3-dev libgmp-dev libboost1.55-all-dev libsodium-dev
git clone https://github.com/PabloCastellano/czmq.git -b debian
git clone https://github.com/PabloCastellano/czmqpp.git -b debian
git clone https://github.com/PabloCastellano/secp256k1.git -b debian
git clone https://github.com/PabloCastellano/libbitcoin-consensus.git -b debian
git clone https://github.com/PabloCastellano/libbitcoin.git -b debian
git clone https://github.com/PabloCastellano/libbitcoin-blockchain.git -b debian
git clone https://github.com/PabloCastellano/libbitcoin-client.git -b debian
git clone https://github.com/PabloCastellano/libbitcoin-explorer.git -b debian
git clone https://github.com/PabloCastellano/libbitcoin-node.git -b debian
git clone https://github.com/PabloCastellano/libbitcoin-server.git -b debian
cd $PACKAGES_DIR/czmq
dpkg-buildpackage -rfakeroot
sudo dpkg -i $PACKAGES_DIR/libczmq*deb
cd $PACKAGES_DIR/czmqpp
dpkg-buildpackage -rfakeroot
cd $PACKAGES_DIR/secp256k1
dpkg-buildpackage -rfakeroot -j4
sudo dpkg -i $PACKAGES_DIR/libsecp256k1*deb
cd $PACKAGES_DIR/libbitcoin-consensus
dpkg-buildpackage -rfakeroot -j4
cd $PACKAGES_DIR/libbitcoin
dpkg-buildpackage -rfakeroot -j4
sudo dpkg -i $PACKAGES_DIR/libbitcoin*deb
sudo dpkg -i $PACKAGES_DIR/libbitcoin-consensus*deb
cd $PACKAGES_DIR/libbitcoin-blockchain
dpkg-buildpackage -rfakeroot -j4
sudo dpkg -i $PACKAGES_DIR/libczmqpp*deb
cd $PACKAGES_DIR/libbitcoin-client
dpkg-buildpackage -rfakeroot -j4
sudo dpkg -i $PACKAGES_DIR/libbitcoin-client*deb
cd $PACKAGES_DIR/libbitcoin-explorer
dpkg-buildpackage -rfakeroot -j4
sudo dpkg -i $PACKAGES_DIR/libbitcoin-blockchain*deb
cd $PACKAGES_DIR/libbitcoin-node
dpkg-buildpackage -rfakeroot -j4
sudo dpkg -i $PACKAGES_DIR/libbitcoin-node*deb
cd $PACKAGES_DIR/libbitcoin-server
dpkg-buildpackage -rfakeroot -j4
sudo dpkg -i $PACKAGES_DIR/libbitcoin-server*deb
cd $PACKAGES_DIR
mkdir -p packages
mv *.deb *.xz *.dsc *.changes packages/
#debsign *.changes -k463F919C
#
# libbitcoin version 2 Ubuntu packaging script
# Tested on Ubuntu 16.04
#
export PACKAGES_DIR=$HOME
cd $PACKAGES_DIR
#sudo apt-get install -y libtool autoconf make pkg-config libtool-bin devscripts dh-autoreconf git quilt
#sudo apt-get install libczmq-dev libczmq3 # czmqpp
#sudo apt-get install libgmp-dev # secp256k1
#sudo apt-get install libboost1.58-all-dev # libbitcoin-consensus, -blockchain, -client, libbitcoin, -explorer, -node -server
#sudo apt-get install libsodium-dev libsodium18 # libbitcoin-client, libbitcoin-server
apt-get install -y libtool autoconf make pkg-config libtool-bin devscripts dh-autoreconf git quilt libsodium18 libgmp-dev libboost1.58-all-dev libsodium-dev libczmq-dev libczmq3
git clone https://github.com/PabloCastellano/czmqpp.git -b ubuntu
git clone https://github.com/PabloCastellano/secp256k1.git -b ubuntu
git clone https://github.com/PabloCastellano/libbitcoin-consensus.git -b ubuntu
git clone https://github.com/PabloCastellano/libbitcoin.git -b ubuntu
git clone https://github.com/PabloCastellano/libbitcoin-blockchain.git -b ubuntu
git clone https://github.com/PabloCastellano/libbitcoin-client.git -b ubuntu
git clone https://github.com/PabloCastellano/libbitcoin-explorer.git -b ubuntu
git clone https://github.com/PabloCastellano/libbitcoin-node.git -b ubuntu
git clone https://github.com/PabloCastellano/libbitcoin-server.git -b ubuntu
sudo dpkg -i $PACKAGES_DIR/libczmq*deb
cd $PACKAGES_DIR/czmqpp
dpkg-buildpackage -rfakeroot
cd $PACKAGES_DIR/secp256k1
dpkg-buildpackage -rfakeroot -j4
sudo dpkg -i $PACKAGES_DIR/libsecp256k1*deb
cd $PACKAGES_DIR/libbitcoin-consensus
dpkg-buildpackage -rfakeroot -j4
cd $PACKAGES_DIR/libbitcoin
dpkg-buildpackage -rfakeroot -j4
sudo dpkg -i $PACKAGES_DIR/libbitcoin*deb
sudo dpkg -i $PACKAGES_DIR/libbitcoin-consensus*deb
cd $PACKAGES_DIR/libbitcoin-blockchain
dpkg-buildpackage -rfakeroot -j4
sudo dpkg -i $PACKAGES_DIR/libczmqpp*deb
cd $PACKAGES_DIR/libbitcoin-client
dpkg-buildpackage -rfakeroot -j4
sudo dpkg -i $PACKAGES_DIR/libbitcoin-client*deb
cd $PACKAGES_DIR/libbitcoin-explorer
dpkg-buildpackage -rfakeroot -j4
sudo dpkg -i $PACKAGES_DIR/libbitcoin-blockchain*deb
cd $PACKAGES_DIR/libbitcoin-node
dpkg-buildpackage -rfakeroot -j4
sudo dpkg -i $PACKAGES_DIR/libbitcoin-node*deb
cd $PACKAGES_DIR/libbitcoin-server
dpkg-buildpackage -rfakeroot -j4
sudo dpkg -i $PACKAGES_DIR/libbitcoin-server*deb
cd $PACKAGES_DIR
mkdir -p packages
mv *.deb *.xz *.dsc *.changes packages/
#debsign *.changes -k463F919C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment