1 |
blueness 14/02/25 18:11:25 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: litecoind-0.8.6.1-r1.ebuild |
5 |
Log: |
6 |
Add imrpoved initd, bug #500602 |
7 |
|
8 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA) |
9 |
|
10 |
Revision Changes Path |
11 |
1.4 net-p2p/litecoind/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/litecoind/ChangeLog?rev=1.4&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/litecoind/ChangeLog?rev=1.4&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/litecoind/ChangeLog?r1=1.3&r2=1.4 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-p2p/litecoind/ChangeLog,v |
20 |
retrieving revision 1.3 |
21 |
retrieving revision 1.4 |
22 |
diff -u -r1.3 -r1.4 |
23 |
--- ChangeLog 8 Jan 2014 06:28:02 -0000 1.3 |
24 |
+++ ChangeLog 25 Feb 2014 18:11:25 -0000 1.4 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for net-p2p/litecoind |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/litecoind/ChangeLog,v 1.3 2014/01/08 06:28:02 vapier Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/litecoind/ChangeLog,v 1.4 2014/02/25 18:11:25 blueness Exp $ |
30 |
+ |
31 |
+*litecoind-0.8.6.1-r1 (25 Feb 2014) |
32 |
+ |
33 |
+ 25 Feb 2014; Anthony G. Basile <blueness@g.o> +files/litecoin.initd-r1, |
34 |
+ +litecoind-0.8.6.1-r1.ebuild: |
35 |
+ Add imrpoved initd, bug #500602 |
36 |
|
37 |
08 Jan 2014; Mike Frysinger <vapier@g.o> litecoind-0.8.5.3_rc3.ebuild, |
38 |
litecoind-0.8.6.1.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 net-p2p/litecoind/litecoind-0.8.6.1-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/litecoind/litecoind-0.8.6.1-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/litecoind/litecoind-0.8.6.1-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: litecoind-0.8.6.1-r1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2014 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/net-p2p/litecoind/litecoind-0.8.6.1-r1.ebuild,v 1.1 2014/02/25 18:11:25 blueness Exp $ |
52 |
|
53 |
EAPI=5 |
54 |
|
55 |
DB_VER="4.8" |
56 |
|
57 |
inherit bash-completion-r1 db-use eutils systemd user |
58 |
|
59 |
MyPV="${PV/_/-}" |
60 |
MyPN="litecoin" |
61 |
MyP="${MyPN}-${MyPV}" |
62 |
|
63 |
DESCRIPTION="P2P Internet currency based on Bitcoin but easier to mine." |
64 |
HOMEPAGE="https://litecoin.org/" |
65 |
SRC_URI="https://github.com/${MyPN}-project/${MyPN}/archive/v${MyPV}.tar.gz -> ${MyP}.tar.gz" |
66 |
|
67 |
LICENSE="MIT ISC GPL-2" |
68 |
SLOT="0" |
69 |
KEYWORDS="~amd64 ~x86" |
70 |
IUSE="bash-completion examples ipv6 logrotate upnp" |
71 |
|
72 |
RDEPEND=" |
73 |
dev-libs/boost[threads(+)] |
74 |
dev-libs/openssl:0[-bindist] |
75 |
logrotate? ( |
76 |
app-admin/logrotate |
77 |
) |
78 |
upnp? ( |
79 |
net-libs/miniupnpc |
80 |
) |
81 |
sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx] |
82 |
<=dev-libs/leveldb-1.12.0[-snappy] |
83 |
" |
84 |
DEPEND="${RDEPEND} |
85 |
>=app-shells/bash-4.1 |
86 |
sys-apps/sed |
87 |
" |
88 |
|
89 |
S="${WORKDIR}/${MyP}" |
90 |
|
91 |
pkg_setup() { |
92 |
local UG='litecoin' |
93 |
enewgroup "${UG}" |
94 |
enewuser "${UG}" -1 -1 /var/lib/litecoin "${UG}" |
95 |
} |
96 |
|
97 |
src_prepare() { |
98 |
epatch "${FILESDIR}"/${MyPN}-sys_leveldb.patch |
99 |
rm -r src/leveldb |
100 |
|
101 |
if has_version '>=dev-libs/boost-1.52'; then |
102 |
sed -i 's/\(-l db_cxx\)/-l boost_chrono$(BOOST_LIB_SUFFIX) \1/' src/makefile.unix |
103 |
fi |
104 |
} |
105 |
|
106 |
src_configure() { |
107 |
OPTS=() |
108 |
|
109 |
OPTS+=("DEBUGFLAGS=") |
110 |
OPTS+=("CXXFLAGS=${CXXFLAGS}") |
111 |
OPTS+=("LDFLAGS=${LDFLAGS}") |
112 |
|
113 |
if use upnp; then |
114 |
OPTS+=("USE_UPNP=1") |
115 |
else |
116 |
OPTS+=("USE_UPNP=-") |
117 |
fi |
118 |
|
119 |
use ipv6 || OPTS+=("USE_IPV6=-") |
120 |
|
121 |
OPTS+=("USE_SYSTEM_LEVELDB=1") |
122 |
OPTS+=("BDB_INCLUDE_PATH=$(db_includedir "${DB_VER}")") |
123 |
OPTS+=("BDB_LIB_SUFFIX=-${DB_VER}") |
124 |
|
125 |
cd src || die |
126 |
emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" -f makefile.unix "${OPTS[@]}" ${PN} |
127 |
} |
128 |
|
129 |
#Tests are broken with and without our litecoin-sys_leveldb.patch. |
130 |
#When tests work, make sure to inherit toolchain-funcs |
131 |
#src_test() { |
132 |
# cd src || die |
133 |
# emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" -f makefile.unix "${OPTS[@]}" test_litecoin |
134 |
# ./test_litecoin || die 'Tests failed' |
135 |
#} |
136 |
|
137 |
src_install() { |
138 |
dobin src/${PN} |
139 |
|
140 |
insinto /etc/litecoin |
141 |
doins "${FILESDIR}/litecoin.conf" |
142 |
fowners litecoin:litecoin /etc/litecoin/litecoin.conf |
143 |
fperms 600 /etc/litecoin/litecoin.conf |
144 |
|
145 |
newconfd "${FILESDIR}/litecoin.confd" ${PN} |
146 |
newinitd "${FILESDIR}/litecoin.initd-r1" ${PN} |
147 |
systemd_dounit "${FILESDIR}/litecoin.service" |
148 |
|
149 |
keepdir /var/lib/litecoin/.litecoin |
150 |
fperms 700 /var/lib/litecoin |
151 |
fowners litecoin:litecoin /var/lib/litecoin/ |
152 |
fowners litecoin:litecoin /var/lib/litecoin/.litecoin |
153 |
dosym /etc/litecoin/litecoin.conf /var/lib/litecoin/.litecoin/litecoin.conf |
154 |
|
155 |
dodoc doc/README.md doc/release-notes.md |
156 |
newman contrib/debian/manpages/bitcoind.1 litecoind.1 |
157 |
newman contrib/debian/manpages/bitcoin.conf.5 litecoin.conf.5 |
158 |
|
159 |
if use bash-completion; then |
160 |
newbashcomp contrib/bitcoind.bash-completion ${PN}.bash-completion |
161 |
fi |
162 |
|
163 |
if use examples; then |
164 |
docinto examples |
165 |
dodoc -r contrib/{bitrpc,pyminer,spendfrom,tidy_datadir.sh,wallettools} |
166 |
fi |
167 |
|
168 |
if use logrotate; then |
169 |
insinto /etc/logrotate.d |
170 |
newins "${FILESDIR}/litecoind.logrotate" litecoind |
171 |
fi |
172 |
} |