summaryrefslogtreecommitdiff
path: root/net-p2p/litecoind
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-06-20 14:45:01 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-06-20 14:45:01 +0100
commit34dea8e38f88007799629d0a56b12dec480b1d21 (patch)
tree6790873994b58030360328cf5897d934b3b03d16 /net-p2p/litecoind
parent7932d472a02d4c016ff7dff4b7a5479ab9d1883d (diff)
gentoo resync : 20.06.2021
Diffstat (limited to 'net-p2p/litecoind')
-rw-r--r--net-p2p/litecoind/Manifest5
-rw-r--r--net-p2p/litecoind/files/litecoind-0.18.1-system-leveldb.patch37
-rw-r--r--net-p2p/litecoind/litecoind-0.10.4.0-r2.ebuild (renamed from net-p2p/litecoind/litecoind-0.10.4.0-r1.ebuild)4
-rw-r--r--net-p2p/litecoind/litecoind-0.18.1-r1.ebuild87
4 files changed, 130 insertions, 3 deletions
diff --git a/net-p2p/litecoind/Manifest b/net-p2p/litecoind/Manifest
index 4f2f551d351e..16170ed9317f 100644
--- a/net-p2p/litecoind/Manifest
+++ b/net-p2p/litecoind/Manifest
@@ -6,7 +6,10 @@ AUX litecoin.service 879 BLAKE2B 4a4b270adf486e0563ba16537323776223e275ed2e19cd0
AUX litecoind-0.10.2.2-fix-gnustack.patch 665 BLAKE2B 87eee0182c63e8ab4f06194d2b23c0257836312e3393baa284cdb2790afe7bb0cbc1c1b82871b0491b43b1c2e0b3ef098ce022f1262ab70f9028278b3b43966f SHA512 f74dec64810d892709f1e92e00adcd8f01ff22c1d83929341f104e96899fe834c6804b02f83f4d011818f3156197664ea3023320dd15dda8cc473691854c5fa0
AUX litecoind-0.10.2.2-memenv_h.patch 506 BLAKE2B 70f9911bd90fcba5c4f41aaabfd8a22acf32eafde543e204b2d530c386c0f8c9b8d21c141572aca34469d89763ceedd0134c914b2f391f2bf29576b6b11e8601 SHA512 f915c6b1a1b91e5131133aeae70a23dfd78bb04af80b2ffcbecf599ad10ef16e769588c9199db551d30ca6ca4f7941a0d5b498c9b6712c3f7c807dc7533f28ea
AUX litecoind-0.10.4.0-gcc6.patch 2789 BLAKE2B 3c943438cad1b029a4764b76b901e1959edb14599b09aced7897d632defc5005d70d7de3f49e9ea56fe87243b071e2257f6b6984bd748be7697b607044ee47ae SHA512 7c5a14c50076438d04fd7ce3b24d0c17ae23d67c043ffb381e893f2ec6c4903842638347be12ca090bef2e3fb07721bccae77c61c34018ba406e9ceba4cd0cc0
+AUX litecoind-0.18.1-system-leveldb.patch 1009 BLAKE2B 6d6b3ef44d1e0af47b1b171d7d0b600c6f24ffd213265583bcec8f99b87c6effdabb1a8de31170a9ffe85e12c3f79d67373ddcde10fb9e71593840c18f96475a SHA512 c51a22af818b4ba1c9eb657161c2edfc94b3ec1c5cb346d208d6adb28bc4dff5d689533d9db2915c744c10ee595be8e846caf4b919a1b9886810ca9258c3fc99
AUX litecoind.logrotate 113 BLAKE2B 01ca87d1a52061ff95baba8f5c570747b962c7836e5fbe3bed62292afc8b1ddcd7eb550441a3966e84290e2ee2c37acd73ed58b753434723292a28ec17883f22 SHA512 eaa9f462be8dc755b675e4d5cb3ad271e3b1053edfa06df7862fa887160c849c768d2a268a7c8b52d1cfc834c186780b71435ee65475ea6c6692c18bded48dec
DIST litecoin-0.10.4.0.tar.gz 4730189 BLAKE2B 3b3e4db10ca7ebb048853a424438d888a239cc736b1b2aa29dd0b6571daec5a64f95aee98a82991cd3e69b26965151f298655ca09745f103ebde1d15216ae2f8 SHA512 ae17e754d188efb1b51a376a52fe03e43b58c5059673b7dd4ecbf4f48574290b84011525fef2e10893f53e4da3d6ad9b5577001bb40aef7080d4c2479f4714a9
-EBUILD litecoind-0.10.4.0-r1.ebuild 2477 BLAKE2B 87d60b98924d9a9cbbccff690f41ec061a018741e14dfd7429b1975ecd05011119e0c4c7d640ad6939aabd91563ebccac0b843b2b3aa41698e0c2bc1b65d9f45 SHA512 f552dffae98726192f3da5d29b65a6dce76c7ba18dd3074d1d99ace58d3b7497f2aabe1c65475c0fe5a23e26812acf028ada6dc563a06eae5eae9f1ab0be96bf
+DIST litecoin-0.18.1.tar.gz 5122629 BLAKE2B c6cb220bb893518eaf04e1b4b825dc0318103c955da6f262ef13fc9d925b7bae1bb0407a701a04a17bb3040c613b666e6de3331d443046e9d83aec4ed559e02e SHA512 59605cc0c4fd67c128bad0e2cabcc7b6bda1ebf5b23b7fcaee9fa69e86a4349598feba413f0ad42aef9338a42b0d6f8c04306634bd543856a2e7a203aa717f40
+EBUILD litecoind-0.10.4.0-r2.ebuild 2491 BLAKE2B bdbdfe1f2795a814ea785c2d491ec3b006dd1ed2f8005d5a5bfff7026a508569bd0426e9b39fce3c92f540dcba07af6359b2f14f8d80240e5da5a7cf19ecb2ae SHA512 3402d7cbea5df07f246db1ec798760435c75c576110cb3f5e60815b10a08edcae66c7681135d0ee252ccf3f54d3a3f44ed39bef970736f0524fe0b31cd198288
+EBUILD litecoind-0.18.1-r1.ebuild 2096 BLAKE2B c448a4efd917701350d9e5d9d31b7c876a7e212db4a3e86b7c4be2dbe7d836e701831ccbc688518654bb137ad06f9bc68b7eaf617951c97c39e79f6106db6279 SHA512 dde983593fe4014b97fded82c14dc8654af86d5194ae313ac56ef3cb1c93dfc0cbb3cf77b652937e72bae95060e57cc1eafe164d19c1135afbfcd5a28b03e450
MISC metadata.xml 396 BLAKE2B d75a242beda5f641ab3e995c20517fc18334d39df0fdb44107e1c54adcd87911d8baf360ae05bdf66ba9d5e690d296760ba3d1599e8bd8cf5fbb1ed653601c29 SHA512 b7bed8abba67ee6344e39e4a41991a0b1c036a51cf1ca338a8851507e8e7bcb9e3081445eaa7fb09b2b1ef352d02dbff5339faebc0becce9273bd743344d47a6
diff --git a/net-p2p/litecoind/files/litecoind-0.18.1-system-leveldb.patch b/net-p2p/litecoind/files/litecoind-0.18.1-system-leveldb.patch
new file mode 100644
index 000000000000..d00748a584fc
--- /dev/null
+++ b/net-p2p/litecoind/files/litecoind-0.18.1-system-leveldb.patch
@@ -0,0 +1,37 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -894,10 +894,22 @@
+ [AC_MSG_ERROR([Cannot set default symbol visibility. Use --disable-reduce-exports.])])
+ fi
+
++dnl Check for leveldb, only if explicitly requested
+ LEVELDB_CPPFLAGS=
+ LIBLEVELDB=
+ LIBMEMENV=
+-AM_CONDITIONAL([EMBEDDED_LEVELDB],[true])
++AC_ARG_WITH([system-leveldb],
++ [AS_HELP_STRING([--with-system-leveldb],
++ [Build with system LevelDB (default is no; DANGEROUS; NOT SUPPORTED)])],
++ [system_leveldb=$withval],
++ [system_leveldb=no]
++)
++if test x$system_leveldb != xno; then
++ LEVELDB_CPPFLAGS=
++ LIBLEVELDB=-lleveldb
++ LIBMEMENV=-lmemenv
++fi
++AM_CONDITIONAL([EMBEDDED_LEVELDB],[test x$system_leveldb = xno])
+ AC_SUBST(LEVELDB_CPPFLAGS)
+ AC_SUBST(LIBLEVELDB)
+ AC_SUBST(LIBMEMENV)
+--- a/src/dbwrapper.cpp
++++ b/src/dbwrapper.cpp
+@@ -10,7 +10,7 @@
+ #include <leveldb/cache.h>
+ #include <leveldb/env.h>
+ #include <leveldb/filter_policy.h>
+-#include <memenv.h>
++#include <leveldb/helpers/memenv.h>
+ #include <stdint.h>
+ #include <algorithm>
+
diff --git a/net-p2p/litecoind/litecoind-0.10.4.0-r1.ebuild b/net-p2p/litecoind/litecoind-0.10.4.0-r2.ebuild
index 47158fa5e560..4baece7f884c 100644
--- a/net-p2p/litecoind/litecoind-0.10.4.0-r1.ebuild
+++ b/net-p2p/litecoind/litecoind-0.10.4.0-r2.ebuild
@@ -26,7 +26,7 @@ RDEPEND="
acct-user/litecoin
dev-libs/boost:=[threads(+)]
dev-libs/leveldb:=
- dev-libs/openssl:0[-bindist]
+ dev-libs/openssl:0[-bindist(-)]
sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx]
logrotate? ( app-admin/logrotate )
upnp? ( net-libs/miniupnpc )
@@ -95,7 +95,7 @@ src_install() {
fperms 700 /var/lib/litecoin
fowners litecoin:litecoin /var/lib/litecoin/
fowners litecoin:litecoin /var/lib/litecoin/.litecoin
- dosym /etc/litecoin/litecoin.conf /var/lib/litecoin/.litecoin/litecoin.conf
+ dosym ../../../../etc/litecoin/litecoin.conf /var/lib/litecoin/.litecoin/litecoin.conf
dodoc doc/README.md doc/release-notes.md
newman contrib/debian/manpages/bitcoind.1 litecoind.1
diff --git a/net-p2p/litecoind/litecoind-0.18.1-r1.ebuild b/net-p2p/litecoind/litecoind-0.18.1-r1.ebuild
new file mode 100644
index 000000000000..9bc5f8cbf0fc
--- /dev/null
+++ b/net-p2p/litecoind/litecoind-0.18.1-r1.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DB_VER="4.8"
+
+inherit autotools db-use flag-o-matic systemd
+
+MY_PV="${PV/_/-}"
+MY_PN="litecoin"
+MY_P="${MY_PN}-${MY_PV}"
+
+DESCRIPTION="The offical daemon to run your own (full) Litecoin node"
+HOMEPAGE="https://litecoin.org/"
+SRC_URI="https://github.com/${MY_PN}-project/${MY_PN}/archive/v${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="MIT ISC GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="cpu_flags_x86_sse2 upnp +wallet"
+
+RDEPEND="
+ acct-group/litecoin
+ acct-user/litecoin
+ dev-libs/boost:=[threads(+)]
+ dev-libs/leveldb:=
+ dev-libs/libevent:=[threads(+)]
+ dev-libs/openssl:=[-bindist(-)]
+ sys-libs/db:$(db_ver_to_slot ${DB_VER})[cxx]
+ upnp? ( net-libs/miniupnpc:= )"
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-system-leveldb.patch )
+
+src_prepare() {
+ default
+ rm -r src/leveldb || die
+ eautoreconf
+}
+
+src_configure() {
+ # To avoid executable GNU stack.
+ append-ldflags -Wl,-z,noexecstack
+
+ local myeconfargs=(
+ $(use_enable wallet)
+ $(use_with upnp miniupnpc)
+ $(use_enable upnp upnp-default)
+ $(use_enable cpu_flags_x86_sse2 sse2)
+ --disable-ccache
+ --disable-static
+ # tests are broken and segfault
+ --disable-tests
+ --with-system-leveldb
+ --without-libs
+ --with-daemon
+ --without-gui
+ --without-qrencode
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+
+ insinto /etc/litecoin
+ doins "${FILESDIR}"/litecoin.conf
+ fowners litecoin:litecoin /etc/litecoin/litecoin.conf
+ fperms 600 /etc/litecoin/litecoin.conf
+
+ newconfd "${FILESDIR}"/litecoin.confd ${PN}
+ newinitd "${FILESDIR}"/litecoin.initd-r1 ${PN}
+ systemd_dounit "${FILESDIR}"/litecoin.service
+
+ keepdir /var/lib/litecoin/.litecoin
+ fperms 700 /var/lib/litecoin
+ fowners litecoin:litecoin /var/lib/litecoin/
+ fowners litecoin:litecoin /var/lib/litecoin/.litecoin
+ dosym ../../../../etc/litecoin/litecoin.conf /var/lib/litecoin/.litecoin/litecoin.conf
+
+ dodoc doc/README.md doc/release-notes.md
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/litecoind.logrotate litecoind
+}