From afa51fdabc4c511523c2547c11f3f500aa33cb7f Mon Sep 17 00:00:00 2001 From: Chris Kleeschulte Date: Thu, 6 Aug 2015 16:55:00 -0400 Subject: [PATCH 1/2] Added Fedora to README and added a check for shasum. --- README.md | 8 +++++++- bin/build | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3f34fb5f..68853444 100644 --- a/README.md +++ b/README.md @@ -55,9 +55,15 @@ Once everything is built, you can run bitcore-node via: ```bash npm start ``` - This will then start the syncing process for Bitcoin Core and the extended capabilities as provided by the built-in Address Module (details below). +### Fedora + +Later versions of Fedora (>= 22) should also work with this project. The directions for Ubuntu should generally work except the installation of system utilities and libraries is a bit different. Git is already installed and ready for use without installation. + +```bash +yum install libtool automake autoconf pkgconfig openssl make gcc gcc-c++ kernel-devel openssl-devel.x86_64 patch +``` ### Mac OS X Yosemite diff --git a/bin/build b/bin/build index 2121eb9a..9dc6b68b 100755 --- a/bin/build +++ b/bin/build @@ -61,7 +61,13 @@ if [ "${BITCORENODE_ENV}" == "test" ]; then options=`cat ${root_dir}/bin/config_options_test.sh` fi -patch_file_sha=$(shasum -a 256 "${root_dir}/etc/bitcoin.patch" | awk '{print $1}') +if hash shasum 2>/dev/null; then + shasum_cmd="shasum -a 256" +else + shasum_cmd="sha256sum" +fi + +patch_file_sha=$(${shasum_cmd} "${root_dir}/etc/bitcoin.patch" | awk '{print $1}') last_patch_file_sha= if [ -e "${patch_sha}" ]; then echo "Patch file sha exists, let's see if the patch has changed since last build..." From 1a873d00fef548a227286b06420f79ced65e8607 Mon Sep 17 00:00:00 2001 From: Chris Kleeschulte Date: Thu, 6 Aug 2015 17:18:22 -0400 Subject: [PATCH 2/2] Fixed shamus call to write patch file. --- bin/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/build b/bin/build index 9dc6b68b..8ace8c32 100755 --- a/bin/build +++ b/bin/build @@ -148,7 +148,7 @@ apply the current patch from "${root_dir}"/etc/bitcoin.patch? (y/N): " echo "Creating the sha marker for the patching in libbitcoind..." echo "Writing patch sha file to: \"${patch_sha}\"" - echo -n `shasum -a 256 "${root_dir}"/etc/bitcoin.patch | awk '{print $1}'` > "${patch_sha}" + echo -n `${shasum_cmd} "${root_dir}"/etc/bitcoin.patch | awk '{print $1}'` > "${patch_sha}" cache_files echo 'Build finished successfully.' else