1 |
pacho 13/12/31 13:05:51 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: boinc-7.2.0-r1.ebuild |
5 |
Log: |
6 |
Add unit file (#496514 by Szymon Jaranowski) |
7 |
|
8 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key A188FBD4) |
9 |
|
10 |
Revision Changes Path |
11 |
1.112 sci-misc/boinc/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-misc/boinc/ChangeLog?rev=1.112&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-misc/boinc/ChangeLog?rev=1.112&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-misc/boinc/ChangeLog?r1=1.111&r2=1.112 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-misc/boinc/ChangeLog,v |
20 |
retrieving revision 1.111 |
21 |
retrieving revision 1.112 |
22 |
diff -u -r1.111 -r1.112 |
23 |
--- ChangeLog 30 Jun 2013 14:52:47 -0000 1.111 |
24 |
+++ ChangeLog 31 Dec 2013 13:05:51 -0000 1.112 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for sci-misc/boinc |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/ChangeLog,v 1.111 2013/06/30 14:52:47 jlec Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/ChangeLog,v 1.112 2013/12/31 13:05:51 pacho Exp $ |
30 |
+ |
31 |
+*boinc-7.2.0-r1 (31 Dec 2013) |
32 |
+ |
33 |
+ 31 Dec 2013; Pacho Ramos <pacho@g.o> +boinc-7.2.0-r1.ebuild, |
34 |
+ +files/boinc.service: |
35 |
+ Add unit file (#496514 by Szymon Jaranowski) |
36 |
|
37 |
*boinc-7.2.0 (30 Jun 2013) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 sci-misc/boinc/boinc-7.2.0-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-misc/boinc/boinc-7.2.0-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-misc/boinc/boinc-7.2.0-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: boinc-7.2.0-r1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2013 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/boinc-7.2.0-r1.ebuild,v 1.1 2013/12/31 13:05:51 pacho Exp $ |
52 |
|
53 |
EAPI=5 |
54 |
|
55 |
#WANT_AUTOMAKE="1.11" |
56 |
|
57 |
AUTOTOOLS_AUTORECONF=true |
58 |
|
59 |
inherit autotools-utils flag-o-matic eutils wxwidgets user systemd |
60 |
|
61 |
DESCRIPTION="The Berkeley Open Infrastructure for Network Computing" |
62 |
HOMEPAGE="http://boinc.ssl.berkeley.edu/" |
63 |
SRC_URI="http://dev.gentoo.org/~jlec/distfiles/${P}.tar.xz" |
64 |
|
65 |
LICENSE="LGPL-2.1" |
66 |
SLOT="0" |
67 |
KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
68 |
IUSE="X cuda static-libs" |
69 |
|
70 |
RDEPEND=" |
71 |
!sci-misc/boinc-bin |
72 |
!app-admin/quickswitch |
73 |
>=app-misc/ca-certificates-20080809 |
74 |
dev-libs/openssl |
75 |
net-misc/curl[ssl,-gnutls(-),-nss(-),curl_ssl_openssl(+)] |
76 |
sys-apps/util-linux |
77 |
sys-libs/zlib |
78 |
cuda? ( |
79 |
>=dev-util/nvidia-cuda-toolkit-2.1 |
80 |
>=x11-drivers/nvidia-drivers-180.22 |
81 |
) |
82 |
X? ( |
83 |
dev-db/sqlite:3 |
84 |
media-libs/freeglut |
85 |
sys-libs/glibc:2.2 |
86 |
virtual/jpeg |
87 |
x11-libs/gtk+:2 |
88 |
>=x11-libs/libnotify-0.7 |
89 |
x11-libs/wxGTK:2.8[X,opengl] |
90 |
) |
91 |
" |
92 |
DEPEND="${RDEPEND} |
93 |
sys-devel/gettext |
94 |
app-text/docbook-xml-dtd:4.4 |
95 |
app-text/docbook2X |
96 |
" |
97 |
|
98 |
PATCHES=( |
99 |
"${FILESDIR}"/${P}-fix_subdirs.patch |
100 |
) |
101 |
|
102 |
AUTOTOOLS_IN_SOURCE_BUILD=1 |
103 |
|
104 |
src_prepare() { |
105 |
# prevent bad changes in compile flags, bug 286701 |
106 |
sed -i -e "s:BOINC_SET_COMPILE_FLAGS::" configure.ac || die "sed failed" |
107 |
|
108 |
autotools-utils_src_prepare |
109 |
} |
110 |
|
111 |
src_configure() { |
112 |
local wxconf="" |
113 |
|
114 |
# add gtk includes |
115 |
append-flags "$(pkg-config --cflags gtk+-2.0)" |
116 |
|
117 |
# look for wxGTK |
118 |
if use X; then |
119 |
WX_GTK_VER="2.8" |
120 |
need-wxwidgets unicode |
121 |
wxconf+=" --with-wx-config=${WX_CONFIG}" |
122 |
else |
123 |
wxconf+=" --without-wxdir" |
124 |
fi |
125 |
|
126 |
local myeconfargs=( |
127 |
--disable-server |
128 |
--enable-client |
129 |
--enable-dynamic-client-linkage |
130 |
--disable-static |
131 |
--enable-unicode |
132 |
--with-ssl |
133 |
$(use_with X x) |
134 |
$(use_enable X manager) |
135 |
${wxconf} |
136 |
) |
137 |
autotools-utils_src_configure |
138 |
} |
139 |
|
140 |
src_install() { |
141 |
autotools-utils_src_install |
142 |
|
143 |
dodir /var/lib/${PN}/ |
144 |
keepdir /var/lib/${PN}/ |
145 |
|
146 |
if use X; then |
147 |
newicon "${S}"/packages/generic/sea/${PN}mgr.48x48.png ${PN}.png || die |
148 |
make_desktop_entry boincmgr "${PN}" "${PN}" "Math;Science" "Path=/var/lib/${PN}" |
149 |
fi |
150 |
|
151 |
# cleanup cruft |
152 |
rm -rf "${ED}"/etc/ |
153 |
|
154 |
newinitd "${FILESDIR}"/${PN}.init ${PN} |
155 |
newconfd "${FILESDIR}"/${PN}.conf ${PN} |
156 |
systemd_dounit "${FILESDIR}"/${PN}.service |
157 |
} |
158 |
|
159 |
pkg_preinst() { |
160 |
enewgroup ${PN} |
161 |
# note this works only for first install so we have to |
162 |
# elog user about the need of being in video group |
163 |
if use cuda; then |
164 |
enewuser ${PN} -1 -1 /var/lib/${PN} "${PN},video" |
165 |
else |
166 |
enewuser ${PN} -1 -1 /var/lib/${PN} "${PN}" |
167 |
fi |
168 |
} |
169 |
|
170 |
pkg_postinst() { |
171 |
echo |
172 |
elog "You are using the source compiled version of ${PN}." |
173 |
use X && elog "The graphical manager can be found at /usr/bin/${PN}mgr" |
174 |
elog |
175 |
elog "You need to attach to a project to do anything useful with ${PN}." |
176 |
elog "You can do this by running /etc/init.d/${PN} attach" |
177 |
elog "The howto for configuration is located at:" |
178 |
elog "http://boinc.berkeley.edu/wiki/Anonymous_platform" |
179 |
elog |
180 |
# Add warning about the new password for the client, bug 121896. |
181 |
if use X; then |
182 |
elog "If you need to use the graphical manager the password is in:" |
183 |
elog "/var/lib/${PN}/gui_rpc_auth.cfg" |
184 |
elog "Where /var/lib/ is default RUNTIMEDIR, that can be changed in:" |
185 |
elog "/etc/conf.d/${PN}" |
186 |
elog "You should change this password to something more memorable (can be even blank)." |
187 |
elog "Remember to launch init script before using manager. Or changing the password." |
188 |
elog |
189 |
fi |
190 |
if use cuda; then |
191 |
elog "To be able to use CUDA you should add boinc user to video group." |
192 |
elog "Run as root:" |
193 |
elog "gpasswd -a boinc video" |
194 |
fi |
195 |
} |