1 |
blueness 13/12/01 15:14:28 |
2 |
|
3 |
Added: ppcoind-0.3.0.ebuild ChangeLog metadata.xml |
4 |
Log: |
5 |
Initial commit |
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/ppcoind/ppcoind-0.3.0.ebuild |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/ppcoind/ppcoind-0.3.0.ebuild?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/ppcoind/ppcoind-0.3.0.ebuild?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: ppcoind-0.3.0.ebuild |
16 |
=================================================================== |
17 |
# Copyright 1999-2013 Gentoo Foundation |
18 |
# Distributed under the terms of the GNU General Public License v2 |
19 |
# $Header: /var/cvsroot/gentoo-x86/net-p2p/ppcoind/ppcoind-0.3.0.ebuild,v 1.1 2013/12/01 15:14:28 blueness Exp $ |
20 |
|
21 |
EAPI=5 |
22 |
|
23 |
DB_VER="4.8" |
24 |
|
25 |
inherit bash-completion-r1 db-use eutils systemd |
26 |
|
27 |
MyPV="${PV/_/-}" |
28 |
MyPN="ppcoin" |
29 |
MyP="${MyPN}-${MyPV}" |
30 |
|
31 |
DESCRIPTION="Cryptocurrency forked from Bitcoin which aims to be energy efficiency." |
32 |
HOMEPAGE="http://peercoin.net/" |
33 |
SRC_URI="mirror://sourceforge/${MyPN}/${MyP}-linux.tar.gz -> ${MyP}.tar.gz" |
34 |
|
35 |
LICENSE="MIT ISC GPL-2" |
36 |
SLOT="0" |
37 |
KEYWORDS="~amd64 ~x86" |
38 |
IUSE="examples ipv6 logrotate upnp" |
39 |
|
40 |
RDEPEND=" |
41 |
dev-libs/boost[threads(+)] |
42 |
dev-libs/openssl:0[-bindist] |
43 |
logrotate? ( |
44 |
app-admin/logrotate |
45 |
) |
46 |
upnp? ( |
47 |
net-libs/miniupnpc |
48 |
) |
49 |
sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx] |
50 |
" |
51 |
DEPEND="${RDEPEND} |
52 |
>=app-shells/bash-4.1 |
53 |
sys-apps/sed |
54 |
" |
55 |
|
56 |
S="${WORKDIR}/${MyP}-linux/src" |
57 |
|
58 |
pkg_setup() { |
59 |
local UG='ppcoin' |
60 |
enewgroup "${UG}" |
61 |
enewuser "${UG}" -1 -1 /var/lib/ppcoin "${UG}" |
62 |
} |
63 |
|
64 |
src_prepare() { |
65 |
if has_version '>=dev-libs/boost-1.52'; then |
66 |
sed -i 's/\(-l db_cxx\)/-l boost_chrono$(BOOST_LIB_SUFFIX) \1/' src/makefile.unix |
67 |
fi |
68 |
} |
69 |
|
70 |
src_configure() { |
71 |
OPTS=() |
72 |
|
73 |
OPTS+=("DEBUGFLAGS=") |
74 |
OPTS+=("CXXFLAGS=${CXXFLAGS}") |
75 |
OPTS+=("LDFLAGS=${LDFLAGS}") |
76 |
|
77 |
if use upnp; then |
78 |
OPTS+=("USE_UPNP=1") |
79 |
else |
80 |
OPTS+=("USE_UPNP=-") |
81 |
fi |
82 |
|
83 |
use ipv6 || OPTS+=("USE_IPV6=-") |
84 |
|
85 |
OPTS+=("USE_SYSTEM_LEVELDB=1") |
86 |
OPTS+=("BDB_INCLUDE_PATH=$(db_includedir "${DB_VER}")") |
87 |
OPTS+=("BDB_LIB_SUFFIX=-${DB_VER}") |
88 |
|
89 |
cd src || die |
90 |
emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" -f makefile.unix "${OPTS[@]}" ${PN} |
91 |
} |
92 |
|
93 |
#Tests are broken |
94 |
#src_test() { |
95 |
# cd src || die |
96 |
# emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" -f makefile.unix "${OPTS[@]}" test_ppcoin |
97 |
# ./test_ppcoin || die 'Tests failed' |
98 |
#} |
99 |
|
100 |
src_install() { |
101 |
dobin src/${PN} |
102 |
|
103 |
insinto /etc/ppcoin |
104 |
doins "${FILESDIR}/ppcoin.conf" |
105 |
fowners ppcoin:ppcoin /etc/ppcoin/ppcoin.conf |
106 |
fperms 600 /etc/ppcoin/ppcoin.conf |
107 |
|
108 |
newconfd "${FILESDIR}/ppcoin.confd" ${PN} |
109 |
newinitd "${FILESDIR}/ppcoin.initd" ${PN} |
110 |
systemd_dounit "${FILESDIR}/ppcoin.service" |
111 |
|
112 |
keepdir /var/lib/ppcoin/.ppcoin |
113 |
fperms 700 /var/lib/ppcoin |
114 |
fowners ppcoin:ppcoin /var/lib/ppcoin/ |
115 |
fowners ppcoin:ppcoin /var/lib/ppcoin/.ppcoin |
116 |
dosym /etc/ppcoin/ppcoin.conf /var/lib/ppcoin/.ppcoin/ppcoin.conf |
117 |
|
118 |
dodoc README |
119 |
newman contrib/debian/manpages/bitcoind.1 ppcoind.1 |
120 |
newman contrib/debian/manpages/bitcoin.conf.5 ppcoin.conf.5 |
121 |
|
122 |
if use examples; then |
123 |
docinto examples |
124 |
dodoc -r contrib/{bitrpc,gitian-descriptors,gitian-downloader,pyminer,wallettools} |
125 |
|
126 |
fi |
127 |
|
128 |
if use logrotate; then |
129 |
insinto /etc/logrotate.d |
130 |
newins "${FILESDIR}/ppcoind.logrotate" ppcoind |
131 |
fi |
132 |
} |
133 |
|
134 |
|
135 |
|
136 |
1.1 net-p2p/ppcoind/ChangeLog |
137 |
|
138 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/ppcoind/ChangeLog?rev=1.1&view=markup |
139 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/ppcoind/ChangeLog?rev=1.1&content-type=text/plain |
140 |
|
141 |
Index: ChangeLog |
142 |
=================================================================== |
143 |
# ChangeLog for net-p2p/ppcoind |
144 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
145 |
# $Header: /var/cvsroot/gentoo-x86/net-p2p/ppcoind/ChangeLog,v 1.1 2013/12/01 15:14:28 blueness Exp $ |
146 |
|
147 |
*ppcoind-0.3.0 (01 Dec 2013) |
148 |
|
149 |
01 Dec 2013; Anthony G. Basile <blueness@g.o> +ppcoind-0.3.0.ebuild, |
150 |
+files/ppcoin.conf, +files/ppcoin.confd, +files/ppcoin.initd, |
151 |
+files/ppcoin.service, +files/ppcoind.logrotate, +metadata.xml: |
152 |
Initial commit |
153 |
|
154 |
|
155 |
|
156 |
|
157 |
1.1 net-p2p/ppcoind/metadata.xml |
158 |
|
159 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/ppcoind/metadata.xml?rev=1.1&view=markup |
160 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/ppcoind/metadata.xml?rev=1.1&content-type=text/plain |
161 |
|
162 |
Index: metadata.xml |
163 |
=================================================================== |
164 |
<?xml version="1.0" encoding="UTF-8"?> |
165 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
166 |
<pkgmetadata> |
167 |
<maintainer> |
168 |
<email>blueness@g.o</email> |
169 |
<name>Anthony G. Basile</name> |
170 |
</maintainer> |
171 |
<use> |
172 |
<flag name='logrotate'>Use app-admin/logrotate for rotating logs</flag> |
173 |
</use> |
174 |
</pkgmetadata> |