Skip to content

Commit

Permalink
add bitcoin-sv and update bitcoin-abc
Browse files Browse the repository at this point in the history
  • Loading branch information
you21979 committed Nov 8, 2018
1 parent 676b185 commit c733fcc
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion coind/bitcoincash.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
vars:
- coin_name: bitcoincash
- coin_rpcport: 7332
- coind_version: 0.17.2
- coind_version: 0.18.2
- makejob: "{{ansible_processor_count}}"
roles:
- gcc7
Expand Down
11 changes: 11 additions & 0 deletions coind/bitcoinsv.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
- hosts: all
sudo: yes
vars:
- coin_name: bitcoinsv
- coin_rpcport: 7332
- coind_version: 0.1.0
- makejob: "{{ansible_processor_count}}"
roles:
- gcc7
- bitcoin-sv
15 changes: 15 additions & 0 deletions coind/roles/bitcoin-sv/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
- name: download
get_url: url=https://codeload.github.com/Bitcoin-sv/bitcoin-sv/tar.gz/v{{coind_version}} dest=/tmp mode=0440
- name: extract
unarchive: src=/tmp/bitcoin-sv-{{coind_version}}.tar.gz dest=/tmp copy=no
- name: autogen
command: scl enable devtoolset-7 "./autogen.sh" chdir=/tmp/bitcoin-sv-{{coind_version}}
- name: configure
command: scl enable devtoolset-7 "./configure --disable-wallet --program-transform-name=s/bitcoin/bitcoinsv/g" chdir=/tmp/bitcoin-sv-{{coind_version}}
- name: make
command: scl enable devtoolset-7 "make -j {{makejob}}" chdir=/tmp/bitcoin-sv-{{coind_version}}
- name: make install
command: scl enable devtoolset-7 "make install" chdir=/tmp/bitcoin-sv-{{coind_version}}
- name: systemd template setup
template: src="templates/coind.service.j2" dest="/etc/systemd/system/{{ coin_name }}.service" owner=root group=root

0 comments on commit c733fcc

Please sign in to comment.