Skip to content

Instantly share code, notes, and snippets.

@thelazier
Last active November 11, 2016 06:39
Show Gist options
  • Save thelazier/d6e134989fcdc3bc166be0a3ef7bd28f to your computer and use it in GitHub Desktop.
Save thelazier/d6e134989fcdc3bc166be0a3ef7bd28f to your computer and use it in GitHub Desktop.
# Building zcoin daemon on alpine linux
apk --update add coreutils build-base git tar perl autoconf automake libtool linux-headers patch wget openssl-dev libevent-dev pkgconfig bzip2-dev unzip && rm -r /var/cache/apk/*
mkdir /depend
# DB 4.8
cd /depend && wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz \
&& tar -zxvf db-4.8.30.NC.tar.gz \
&& cd db-4.8.30.NC/build_unix \
&& ../dist/configure --prefix=/usr --enable-cxx --disable-shared --disable-replication \
&& make install
# Boost 1.62
cd /depend && wget https://sourceforge.net/projects/boost/files/boost/1.62.0/boost_1_62_0.tar.gz \
&& echo "440a59f8bc4023dbe6285c9998b0f7fa288468b889746b1ef00e8b36c559dce1 *boost_1_62_0.tar.gz" | sha256sum --check - \
&& tar -zxvf boost_1_62_0.tar.gz \
&& cd boost_1_62_0 \
&& ./bootstrap.sh --prefix=/usr \
&& ./b2 --with-system --with-filesystem --with-program_options --with-thread install ; exit 0
cd /depend && wget https://github.com/zcoinofficial/zcoin/archive/master.zip \
&& unzip master.zip \
&& cd zcoin-master/src \
&& sed -e 's/USE_UPNP:=0/USE_UPNP:=-/g' makefile.unix > makefile.alpine \
&& make -f makefile.alpine \
&& cp zcoind /usr/bin/zcoind
# Cleanup
cd /
apk del build-base coreutils git tar perl autoconf automake libtool linux-headers patch wget openssl-dev libevent-dev pkgconfig bzip2-dev
rm -r /var/cache/apk/*
rm -r /depend
# End
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment