diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-p2p/litecoind |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-p2p/litecoind')
-rw-r--r-- | net-p2p/litecoind/Manifest | 14 | ||||
-rw-r--r-- | net-p2p/litecoind/files/0.9.0-sys_leveldb.patch | 34 | ||||
-rw-r--r-- | net-p2p/litecoind/files/litecoin.conf | 8 | ||||
-rw-r--r-- | net-p2p/litecoind/files/litecoin.confd | 10 | ||||
-rw-r--r-- | net-p2p/litecoind/files/litecoin.initd-r1 | 28 | ||||
-rw-r--r-- | net-p2p/litecoind/files/litecoin.service | 30 | ||||
-rw-r--r-- | net-p2p/litecoind/files/litecoind-0.10.2.2-fix-gnustack.patch | 17 | ||||
-rw-r--r-- | net-p2p/litecoind/files/litecoind-0.10.2.2-memenv_h.patch | 12 | ||||
-rw-r--r-- | net-p2p/litecoind/files/litecoind-0.10.4.0-gcc6.patch | 47 | ||||
-rw-r--r-- | net-p2p/litecoind/files/litecoind.logrotate | 7 | ||||
-rw-r--r-- | net-p2p/litecoind/litecoind-0.10.4.0.ebuild | 103 | ||||
-rw-r--r-- | net-p2p/litecoind/metadata.xml | 12 |
12 files changed, 322 insertions, 0 deletions
diff --git a/net-p2p/litecoind/Manifest b/net-p2p/litecoind/Manifest new file mode 100644 index 000000000000..9943ed930fc1 --- /dev/null +++ b/net-p2p/litecoind/Manifest @@ -0,0 +1,14 @@ +AUX 0.9.0-sys_leveldb.patch 1040 SHA256 1355674ba82966b31fd001b12e7bd1bffbfd7f1c6d8dc1679cedba032e6df642 SHA512 26b1b6f8c4fdc228c08982a3172de57e09d963745726c99e1e274f381e242467f84d23c718f8e07675c2fc938f2d6db6b50a05dbb944702238d7b0eb6205cff7 WHIRLPOOL 7d39d39f846f03ffbf3e4c9655c42f298c8196dde8ee621862483a49f386c13cfdd13221ff265745f504a33422aaafac3657b72552f55784c9296daffc248f31 +AUX litecoin.conf 80 SHA256 541ae10cc2246b620de3e7efa97eee59efacf83d28ea5f1297a121d0708226d2 SHA512 43bef890505a1fac88887bb39e9fdd4ec673ae8838a40279b33711e970551f5a75ac25171c41f8c83de2c953b157f7a3f57171e868fd9f626007d9909331a19f WHIRLPOOL 728e38b62da2c7c3a1149ac511b92d156f7b3c51dacfadd7ce74d9e6f915a6547c4cc8d34159243f50eee333c63b35949b311ea5a7f48a6c3bf17a5d4d47c123 +AUX litecoin.confd 245 SHA256 32f96a43c8c2aa049151a0fbc27b290e863d1b1a3c78eef5cb054fe5bad21011 SHA512 57de4657db4f0a3873b6aac700bc78fe8ecdfacdc0acb3fee13866389fc02b7100f4e7252ceb19f76e03d1ca9353008a9ccf40fc48a1a612c6b8fa4a35bae150 WHIRLPOOL 9c54b91df1225d812011af2fe27059262a70754e8a396f91a598479a76193d36203f8825af2a8e30f21d8b91c6df5ba734217f32f33c23bf6ca7a16498f43f28 +AUX litecoin.initd-r1 833 SHA256 878e7edb8396fbbb8618326b8db37b322a5774b8c2cb3bf9aafa69f6ce53abd9 SHA512 fb594b480734934476c1ed465d0277b0144a760ad3031134cb4496a55812e2fdec9863801316b429a0f2b808fa5ab32b8e1c3010fa0905d822fbf1af776174fb WHIRLPOOL f092539a33737caa61f2181dbee0f13d01a85f70affdee99e60c8cc4261cd908d4baa97fe182e76d58f7f2f4bffbbd8554936b13cef75e433487dfeea91cdcea +AUX litecoin.service 879 SHA256 be344624575e7e69203bd7e17abc930847e27d95217b65b74ebfcf2e59a4bbca SHA512 f05009fdf4c38d78867588d84a6031d6bed81ad74c08d97a8fae16706f04ce61926dbde775183e0219a33e3a84e5fdad92acaab62e15156f3d07c15677e0f148 WHIRLPOOL def62eeef8c032a372c0624860369a32ff27b4099fa3ff720ac908139fb2c23e1aab4f4b4e623d890d309a5114352f2feb59ae105563b462e82667a52804c17f +AUX litecoind-0.10.2.2-fix-gnustack.patch 665 SHA256 587017f1faf6bbcaa76d198ba055570f59edb1788f5fded830fa4ee2d3d88c01 SHA512 f74dec64810d892709f1e92e00adcd8f01ff22c1d83929341f104e96899fe834c6804b02f83f4d011818f3156197664ea3023320dd15dda8cc473691854c5fa0 WHIRLPOOL 7aecef359c5f1a81fe55536529a8b9a0706735dce03d6c86b7a7c2572744ed4d38b50c3696d789988e46786303dd5edf48078461a429facdda29df3e593502ff +AUX litecoind-0.10.2.2-memenv_h.patch 506 SHA256 4ffa1298fc2cc8b0392e76322d6415d249cee1f5b6ffa5de8c2c5b740f22c94b SHA512 f915c6b1a1b91e5131133aeae70a23dfd78bb04af80b2ffcbecf599ad10ef16e769588c9199db551d30ca6ca4f7941a0d5b498c9b6712c3f7c807dc7533f28ea WHIRLPOOL 13d24663e668343a2bb7a69d6744f076ceb0c5775aab73202008a0d96df29b0185ae27c82963c4e48638d08cf8c44420cf1723e664e54df06ede265bb4acda97 +AUX litecoind-0.10.4.0-gcc6.patch 2789 SHA256 afea918335c6deb8b1f1f0924784c60aea66233e32b351758ba7565a6cdd4017 SHA512 7c5a14c50076438d04fd7ce3b24d0c17ae23d67c043ffb381e893f2ec6c4903842638347be12ca090bef2e3fb07721bccae77c61c34018ba406e9ceba4cd0cc0 WHIRLPOOL 4c0710bc4d9978b05138b49c47205f84f205ffed4cb3a9d8a615ba3859e2d7e8b1018226eaed1023e96c25d8e1f4f6e2929bfc4170f4520b8ee9dcd0c0f10098 +AUX litecoind.logrotate 113 SHA256 dce250c9f27ed9b36fa9376d92fedf89bf6f7f523360dc5baaa65179fd1d504b SHA512 eaa9f462be8dc755b675e4d5cb3ad271e3b1053edfa06df7862fa887160c849c768d2a268a7c8b52d1cfc834c186780b71435ee65475ea6c6692c18bded48dec WHIRLPOOL 3e771d6c2dfddd291386a1ed98009f1778e561a1b8ac43507f3ca709d1c389c3b8d6db5128ade485a0b92ba56b2388727935149af391fe3ef6f9e18ec432c04e +DIST litecoin-0.10.4.0.tar.gz 4730189 SHA256 a9adb6d2ae555afdaa2a5febb81341ac506930cf04ab95b9dc3ab99a4de0405e SHA512 ae17e754d188efb1b51a376a52fe03e43b58c5059673b7dd4ecbf4f48574290b84011525fef2e10893f53e4da3d6ad9b5577001bb40aef7080d4c2479f4714a9 WHIRLPOOL 21737a593390cd8ef41e5adb77e6cd5ccb886bdbc8d2ea96078bac99ffab5c95347cd86f1e9047b5ee528a112bfe3ae0e5ef5be3498b7aa36ec169bdfdaf4818 +EBUILD litecoind-0.10.4.0.ebuild 2543 SHA256 43f6b08e3b6d746a4e0e9c1bf0a592d6e36c8f5419aaafc72e8f5e8e369e22dd SHA512 f75bab399458e0771b6bb08c37c7c749eab7df51ab63f1e92693e0b3c6315b173e449f553df5f97ab263a6ded263107cb809748e81f8624864f8892e373b0ab7 WHIRLPOOL 8ccad2f24985ac7e3815570fb240175fefe47e38bdb8b84b3e97b2de19ae46cba2e6a52801c79cd7f8e4fd8de54cf14f0a957b325fe8fa39b688888e5d975e56 +MISC ChangeLog 4846 SHA256 08d956d8fa67223a7210ce881c06c0fd0b32b2c519afa48631afac87e869540a SHA512 a48a608f0f416ee115fa350b967e13b7e7f760f388b15c518066e497f9e1699bb5bce659a291c8f49fd3083997df883086f62790b5029f5ef28c66a1e1abbf54 WHIRLPOOL 9a752c6207a1d7752a15b5dc2405b44b1ba879212adff2f41cd5f68f18b89e2ea1f8920a48d44f55db9ba495846d6541ec12435c2a6833064abe87fb644c823d +MISC ChangeLog-2015 2749 SHA256 e6a39384c4b66804c8b4bb73cacc764a971d3d10f32ef17e1c4e033f3a302fb1 SHA512 b4596860579fae6d6b59120b05571873984b4602b719d0a51cf3a8aa0c0bf093c77bf61d669967d5712a77f0f855ec3bc84b537faabeb49d524a97a968c621f3 WHIRLPOOL 76613fba5f31836c7ec60ee31d58b7bd05f2db03a50132344f6161fa5ea8a23c8958396d307aae3c463ffa471222def3106fa40a03fc56946fa229c8f3db3c63 +MISC metadata.xml 396 SHA256 038714a0a98c0645598fb692f4056bc94952938e01cbf499c7194e03dbf8c566 SHA512 b7bed8abba67ee6344e39e4a41991a0b1c036a51cf1ca338a8851507e8e7bcb9e3081445eaa7fb09b2b1ef352d02dbff5339faebc0becce9273bd743344d47a6 WHIRLPOOL 4d50a501da6643c3b36c57782cb9b504100e858b27ef7c30008b046b5677ef7a18a29f5dce1504c093f306f0b9c0737d9e4386a23af8bd2dedb135e8b525e576 diff --git a/net-p2p/litecoind/files/0.9.0-sys_leveldb.patch b/net-p2p/litecoind/files/0.9.0-sys_leveldb.patch new file mode 100644 index 000000000000..60e9f2b20941 --- /dev/null +++ b/net-p2p/litecoind/files/0.9.0-sys_leveldb.patch @@ -0,0 +1,34 @@ +commit c38e0af3e021eb0b2aba846c77b06ca71de06b11 (personal-github/sys_leveldb, sys_leveldb) +Author: Luke Dashjr <luke-jr+git@utopios.org> +Date: Mon Sep 9 03:06:17 2013 +0000 + + configure: Add unsupported --with-system-leveldb configure flag + +diff --git a/configure.ac b/configure.ac +index 3ed4549..5a5852d 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -332,10 +332,22 @@ AC_TRY_COMPILE([#include <sys/socket.h>], + [ AC_MSG_RESULT(no)] + ) + ++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) diff --git a/net-p2p/litecoind/files/litecoin.conf b/net-p2p/litecoind/files/litecoin.conf new file mode 100644 index 000000000000..c6a55f3d9133 --- /dev/null +++ b/net-p2p/litecoind/files/litecoin.conf @@ -0,0 +1,8 @@ +# http://www.bitcoin.org/smf/index.php?topic=644.0 +#rpcuser= +#rpcpassword= + + + + + diff --git a/net-p2p/litecoind/files/litecoin.confd b/net-p2p/litecoind/files/litecoin.confd new file mode 100644 index 000000000000..4261f6e25fe2 --- /dev/null +++ b/net-p2p/litecoind/files/litecoin.confd @@ -0,0 +1,10 @@ +# Config file for /etc/init.d/litecoind + +# owner of liteciond process (don't change, must be existing) +LITECOIN_USER="litecoin" + +# See http://www.bitcoin.org/smf/index.php?topic=1063 +LITECOIN_OPTS="${LITECOIN_OPTS}" + +# nice level +NICELEVEL="19" diff --git a/net-p2p/litecoind/files/litecoin.initd-r1 b/net-p2p/litecoind/files/litecoin.initd-r1 new file mode 100644 index 000000000000..bc7f307f47a6 --- /dev/null +++ b/net-p2p/litecoind/files/litecoin.initd-r1 @@ -0,0 +1,28 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +vardir="/var/lib/litecoin" +conffile="${vardir}/.litecoin/litecoin.conf" +litecoind_user="${LITECOIN_USER:-nobody:nobody}" + +description="P2P Internet currency based on Bitcoin but easier to mine." +pidfile="/run/${SVCNAME}.pid" +command="/usr/bin/litecoind" +command_args="${LITECOIN_OPTS}" +command_background="true" +start_stop_daemon_args="-u ${litecoind_user} -e HOME=${vardir} -N ${NICELEVEL:-0} -w 2000" + +depend() { + need net +} + +start_pre() { + checkpath -f -o ${litecoind_user} -m 0400 ${conffile} || return 1 + + 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 +} diff --git a/net-p2p/litecoind/files/litecoin.service b/net-p2p/litecoind/files/litecoin.service new file mode 100644 index 000000000000..ae063ac48e1b --- /dev/null +++ b/net-p2p/litecoind/files/litecoin.service @@ -0,0 +1,30 @@ +# It's not recommended to modify this file in-place, because it will be +# overwritten during package upgrades. If you want to customize, the +# best way is to create file +# "/etc/systemd/system/litecoind.service.d/*.conf" +# containing your changes + +# For example, if you want to change some daemon and/or unit options, +# create a file named +# "/etc/systemd/system/litecoind.service.d/myopts.conf" +# containing: +# [Service] +# Environment="LITECOIN_OPTS=-debug -logtimestamps" +# Nice=10 +# This will override the setting appearing below. + +# Note that almost all daemon options could be specified in +# /etc/litecoin/litecoin.conf + +[Unit] +Description=Litecoin Daemon +After=network.target + +[Service] +User=litecoin +Environment=LITECOIN_OPTS= +ExecStart=/usr/bin/litecoind -daemon=0 $LITECOIN_OPTS +ExecReload=/bin/kill -HUP $MAINPID + +[Install] +WantedBy=multi-user.target 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 000000000000..cbaf66ea93e1 --- /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/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 000000000000..e181e4db5a91 --- /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/files/litecoind-0.10.4.0-gcc6.patch b/net-p2p/litecoind/files/litecoind-0.10.4.0-gcc6.patch new file mode 100644 index 000000000000..5c7e44da3d39 --- /dev/null +++ b/net-p2p/litecoind/files/litecoind-0.10.4.0-gcc6.patch @@ -0,0 +1,47 @@ +From 40ce41c006787dc4a2e3b17f7abbaf8ff56c45e7 Mon Sep 17 00:00:00 2001 +From: Adrian Gallagher <thrasher@addictionsoftware.com> +Date: Tue, 25 Oct 2016 17:48:19 -0700 +Subject: [PATCH] Litecoin: Fix build boost compilation error with C++11 + +--- + src/chainparams.cpp | 20 ++++++++++---------- + 1 file changed, 10 insertions(+), 10 deletions(-) + +diff --git a/src/chainparams.cpp b/src/chainparams.cpp +index ba8e33d1c14..7f99e45b7ad 100644 +--- a/src/chainparams.cpp ++++ b/src/chainparams.cpp +@@ -163,11 +163,11 @@ class CMainParams : public CChainParams { + vSeeds.push_back(CDNSSeedData("weminemnc.com", "dnsseed.weminemnc.com")); + vSeeds.push_back(CDNSSeedData("loshan.co.uk", "seed-a.litecoin.loshan.co.uk")); + +- base58Prefixes[PUBKEY_ADDRESS] = list_of(48); +- base58Prefixes[SCRIPT_ADDRESS] = list_of(5); +- base58Prefixes[SECRET_KEY] = list_of(176); +- base58Prefixes[EXT_PUBLIC_KEY] = list_of(0x04)(0x88)(0xB2)(0x1E); +- base58Prefixes[EXT_SECRET_KEY] = list_of(0x04)(0x88)(0xAD)(0xE4); ++ base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,48); ++ base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,5); ++ base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,176); ++ base58Prefixes[EXT_PUBLIC_KEY] = boost::assign::list_of(0x04)(0x88)(0xB2)(0x1E).convert_to_container<std::vector<unsigned char> >(); ++ base58Prefixes[EXT_SECRET_KEY] = boost::assign::list_of(0x04)(0x88)(0xAD)(0xE4).convert_to_container<std::vector<unsigned char> >(); + + convertSeed6(vFixedSeeds, pnSeed6_main, ARRAYLEN(pnSeed6_main)); + +@@ -225,11 +225,11 @@ class CTestNetParams : public CMainParams { + vSeeds.push_back(CDNSSeedData("xurious.com", "testnet-seed.ltc.xurious.com")); + vSeeds.push_back(CDNSSeedData("wemine-testnet.com", "dnsseed.wemine-testnet.com")); + +- base58Prefixes[PUBKEY_ADDRESS] = list_of(111); +- base58Prefixes[SCRIPT_ADDRESS] = list_of(196); +- base58Prefixes[SECRET_KEY] = list_of(239); +- base58Prefixes[EXT_PUBLIC_KEY] = list_of(0x04)(0x35)(0x87)(0xCF); +- base58Prefixes[EXT_SECRET_KEY] = list_of(0x04)(0x35)(0x83)(0x94); ++ base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,111); ++ base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,196); ++ base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,239); ++ base58Prefixes[EXT_PUBLIC_KEY] = boost::assign::list_of(0x04)(0x35)(0x87)(0xCF).convert_to_container<std::vector<unsigned char> >(); ++ base58Prefixes[EXT_SECRET_KEY] = boost::assign::list_of(0x04)(0x35)(0x83)(0x94).convert_to_container<std::vector<unsigned char> >(); + + convertSeed6(vFixedSeeds, pnSeed6_test, ARRAYLEN(pnSeed6_test)); + diff --git a/net-p2p/litecoind/files/litecoind.logrotate b/net-p2p/litecoind/files/litecoind.logrotate new file mode 100644 index 000000000000..5b091aa00c4e --- /dev/null +++ b/net-p2p/litecoind/files/litecoind.logrotate @@ -0,0 +1,7 @@ +/var/lib/litecoin/.litecoin/debug.log { + weekly + sharedscripts + postrotate + killall -HUP litecoind + endscript +} diff --git a/net-p2p/litecoind/litecoind-0.10.4.0.ebuild b/net-p2p/litecoind/litecoind-0.10.4.0.ebuild new file mode 100644 index 000000000000..32c939ec998e --- /dev/null +++ b/net-p2p/litecoind/litecoind-0.10.4.0.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2017 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}"/litecoind-0.10.2.2-fix-gnustack.patch + epatch "${FILESDIR}"/${P}-gcc6.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 +} diff --git a/net-p2p/litecoind/metadata.xml b/net-p2p/litecoind/metadata.xml new file mode 100644 index 000000000000..e5fa4a887501 --- /dev/null +++ b/net-p2p/litecoind/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<!-- maintainer-needed --> + <use> + <flag name="logrotate">Use app-admin/logrotate for rotating logs</flag> + <flag name="wallet">Enable wallet support</flag> + </use> + <upstream> + <remote-id type="github">litecoin-project/litecoin</remote-id> + </upstream> +</pkgmetadata> |