1 |
blueness 14/02/25 18:23:04 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ppcoind-0.3.0-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.3 net-p2p/ppcoind/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/ppcoind/ChangeLog?rev=1.3&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/ppcoind/ChangeLog?rev=1.3&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/ppcoind/ChangeLog?r1=1.2&r2=1.3 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-p2p/ppcoind/ChangeLog,v |
20 |
retrieving revision 1.2 |
21 |
retrieving revision 1.3 |
22 |
diff -u -r1.2 -r1.3 |
23 |
--- ChangeLog 8 Jan 2014 06:27:32 -0000 1.2 |
24 |
+++ ChangeLog 25 Feb 2014 18:23:04 -0000 1.3 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for net-p2p/ppcoind |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/ppcoind/ChangeLog,v 1.2 2014/01/08 06:27:32 vapier Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/ppcoind/ChangeLog,v 1.3 2014/02/25 18:23:04 blueness Exp $ |
30 |
+ |
31 |
+*ppcoind-0.3.0-r1 (25 Feb 2014) |
32 |
+ |
33 |
+ 25 Feb 2014; Anthony G. Basile <blueness@g.o> +files/ppcoin.initd-r1, |
34 |
+ +ppcoind-0.3.0-r1.ebuild: |
35 |
+ Add imrpoved initd, bug #500602 |
36 |
|
37 |
08 Jan 2014; Mike Frysinger <vapier@g.o> ppcoind-0.3.0.ebuild: |
38 |
Inherit the user eclass for enewuser/etc... |
39 |
|
40 |
|
41 |
|
42 |
1.1 net-p2p/ppcoind/ppcoind-0.3.0-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/ppcoind/ppcoind-0.3.0-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/ppcoind/ppcoind-0.3.0-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: ppcoind-0.3.0-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/ppcoind/ppcoind-0.3.0-r1.ebuild,v 1.1 2014/02/25 18:23:04 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="ppcoin" |
61 |
MyP="${MyPN}-${MyPV}" |
62 |
|
63 |
DESCRIPTION="Cryptocurrency forked from Bitcoin which aims to be energy efficiency." |
64 |
HOMEPAGE="http://peercoin.net/" |
65 |
SRC_URI="mirror://sourceforge/${MyPN}/${MyP}-linux.tar.gz -> ${MyP}.tar.gz" |
66 |
|
67 |
LICENSE="MIT ISC GPL-2" |
68 |
SLOT="0" |
69 |
KEYWORDS="~amd64 ~x86" |
70 |
IUSE="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 |
" |
83 |
DEPEND="${RDEPEND} |
84 |
>=app-shells/bash-4.1 |
85 |
sys-apps/sed |
86 |
" |
87 |
|
88 |
S="${WORKDIR}/${MyP}-linux/src" |
89 |
|
90 |
pkg_setup() { |
91 |
local UG='ppcoin' |
92 |
enewgroup "${UG}" |
93 |
enewuser "${UG}" -1 -1 /var/lib/ppcoin "${UG}" |
94 |
} |
95 |
|
96 |
src_prepare() { |
97 |
if has_version '>=dev-libs/boost-1.52'; then |
98 |
sed -i 's/\(-l db_cxx\)/-l boost_chrono$(BOOST_LIB_SUFFIX) \1/' src/makefile.unix |
99 |
fi |
100 |
} |
101 |
|
102 |
src_configure() { |
103 |
OPTS=() |
104 |
|
105 |
OPTS+=("DEBUGFLAGS=") |
106 |
OPTS+=("CXXFLAGS=${CXXFLAGS}") |
107 |
OPTS+=("LDFLAGS=${LDFLAGS}") |
108 |
|
109 |
if use upnp; then |
110 |
OPTS+=("USE_UPNP=1") |
111 |
else |
112 |
OPTS+=("USE_UPNP=-") |
113 |
fi |
114 |
|
115 |
use ipv6 || OPTS+=("USE_IPV6=-") |
116 |
|
117 |
OPTS+=("USE_SYSTEM_LEVELDB=1") |
118 |
OPTS+=("BDB_INCLUDE_PATH=$(db_includedir "${DB_VER}")") |
119 |
OPTS+=("BDB_LIB_SUFFIX=-${DB_VER}") |
120 |
|
121 |
cd src || die |
122 |
emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" -f makefile.unix "${OPTS[@]}" ${PN} |
123 |
} |
124 |
|
125 |
#Tests are broken |
126 |
#src_test() { |
127 |
# cd src || die |
128 |
# emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" -f makefile.unix "${OPTS[@]}" test_ppcoin |
129 |
# ./test_ppcoin || die 'Tests failed' |
130 |
#} |
131 |
|
132 |
src_install() { |
133 |
dobin src/${PN} |
134 |
|
135 |
insinto /etc/ppcoin |
136 |
doins "${FILESDIR}/ppcoin.conf" |
137 |
fowners ppcoin:ppcoin /etc/ppcoin/ppcoin.conf |
138 |
fperms 600 /etc/ppcoin/ppcoin.conf |
139 |
|
140 |
newconfd "${FILESDIR}/ppcoin.confd" ${PN} |
141 |
newinitd "${FILESDIR}/ppcoin.initd-r1" ${PN} |
142 |
systemd_dounit "${FILESDIR}/ppcoin.service" |
143 |
|
144 |
keepdir /var/lib/ppcoin/.ppcoin |
145 |
fperms 700 /var/lib/ppcoin |
146 |
fowners ppcoin:ppcoin /var/lib/ppcoin/ |
147 |
fowners ppcoin:ppcoin /var/lib/ppcoin/.ppcoin |
148 |
dosym /etc/ppcoin/ppcoin.conf /var/lib/ppcoin/.ppcoin/ppcoin.conf |
149 |
|
150 |
dodoc README |
151 |
newman contrib/debian/manpages/bitcoind.1 ppcoind.1 |
152 |
newman contrib/debian/manpages/bitcoin.conf.5 ppcoin.conf.5 |
153 |
|
154 |
if use examples; then |
155 |
docinto examples |
156 |
dodoc -r contrib/{bitrpc,gitian-descriptors,gitian-downloader,pyminer,wallettools} |
157 |
|
158 |
fi |
159 |
|
160 |
if use logrotate; then |
161 |
insinto /etc/logrotate.d |
162 |
newins "${FILESDIR}/ppcoind.logrotate" ppcoind |
163 |
fi |
164 |
} |