From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1272029-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 59FBA13835A for <garchives@archives.gentoo.org>; Sat, 17 Apr 2021 19:20:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6C150E0828; Sat, 17 Apr 2021 19:20:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 515B3E0828 for <gentoo-commits@lists.gentoo.org>; Sat, 17 Apr 2021 19:20:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D469F340B28 for <gentoo-commits@lists.gentoo.org>; Sat, 17 Apr 2021 19:20:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1265F729 for <gentoo-commits@lists.gentoo.org>; Sat, 17 Apr 2021 19:20:29 +0000 (UTC) From: "Conrad Kostecki" <conikost@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" <conikost@gentoo.org> Message-ID: <1618687173.7e696b56897a2e6f4cf587463aa682de025fe8f2.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/litecoind/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-p2p/litecoind/litecoind-0.10.4.0-r1.ebuild X-VCS-Directories: net-p2p/litecoind/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: 7e696b56897a2e6f4cf587463aa682de025fe8f2 X-VCS-Branch: master Date: Sat, 17 Apr 2021 19:20:29 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c5fb937b-3b67-48e0-b575-d3d7b64ea275 X-Archives-Hash: b43a238b33be11d46a1b2a2b42731cfd commit: 7e696b56897a2e6f4cf587463aa682de025fe8f2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> AuthorDate: Sat Apr 17 18:45:26 2021 +0000 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> CommitDate: Sat Apr 17 19:19:33 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e696b56 net-p2p/litecoind: migrate to glep 81 Closes: https://bugs.gentoo.org/781449 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> net-p2p/litecoind/litecoind-0.10.4.0-r1.ebuild | 108 +++++++++++++++++++++++++ 1 file changed, 108 insertions(+) diff --git a/net-p2p/litecoind/litecoind-0.10.4.0-r1.ebuild b/net-p2p/litecoind/litecoind-0.10.4.0-r1.ebuild new file mode 100644 index 00000000000..47158fa5e56 --- /dev/null +++ b/net-p2p/litecoind/litecoind-0.10.4.0-r1.ebuild @@ -0,0 +1,108 @@ +# 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="logrotate upnp +wallet" + +RDEPEND=" + acct-group/litecoin + acct-user/litecoin + dev-libs/boost:=[threads(+)] + dev-libs/leveldb:= + dev-libs/openssl:0[-bindist] + sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx] + logrotate? ( app-admin/logrotate ) + upnp? ( net-libs/miniupnpc ) +" +DEPEND=" + ${RDEPEND} + >=app-shells/bash-4.1 + sys-apps/sed +" + +PATCHES=( + "${FILESDIR}"/0.9.0-sys_leveldb.patch + "${FILESDIR}"/litecoind-0.10.2.2-memenv_h.patch + "${FILESDIR}"/litecoind-0.10.2.2-fix-gnustack.patch + "${FILESDIR}"/${P}-gcc6.patch +) + +src_prepare() { + default + + 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 + + local myeconfargs=( + $(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} + ) + + 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 + 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 +}