From 0e9478a6bf46d37e107fb039a686ea9e861e9028 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sun, 20 May 2018 17:42:31 +0200 Subject: [PATCH] net-p2p/bitcoin: initial import of version 0.16.0 --- metadata/accounts/groups/bitcoin.conf | 0 metadata/accounts/users/bitcoin.conf | 4 + .../net-p2p/bitcoin/bitcoin-0.16.0.exheres-0 | 92 +++++++++++++++++++ 3 files changed, 96 insertions(+) create mode 100644 metadata/accounts/groups/bitcoin.conf create mode 100644 metadata/accounts/users/bitcoin.conf create mode 100644 packages/net-p2p/bitcoin/bitcoin-0.16.0.exheres-0 diff --git a/metadata/accounts/groups/bitcoin.conf b/metadata/accounts/groups/bitcoin.conf new file mode 100644 index 0000000..e69de29 diff --git a/metadata/accounts/users/bitcoin.conf b/metadata/accounts/users/bitcoin.conf new file mode 100644 index 0000000..3e21515 --- /dev/null +++ b/metadata/accounts/users/bitcoin.conf @@ -0,0 +1,4 @@ +gecos = User for bitcoin +home = /dev/null +shell = /sbin/nologin +primary_group = bitcoin diff --git a/packages/net-p2p/bitcoin/bitcoin-0.16.0.exheres-0 b/packages/net-p2p/bitcoin/bitcoin-0.16.0.exheres-0 new file mode 100644 index 0000000..1d1e77c --- /dev/null +++ b/packages/net-p2p/bitcoin/bitcoin-0.16.0.exheres-0 @@ -0,0 +1,92 @@ +# Copyright 2018 Julian Ospald +# Distributed under the terms of the GNU General Public License v2 + +require github [ tag=v${PV} ] +require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.16 ] ] +require openrc-service +require systemd-service + +SUMMARY="An experimental digital currency" +HOMEPAGE="https://bitcoin.org ${HOMEPAGE}" + +LICENCES="MIT" +SLOT="0" +PLATFORMS="~amd64 ~x86" +MYOPTIONS=" + gui [[ description = [ build bitcoin-qt GUI ] ]] + ( providers: libressl openssl ) [[ number-selected = exactly-one ]] +" + +DEPENDENCIES=" + build: + dev-util/desktop-file-utils + virtual/pkg-config + build+run: + user/bitcoin + group/bitcoin + ( + dev-libs/boost + dev-libs/libevent:= + providers:libressl? ( dev-libs/libressl:= ) + providers:openssl? ( dev-libs/openssl ) + ) [[ note = [ required core deps ] ]] + ( + net-libs/miniupnpc [[ note = [ Firewall-jumping support ] ]] + sys-libs/db:4.8 [[ note = [ Wallet storage (only needed when wallet + enabled) ] ]] + gui? ( + media-libs/qrencode:= + x11-libs/qtbase:5 + dev-libs/protobuf:= + ) [[ note = [ gui deps ] ]] + ) [[ note = [ optional deps ] ]] +" + +BUGS_TO="hasufell@posteo.de" + +DEFAULT_SRC_CONFIGURE_PARAMS=( + --enable-hardening + --enable-wallet + --disable-bench + --disable-ccache + --disable-zmq + --with-daemon + --with-miniupnpc + --with-utils +) + +DEFAULT_SRC_CONFIGURE_OPTION_WITHS=( + 'gui gui qt5' +) + +DEFAULT_SRC_CONFIGURE_TESTS=( + '--enable-tests --disable-tests' + '--enable-gui-tests --disable-gui-tests' +) + +src_install() { + default + + # openrc + newinitd contrib/init/bitcoind.openrc bitcoind + newconfd contrib/init/bitcoind.openrcconf bitcoind + openrc_expart "${OPENRC_INITD_DIR}"/bitcoind \ + "${OPENRC_CONFD_DIR}"/bitcoind + + # systemd + systemd_files_doins ${SYSTEMDSYSTEMUNITDIR} contrib/init/bitcoind.service + + # conf + insinto /etc/bitcoin + doins contrib/debian/examples/bitcoin.conf + edo chmod 600 "${IMAGE}"/etc/bitcoin/bitcoin.conf + + # desktop + insinto /usr/share/applications + edo desktop-file-validate contrib/debian/bitcoin-qt.desktop + doins contrib/debian/bitcoin-qt.desktop + + # docs + dodoc doc/{README,REST-interface,bips,dnsseed-policy,files,fuzzing,reduce-traffic,release-notes,tor,zmq}.md +} +