public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-p2p/litecoind/files/, net-p2p/litecoind/
@ 2015-08-29  1:38 Anthony G. Basile
  0 siblings, 0 replies; 4+ messages in thread
From: Anthony G. Basile @ 2015-08-29  1:38 UTC (permalink / raw
  To: gentoo-commits

commit:     9779295a9d2f79cafdbe7548f7d93d088ebcc80e
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 29 01:42:27 2015 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sat Aug 29 01:42:58 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9779295a

net-p2p/litecoind: patch to build with leveldb-1.18

Gentoo-Bug: 555588

Package-Manager: portage-2.2.20.1

 .../files/litecoind-0.10.2.2-memenv_h.patch        | 12 +++
 net-p2p/litecoind/litecoind-0.10.2.2-r2.ebuild     | 99 ++++++++++++++++++++++
 2 files changed, 111 insertions(+)

diff --git a/net-p2p/litecoind/files/litecoind-0.10.2.2-memenv_h.patch b/net-p2p/litecoind/files/litecoind-0.10.2.2-memenv_h.patch
new file mode 100644
index 0000000..e181e4d
--- /dev/null
+++ b/net-p2p/litecoind/files/litecoind-0.10.2.2-memenv_h.patch
@@ -0,0 +1,12 @@
+diff -Naur litecoin-0.10.2.2.orig/src/leveldbwrapper.cpp litecoin-0.10.2.2/src/leveldbwrapper.cpp
+--- litecoin-0.10.2.2.orig/src/leveldbwrapper.cpp	2015-06-15 04:51:30.000000000 -0400
++++ litecoin-0.10.2.2/src/leveldbwrapper.cpp	2015-08-28 21:30:45.968538185 -0400
+@@ -11,7 +11,7 @@
+ #include <leveldb/cache.h>
+ #include <leveldb/env.h>
+ #include <leveldb/filter_policy.h>
+-#include <memenv.h>
++#include <leveldb/helpers/memenv.h>
+ 
+ void HandleError(const leveldb::Status& status) throw(leveldb_error)
+ {

diff --git a/net-p2p/litecoind/litecoind-0.10.2.2-r2.ebuild b/net-p2p/litecoind/litecoind-0.10.2.2-r2.ebuild
new file mode 100644
index 0000000..5951608
--- /dev/null
+++ b/net-p2p/litecoind/litecoind-0.10.2.2-r2.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DB_VER="4.8"
+
+inherit autotools db-use eutils systemd user
+
+MyPV="${PV/_/-}"
+MyPN="litecoin"
+MyP="${MyPN}-${MyPV}"
+
+DESCRIPTION="P2P Internet currency based on Bitcoin but easier to mine"
+HOMEPAGE="https://litecoin.org/"
+SRC_URI="https://github.com/${MyPN}-project/${MyPN}/archive/v${MyPV}.tar.gz -> ${MyP}.tar.gz"
+
+LICENSE="MIT ISC GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="logrotate upnp +wallet"
+
+RDEPEND="
+	dev-libs/boost[threads(+)]
+	dev-libs/openssl:0[-bindist]
+	logrotate? ( app-admin/logrotate )
+	upnp? ( net-libs/miniupnpc )
+	sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx]
+	>=dev-libs/leveldb-1.18-r1
+"
+DEPEND="${RDEPEND}
+	>=app-shells/bash-4.1
+	sys-apps/sed
+"
+
+S="${WORKDIR}/${MyP}"
+
+pkg_setup() {
+	local UG='litecoin'
+	enewgroup "${UG}"
+	enewuser "${UG}" -1 -1 /var/lib/litecoin "${UG}"
+}
+
+src_prepare() {
+	epatch "${FILESDIR}/0.9.0-sys_leveldb.patch"
+	epatch "${FILESDIR}/${P}-memenv_h.patch"
+	eautoreconf
+	rm -r src/leveldb
+}
+
+src_configure() {
+	local my_econf=
+	if use upnp; then
+		my_econf="${my_econf} --with-miniupnpc --enable-upnp-default"
+	else
+		my_econf="${my_econf} --without-miniupnpc --disable-upnp-default"
+	fi
+	econf \
+		$(use_enable wallet)\
+		--disable-ccache \
+		--disable-static \
+		--disable-tests \
+		--with-system-leveldb \
+		--with-system-libsecp256k1  \
+		--without-libs \
+		--with-daemon  \
+		--without-gui     \
+		--without-qrencode \
+		${my_econf}
+}
+
+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
+	newman contrib/debian/manpages/bitcoind.1 litecoind.1
+	newman contrib/debian/manpages/bitcoin.conf.5 litecoin.conf.5
+
+	if use logrotate; then
+		insinto /etc/logrotate.d
+		newins "${FILESDIR}/litecoind.logrotate" litecoind
+	fi
+}


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-p2p/litecoind/files/, net-p2p/litecoind/
@ 2015-12-16 17:09 Anthony G. Basile
  0 siblings, 0 replies; 4+ messages in thread
From: Anthony G. Basile @ 2015-12-16 17:09 UTC (permalink / raw
  To: gentoo-commits

commit:     88eb1c762bfa9a47000bf633cf083deaa84ce25d
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 16 17:15:26 2015 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Wed Dec 16 17:15:56 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88eb1c76

net-p2p/litecoind: fix for API change in miniunpnc, bug #567080.

Package-Manager: portage-2.2.24

 .../litecoind/files/litecoin-miniupnpc-abi.patch   | 19 +++++
 net-p2p/litecoind/litecoind-0.10.2.2-r1.ebuild     | 98 ----------------------
 ....2.2-r2.ebuild => litecoind-0.10.2.2-r3.ebuild} |  5 +-
 3 files changed, 22 insertions(+), 100 deletions(-)

diff --git a/net-p2p/litecoind/files/litecoin-miniupnpc-abi.patch b/net-p2p/litecoind/files/litecoin-miniupnpc-abi.patch
new file mode 100644
index 0000000..7315ea9
--- /dev/null
+++ b/net-p2p/litecoind/files/litecoin-miniupnpc-abi.patch
@@ -0,0 +1,19 @@
+diff -Nuar litecoin-0.10.2.2/src/net.cpp litecoin-0.10.2.2-fix/src/net.cpp
+--- litecoin-0.10.2.2/src/net.cpp	2015-06-15 08:51:30.000000000 +0000
++++ litecoin-0.10.2.2-fix/src/net.cpp	2015-12-16 12:38:52.881533970 +0000
+@@ -1020,10 +1020,14 @@
+ #ifndef UPNPDISCOVER_SUCCESS
+     /* miniupnpc 1.5 */
+     devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0);
+-#else
++#elif MINIUPNPC_API_VERSION < 14
+     /* miniupnpc 1.6 */
+     int error = 0;
+     devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, &error);
++#else
++   /* miniupnpc 1.9.20150730 */
++   int error = 0;
++   devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, 2, &error);
+ #endif
+ 
+     struct UPNPUrls urls;
\ No newline at end of file

diff --git a/net-p2p/litecoind/litecoind-0.10.2.2-r1.ebuild b/net-p2p/litecoind/litecoind-0.10.2.2-r1.ebuild
deleted file mode 100644
index 07e92b8..0000000
--- a/net-p2p/litecoind/litecoind-0.10.2.2-r1.ebuild
+++ /dev/null
@@ -1,98 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-DB_VER="4.8"
-
-inherit autotools db-use eutils systemd user
-
-MyPV="${PV/_/-}"
-MyPN="litecoin"
-MyP="${MyPN}-${MyPV}"
-
-DESCRIPTION="P2P Internet currency based on Bitcoin but easier to mine"
-HOMEPAGE="https://litecoin.org/"
-SRC_URI="https://github.com/${MyPN}-project/${MyPN}/archive/v${MyPV}.tar.gz -> ${MyP}.tar.gz"
-
-LICENSE="MIT ISC GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="logrotate upnp +wallet"
-
-RDEPEND="
-	dev-libs/boost[threads(+)]
-	dev-libs/openssl:0[-bindist]
-	logrotate? ( app-admin/logrotate )
-	upnp? ( net-libs/miniupnpc )
-	sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx]
-	<=dev-libs/leveldb-1.15.0-r1
-"
-DEPEND="${RDEPEND}
-	>=app-shells/bash-4.1
-	sys-apps/sed
-"
-
-S="${WORKDIR}/${MyP}"
-
-pkg_setup() {
-	local UG='litecoin'
-	enewgroup "${UG}"
-	enewuser "${UG}" -1 -1 /var/lib/litecoin "${UG}"
-}
-
-src_prepare() {
-	epatch "${FILESDIR}/0.9.0-sys_leveldb.patch"
-	eautoreconf
-	rm -r src/leveldb
-}
-
-src_configure() {
-	local my_econf=
-	if use upnp; then
-		my_econf="${my_econf} --with-miniupnpc --enable-upnp-default"
-	else
-		my_econf="${my_econf} --without-miniupnpc --disable-upnp-default"
-	fi
-	econf \
-		$(use_enable wallet)\
-		--disable-ccache \
-		--disable-static \
-		--disable-tests \
-		--with-system-leveldb \
-		--with-system-libsecp256k1  \
-		--without-libs \
-		--with-daemon  \
-		--without-gui     \
-		--without-qrencode \
-		${my_econf}
-}
-
-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
-	newman contrib/debian/manpages/bitcoind.1 litecoind.1
-	newman contrib/debian/manpages/bitcoin.conf.5 litecoin.conf.5
-
-	if use logrotate; then
-		insinto /etc/logrotate.d
-		newins "${FILESDIR}/litecoind.logrotate" litecoind
-	fi
-}

diff --git a/net-p2p/litecoind/litecoind-0.10.2.2-r2.ebuild b/net-p2p/litecoind/litecoind-0.10.2.2-r3.ebuild
similarity index 93%
rename from net-p2p/litecoind/litecoind-0.10.2.2-r2.ebuild
rename to net-p2p/litecoind/litecoind-0.10.2.2-r3.ebuild
index 5951608..9c14a51 100644
--- a/net-p2p/litecoind/litecoind-0.10.2.2-r2.ebuild
+++ b/net-p2p/litecoind/litecoind-0.10.2.2-r3.ebuild
@@ -43,8 +43,9 @@ pkg_setup() {
 }
 
 src_prepare() {
-	epatch "${FILESDIR}/0.9.0-sys_leveldb.patch"
-	epatch "${FILESDIR}/${P}-memenv_h.patch"
+	epatch "${FILESDIR}"/0.9.0-sys_leveldb.patch
+	epatch "${FILESDIR}"/litecoind-0.10.2.2-memenv_h.patch
+	epatch "${FILESDIR}"/litecoin-miniupnpc-abi.patch
 	eautoreconf
 	rm -r src/leveldb
 }


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-p2p/litecoind/files/, net-p2p/litecoind/
@ 2016-01-03 13:45 Anthony G. Basile
  0 siblings, 0 replies; 4+ messages in thread
From: Anthony G. Basile @ 2016-01-03 13:45 UTC (permalink / raw
  To: gentoo-commits

commit:     b77845e33211c442dc34713a386fdd40e657b7bb
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sun Jan  3 13:51:11 2016 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Jan  3 13:52:28 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b77845e3

net-p2p/litecoind: fix RWX GNU stack

Package-Manager: portage-2.2.24

 .../files/litecoind-0.10.2.2-fix-gnustack.patch         | 17 +++++++++++++++++
 ...-0.10.2.2-r3.ebuild => litecoind-0.10.2.2-r4.ebuild} |  3 ++-
 2 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/net-p2p/litecoind/files/litecoind-0.10.2.2-fix-gnustack.patch b/net-p2p/litecoind/files/litecoind-0.10.2.2-fix-gnustack.patch
new file mode 100644
index 0000000..cbaf66e
--- /dev/null
+++ b/net-p2p/litecoind/files/litecoind-0.10.2.2-fix-gnustack.patch
@@ -0,0 +1,17 @@
+diff -Naur litecoin-0.10.2.2.orig/src/secp256k1/src/field_5x52_asm.asm litecoin-0.10.2.2/src/secp256k1/src/field_5x52_asm.asm
+--- litecoin-0.10.2.2.orig/src/secp256k1/src/field_5x52_asm.asm	2015-06-15 04:51:30.000000000 -0400
++++ litecoin-0.10.2.2/src/secp256k1/src/field_5x52_asm.asm	2016-01-03 08:35:26.438350565 -0500
+@@ -466,4 +466,12 @@
+ 	jmp common_exit_norm
+ 	end
+ 
+-	
++%ifidn __OUTPUT_FORMAT__,elf
++section .note.GNU-stack noalloc noexec nowrite progbits
++%endif
++%ifidn __OUTPUT_FORMAT__,elf32
++section .note.GNU-stack noalloc noexec nowrite progbits
++%endif
++%ifidn __OUTPUT_FORMAT__,elf64
++section .note.GNU-stack noalloc noexec nowrite progbits
++%endif

diff --git a/net-p2p/litecoind/litecoind-0.10.2.2-r3.ebuild b/net-p2p/litecoind/litecoind-0.10.2.2-r4.ebuild
similarity index 96%
rename from net-p2p/litecoind/litecoind-0.10.2.2-r3.ebuild
rename to net-p2p/litecoind/litecoind-0.10.2.2-r4.ebuild
index c7f7068..9b2dea4 100644
--- a/net-p2p/litecoind/litecoind-0.10.2.2-r3.ebuild
+++ b/net-p2p/litecoind/litecoind-0.10.2.2-r4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -46,6 +46,7 @@ src_prepare() {
 	epatch "${FILESDIR}"/0.9.0-sys_leveldb.patch
 	epatch "${FILESDIR}"/litecoind-0.10.2.2-memenv_h.patch
 	epatch "${FILESDIR}"/litecoin-miniupnpc-abi.patch
+	epatch "${FILESDIR}"/litecoind-0.10.2.2-fix-gnustack.patch
 	eautoreconf
 	rm -r src/leveldb
 }


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-p2p/litecoind/files/, net-p2p/litecoind/
@ 2017-08-04  8:55 Michael Palimaka
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Palimaka @ 2017-08-04  8:55 UTC (permalink / raw
  To: gentoo-commits

commit:     789c91d923cfb28844a90c95adc5ee65077d6935
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Fri Aug  4 08:54:35 2017 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Fri Aug  4 08:54:51 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=789c91d9

net-p2p/litecoind: remove 0.10.2.2-r4

Package-Manager: Portage-2.3.6, Repoman-2.3.3

 net-p2p/litecoind/Manifest                         |   1 -
 .../litecoind/files/litecoin-miniupnpc-abi.patch   |  19 --
 net-p2p/litecoind/files/litecoin-sys_leveldb.patch | 193 ---------------------
 net-p2p/litecoind/files/litecoin.initd             | 104 -----------
 net-p2p/litecoind/litecoind-0.10.2.2-r4.ebuild     | 103 -----------
 5 files changed, 420 deletions(-)

diff --git a/net-p2p/litecoind/Manifest b/net-p2p/litecoind/Manifest
index a1d9c8db720..201c1e0bf45 100644
--- a/net-p2p/litecoind/Manifest
+++ b/net-p2p/litecoind/Manifest
@@ -1,2 +1 @@
-DIST litecoin-0.10.2.2.tar.gz 4700783 SHA256 952c84b181323db17a8fa23217f59b576ad3ebad92c158b3a7c29d458a1130dc SHA512 46e4c014ae8527dd58af073bab96ea4fd55c69fcc63eaa4fd600bf3c1fc2102500151b49431a72b55334a409d4f5226937cd0c5337feaa4ad49e6ef9e9728aba WHIRLPOOL 5c1d5605d4afb16744fcf0b09dd52eb574aea0cdd9754f94d4cfd9ac064491a0e192d8c4b1a3324e355d71758735265b272dfa41f938212e17badb9f8a70698b
 DIST litecoin-0.10.4.0.tar.gz 4730189 SHA256 a9adb6d2ae555afdaa2a5febb81341ac506930cf04ab95b9dc3ab99a4de0405e SHA512 ae17e754d188efb1b51a376a52fe03e43b58c5059673b7dd4ecbf4f48574290b84011525fef2e10893f53e4da3d6ad9b5577001bb40aef7080d4c2479f4714a9 WHIRLPOOL 21737a593390cd8ef41e5adb77e6cd5ccb886bdbc8d2ea96078bac99ffab5c95347cd86f1e9047b5ee528a112bfe3ae0e5ef5be3498b7aa36ec169bdfdaf4818

diff --git a/net-p2p/litecoind/files/litecoin-miniupnpc-abi.patch b/net-p2p/litecoind/files/litecoin-miniupnpc-abi.patch
deleted file mode 100644
index 7315ea9d2a4..00000000000
--- a/net-p2p/litecoind/files/litecoin-miniupnpc-abi.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-diff -Nuar litecoin-0.10.2.2/src/net.cpp litecoin-0.10.2.2-fix/src/net.cpp
---- litecoin-0.10.2.2/src/net.cpp	2015-06-15 08:51:30.000000000 +0000
-+++ litecoin-0.10.2.2-fix/src/net.cpp	2015-12-16 12:38:52.881533970 +0000
-@@ -1020,10 +1020,14 @@
- #ifndef UPNPDISCOVER_SUCCESS
-     /* miniupnpc 1.5 */
-     devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0);
--#else
-+#elif MINIUPNPC_API_VERSION < 14
-     /* miniupnpc 1.6 */
-     int error = 0;
-     devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, &error);
-+#else
-+   /* miniupnpc 1.9.20150730 */
-+   int error = 0;
-+   devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, 2, &error);
- #endif
- 
-     struct UPNPUrls urls;
\ No newline at end of file

diff --git a/net-p2p/litecoind/files/litecoin-sys_leveldb.patch b/net-p2p/litecoind/files/litecoin-sys_leveldb.patch
deleted file mode 100644
index a4ae56aeabb..00000000000
--- a/net-p2p/litecoind/files/litecoin-sys_leveldb.patch
+++ /dev/null
@@ -1,193 +0,0 @@
-diff -Naur litecoin-0.8.5.3-rc3.orig/bitcoin-qt.pro litecoin-0.8.5.3-rc3/bitcoin-qt.pro
---- litecoin-0.8.5.3-rc3.orig/bitcoin-qt.pro	2013-11-28 21:17:05.000000000 -0500
-+++ litecoin-0.8.5.3-rc3/bitcoin-qt.pro	2013-11-29 14:53:00.960537685 -0500
-@@ -5,7 +5,7 @@
- INCLUDEPATH += src src/json src/qt
- QT += core gui network
- greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
--DEFINES += QT_GUI BOOST_THREAD_USE_LIB BOOST_SPIRIT_THREADSAFE
-+DEFINES += QT_GUI BOOST_THREAD_USE_LIB BOOST_SPIRIT_THREADSAFE LEVELDB_WITHOUT_MEMENV
- CONFIG += no_include_pwd
- CONFIG += thread
- 
-@@ -101,25 +101,30 @@
-     QTPLUGIN += qcncodecs qjpcodecs qtwcodecs qkrcodecs qtaccessiblewidgets
- }
- 
-+contains(USE_SYSTEM_LEVELDB, 1) {
-+    LIBS += -lleveldb
-+} else {
- INCLUDEPATH += src/leveldb/include src/leveldb/helpers
--LIBS += $$PWD/src/leveldb/libleveldb.a $$PWD/src/leveldb/libmemenv.a
-+LIBS += $$PWD/src/leveldb/libleveldb.a
- !win32 {
-     # we use QMAKE_CXXFLAGS_RELEASE even without RELEASE=1 because we use RELEASE to indicate linking preferences not -O preferences
--    genleveldb.commands = cd $$PWD/src/leveldb && CC=$$QMAKE_CC CXX=$$QMAKE_CXX $(MAKE) OPT=\"$$QMAKE_CXXFLAGS $$QMAKE_CXXFLAGS_RELEASE\" libleveldb.a libmemenv.a
-+    genleveldb.commands = cd $$PWD/src/leveldb && CC=$$QMAKE_CC CXX=$$QMAKE_CXX $(MAKE) OPT=\"$$QMAKE_CXXFLAGS $$QMAKE_CXXFLAGS_RELEASE\" libleveldb.a
- } else {
-     # make an educated guess about what the ranlib command is called
-     isEmpty(QMAKE_RANLIB) {
-         QMAKE_RANLIB = $$replace(QMAKE_STRIP, strip, ranlib)
-     }
-     LIBS += -lshlwapi
--    genleveldb.commands = cd $$PWD/src/leveldb && CC=$$QMAKE_CC CXX=$$QMAKE_CXX TARGET_OS=OS_WINDOWS_CROSSCOMPILE $(MAKE) OPT=\"$$QMAKE_CXXFLAGS $$QMAKE_CXXFLAGS_RELEASE\" libleveldb.a libmemenv.a && $$QMAKE_RANLIB $$PWD/src/leveldb/libleveldb.a && $$QMAKE_RANLIB $$PWD/src/leveldb/libmemenv.a
-+    genleveldb.commands = cd $$PWD/src/leveldb && CC=$$QMAKE_CC CXX=$$QMAKE_CXX TARGET_OS=OS_WINDOWS_CROSSCOMPILE $(MAKE) OPT=\"$$QMAKE_CXXFLAGS $$QMAKE_CXXFLAGS_RELEASE\" libleveldb.a && $$QMAKE_RANLIB $$PWD/src/leveldb/libleveldb.a
- }
- genleveldb.target = $$PWD/src/leveldb/libleveldb.a
- genleveldb.depends = FORCE
- PRE_TARGETDEPS += $$PWD/src/leveldb/libleveldb.a
- QMAKE_EXTRA_TARGETS += genleveldb
-+}
- # Gross ugly hack that depends on qmake internals, unfortunately there is no other way to do it.
--QMAKE_CLEAN += $$PWD/src/leveldb/libleveldb.a; cd $$PWD/src/leveldb ; $(MAKE) clean
-+QMAKE_CLEAN += $$PWD/src/leveldb/libleveldb.a; cd $$PWD/src/leveldb && $(MAKE) clean || true
-+
- 
- # regenerate src/build.h
- !win32|contains(USE_BUILD_INFO, 1) {
-diff -Naur litecoin-0.8.5.3-rc3.orig/src/leveldb.cpp litecoin-0.8.5.3-rc3/src/leveldb.cpp
---- litecoin-0.8.5.3-rc3.orig/src/leveldb.cpp	2013-11-28 21:17:05.000000000 -0500
-+++ litecoin-0.8.5.3-rc3/src/leveldb.cpp	2013-11-29 14:55:33.760543008 -0500
-@@ -8,7 +8,9 @@
- #include <leveldb/env.h>
- #include <leveldb/cache.h>
- #include <leveldb/filter_policy.h>
--#include <memenv/memenv.h>
-+#ifndef LEVELDB_WITHOUT_MEMENV
-+#include <memenv.h>
-+#endif
- 
- #include <boost/filesystem.hpp>
- 
-@@ -43,8 +45,12 @@
-     options = GetOptions(nCacheSize);
-     options.create_if_missing = true;
-     if (fMemory) {
-+#ifndef LEVELDB_WITHOUT_MEMENV
-         penv = leveldb::NewMemEnv(leveldb::Env::Default());
-         options.env = penv;
-+#else
-+        throw std::runtime_error("CLevelDB(): compiled without memenv support");
-+#endif
-     } else {
-         if (fWipe) {
-             printf("Wiping LevelDB in %s\n", path.string().c_str());
-diff -Naur litecoin-0.8.5.3-rc3.orig/src/makefile.unix litecoin-0.8.5.3-rc3/src/makefile.unix
---- litecoin-0.8.5.3-rc3.orig/src/makefile.unix	2013-11-28 21:17:05.000000000 -0500
-+++ litecoin-0.8.5.3-rc3/src/makefile.unix	2013-11-29 15:08:58.337571033 -0500
-@@ -110,8 +110,7 @@
- # adds some defaults in front. Unfortunately, LDFLAGS=... $(LDFLAGS) does not work.
- xLDFLAGS=$(LDHARDENING) $(LDFLAGS)
- 
--OBJS= \
--    leveldb/libleveldb.a \
-+BASEOBJS := \
-     obj/alert.o \
-     obj/version.o \
-     obj/checkpoints.o \
-@@ -120,7 +119,6 @@
-     obj/crypter.o \
-     obj/key.o \
-     obj/db.o \
--    obj/init.o \
-     obj/keystore.o \
-     obj/main.o \
-     obj/net.o \
-@@ -141,9 +139,17 @@
-     obj/hash.o \
-     obj/bloom.o \
-     obj/noui.o \
--    obj/leveldb.o \
-     obj/txdb.o
- 
-+OBJS := \
-+    obj/leveldb.o \
-+    obj/init.o \
-+    $(BASEOBJS)
-+
-+TESTOBJS := \
-+    obj-test/leveldb.o \
-+    $(patsubst test/%.cpp,obj-test/%.o,$(wildcard test/*.cpp)) \
-+    $(BASEOBJS)
- 
- ifdef USE_SSE2
- DEFS += -DUSE_SSE2
-@@ -156,15 +162,25 @@
- test check: test_litecoin FORCE
- 	./test_litecoin
- 
-+ifdef USE_SYSTEM_LEVELDB
-+    LIBS += -lleveldb
-+    TESTLIBS += -lmemenv
-+else
- #
- # LevelDB support
- #
- MAKEOVERRIDES =
--LIBS += $(CURDIR)/leveldb/libleveldb.a $(CURDIR)/leveldb/libmemenv.a
-+LIBS += $(CURDIR)/leveldb/libleveldb.a
-+TESTLIBS += $(CURDIR)/leveldb/libmemenv.a
- DEFS += $(addprefix -I,$(CURDIR)/leveldb/include)
- DEFS += $(addprefix -I,$(CURDIR)/leveldb/helpers)
- leveldb/libleveldb.a:
--	@echo "Building LevelDB ..." && cd leveldb && $(MAKE) CC=$(CC) CXX=$(CXX) OPT="$(xCXXFLAGS)" libleveldb.a libmemenv.a && cd ..
-+	@echo "Building LevelDB ..." && cd leveldb && $(MAKE) CC=$(CC) CXX=$(CXX) OPT="$(xCXXFLAGS)" libleveldb.a && cd ..
-+leveldb/libmemenv.a:
-+	@echo "Building LevelDB memenv ..." && cd leveldb && $(MAKE) CC=$(CC) CXX=$(CXX) OPT="$(xCXXFLAGS)" libmemenv.a && cd ..
-+OBJS += leveldb/libleveldb.a
-+TESTOBJS += leveldb/libmemenv.a
-+endif
- 
- # auto-generated dependencies:
- -include obj/*.P
-@@ -175,33 +191,34 @@
- version.cpp: obj/build.h
- DEFS += -DHAVE_BUILD_INFO
- 
--obj/%-sse2.o: %-sse2.cpp
--	$(CXX) -c $(xCXXFLAGS) -msse2 -MMD -MF $(@:%.o=%.d) -o $@ $<
-+P_TO_D = \
- 	@cp $(@:%.o=%.d) $(@:%.o=%.P); \
--	  sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
-+	  sed -e 's/\#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
- 	      -e '/^$$/ d' -e 's/$$/ :/' < $(@:%.o=%.d) >> $(@:%.o=%.P); \
- 	  rm -f $(@:%.o=%.d)
- 
-+obj/%-sse2.o: %-sse2.cpp
-+	$(CXX) -c $(xCXXFLAGS) -msse2 -MMD -MF $(@:%.o=%.d) -o $@ $<
-+	$(P_TO_D)
-+
- obj/%.o: %.cpp
--	$(CXX) -c $(xCXXFLAGS) -MMD -MF $(@:%.o=%.d) -o $@ $<
--	@cp $(@:%.o=%.d) $(@:%.o=%.P); \
--	  sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
--	      -e '/^$$/ d' -e 's/$$/ :/' < $(@:%.o=%.d) >> $(@:%.o=%.P); \
--	  rm -f $(@:%.o=%.d)
-+	$(CXX) -c $(xCXXFLAGS) -DLEVELDB_WITHOUT_MEMENV -MMD -MF $(@:%.o=%.d) -o $@ $<
-+	$(P_TO_D)
- 
--litecoind: $(OBJS:obj/%=obj/%)
-+litecoind: $(OBJS)
- 	$(LINK) $(xCXXFLAGS) -o $@ $^ $(xLDFLAGS) $(LIBS)
- 
--TESTOBJS := $(patsubst test/%.cpp,obj-test/%.o,$(wildcard test/*.cpp))
--
- obj-test/%.o: test/%.cpp
- 	$(CXX) -c $(TESTDEFS) $(xCXXFLAGS) -MMD -MF $(@:%.o=%.d) -o $@ $<
--	@cp $(@:%.o=%.d) $(@:%.o=%.P); \
--	  sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
--	      -e '/^$$/ d' -e 's/$$/ :/' < $(@:%.o=%.d) >> $(@:%.o=%.P); \
--	  rm -f $(@:%.o=%.d)
-+	$(P_TO_D)
-+
-+obj-test/leveldb.o: leveldb.cpp
-+	$(CXX) -c $(TESTDEFS) $(xCXXFLAGS) -MMD -MF $(@:%.o=%.d) -o $@ $<
-+	$(P_TO_D)
-+
-+TESTOBJS := $(patsubst test/%.cpp,obj-test/%.o,$(wildcard test/*.cpp))
- 
--test_litecoin: $(TESTOBJS) $(filter-out obj/init.o,$(OBJS:obj/%=obj/%))
-+test_litecoin: $(TESTOBJS)
- 	$(LINK) $(xCXXFLAGS) -o $@ $(LIBPATHS) $^ $(TESTLIBS) $(xLDFLAGS) $(LIBS)
- 
- clean:

diff --git a/net-p2p/litecoind/files/litecoin.initd b/net-p2p/litecoind/files/litecoin.initd
deleted file mode 100644
index 51d601974d0..00000000000
--- a/net-p2p/litecoind/files/litecoin.initd
+++ /dev/null
@@ -1,104 +0,0 @@
-#!/sbin/openrc-run
-# Distributed under the terms of the GNU General Public License, v2 or later
-
-VARDIR="/var/lib/litecoin"
-CONFFILE="${VARDIR}/.litecoin/litecoin.conf"
-
-depend() {
-	need net
-}
-
-checkconfig() {
-	if [[ "${LITECOIN_USER}" == "" ]] ; then
-		eerror "Please edit /etc/conf.d/litecoind"
-		eerror "A user must be specified to run litecoind as that user."
-		eerror "Modify USER to your needs (you may also add a group after a colon)"
-		return 1
-	fi
-	if ! `getent passwd | cut -d ':' -f 1 | grep $( echo "${LITECOIN_USER}" | cut -d ':' -f 1 ) -sq` ; then
-		eerror "Please edit /etc/conf.d/litecoind"
-		eerror "Specified user must exist!"
-		return 1
-	fi
-	if `echo "${LITECOIN_USER}" | grep ':' -sq` ; then
-		if ! `cut -d ':' -f 1 /etc/group | grep $( echo "${LITECOIN_USER}" | cut -d ':' -f 2 ) -sq` ; then
-			eerror "Please edit /etc/conf.d/litecoind"
-			eerror "Specified group must exist!"
-			return 1
-		fi
-	fi
-	if ! grep -q '^rpcpassword=' "${CONFFILE}"; then
-		eerror "Please edit `readlink -f ${CONFFILE}`"
-		eerror "There must be at least a line assigning rpcpassword=something-secure"
-		return 1
-	fi
-	if ! stat -Lc '%a' "${CONFFILE}" | grep -q '^[4567]00$'; then
-		eerror "`readlink -f ${CONFFILE}` should not be readable by other users"
-		return 1
-	fi
-	return 0
-}
-
-start() {
-	checkconfig || return 1
-	ebegin "Starting Litecoind daemon"
-
-	pkg-config openrc
-	if [ $? = 0 ]; then
-	   start_openrc
-	else
-	   start_baselayout
-	fi
-}
-
-stop() {
-       ebegin "Stopping Litecoin daemon"
-
-       pkg-config openrc
-       if [ $? = 0 ]; then
-	   stop_openrc
-       else
-	   stop_baselayout
-       fi
-}
-
-start_openrc() {
-	start-stop-daemon \
-	--start --user "${LITECOIN_USER}" --name litecoind \
-	--pidfile /var/run/litecoind.pid --make-pidfile \
-	--env HOME="${VARDIR}" --exec /usr/bin/litecoind \
-	--nicelevel "${NICELEVEL}" \
-	--background \
-	--wait 2000 \
-	-- ${LITECOIN_OPTS}
-	eend $?
-}
-
-stop_openrc() {
-	start-stop-daemon --stop --user "${LITECOIN_USER}" \
-	--name litecoind --pidfile /var/run/litecoind.pid \
-	--wait 30000 \
-	--progress
-	eend $?
-}
-
-start_baselayout() {
-	start-stop-daemon \
-	--start --user "${LITECOIN_USER}" --name litecoind \
-	--pidfile /var/run/litecoind.pid --make-pidfile \
-	--env HOME="${VARDIR}" --exec /usr/bin/litecoind \
-	--chuid "${LITECOIN_USER}" \
-	--nicelevel "${NICELEVEL}" \
-	--background \
-	-- ${LITECOIN_OPTS}
-	eend $?
-}
-
-stop_baselayout() {
-	start-stop-daemon \
-	--stop \
-	--user "${LITECOIN_USER}" \
-	--name litecoind \
-	--pidfile /var/run/litecoind.pid
-	eend $?
-}

diff --git a/net-p2p/litecoind/litecoind-0.10.2.2-r4.ebuild b/net-p2p/litecoind/litecoind-0.10.2.2-r4.ebuild
deleted file mode 100644
index ebc78e7d151..00000000000
--- a/net-p2p/litecoind/litecoind-0.10.2.2-r4.ebuild
+++ /dev/null
@@ -1,103 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-DB_VER="4.8"
-
-inherit autotools db-use eutils flag-o-matic systemd user
-
-MyPV="${PV/_/-}"
-MyPN="litecoin"
-MyP="${MyPN}-${MyPV}"
-
-DESCRIPTION="P2P Internet currency based on Bitcoin but easier to mine"
-HOMEPAGE="https://litecoin.org/"
-SRC_URI="https://github.com/${MyPN}-project/${MyPN}/archive/v${MyPV}.tar.gz -> ${MyP}.tar.gz"
-
-LICENSE="MIT ISC GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="logrotate upnp +wallet"
-
-RDEPEND="
-	dev-libs/boost[threads(+)]
-	dev-libs/openssl:0[-bindist]
-	logrotate? ( app-admin/logrotate )
-	upnp? ( net-libs/miniupnpc )
-	sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx]
-	>=dev-libs/leveldb-1.18-r1
-"
-DEPEND="${RDEPEND}
-	>=app-shells/bash-4.1
-	sys-apps/sed
-"
-
-S="${WORKDIR}/${MyP}"
-
-pkg_setup() {
-	local UG='litecoin'
-	enewgroup "${UG}"
-	enewuser "${UG}" -1 -1 /var/lib/litecoin "${UG}"
-}
-
-src_prepare() {
-	epatch "${FILESDIR}"/0.9.0-sys_leveldb.patch
-	epatch "${FILESDIR}"/litecoind-0.10.2.2-memenv_h.patch
-	epatch "${FILESDIR}"/litecoin-miniupnpc-abi.patch
-	epatch "${FILESDIR}"/litecoind-0.10.2.2-fix-gnustack.patch
-	eautoreconf
-	rm -r src/leveldb
-}
-
-src_configure() {
-	# To avoid executable GNU stack.
-	append-ldflags -Wl,-z,noexecstack
-
-	local my_econf=
-	if use upnp; then
-		my_econf="${my_econf} --with-miniupnpc --enable-upnp-default"
-	else
-		my_econf="${my_econf} --without-miniupnpc --disable-upnp-default"
-	fi
-	econf \
-		$(use_enable wallet)\
-		--disable-ccache \
-		--disable-static \
-		--disable-tests \
-		--with-system-leveldb \
-		--with-system-libsecp256k1  \
-		--without-libs \
-		--with-daemon  \
-		--without-gui     \
-		--without-qrencode \
-		${my_econf}
-}
-
-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
-	newman contrib/debian/manpages/bitcoind.1 litecoind.1
-	newman contrib/debian/manpages/bitcoin.conf.5 litecoin.conf.5
-
-	if use logrotate; then
-		insinto /etc/logrotate.d
-		newins "${FILESDIR}/litecoind.logrotate" litecoind
-	fi
-}


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-08-04  8:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-03 13:45 [gentoo-commits] repo/gentoo:master commit in: net-p2p/litecoind/files/, net-p2p/litecoind/ Anthony G. Basile
  -- strict thread matches above, loose matches on Subject: below --
2017-08-04  8:55 Michael Palimaka
2015-12-16 17:09 Anthony G. Basile
2015-08-29  1:38 Anthony G. Basile

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox