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