Gentoo Archives: gentoo-commits

From: "Tomas Chvatal (scarabeus)" <scarabeus@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-misc/boinc: ChangeLog boinc-6.6.40-r2.ebuild boinc-6.6.40-r1.ebuild
Date: Sat, 03 Oct 2009 15:04:37
Message-Id: E1Mu69y-0006ZO-VP@stork.gentoo.org
1 scarabeus 09/10/03 15:04:34
2
3 Modified: ChangeLog
4 Added: boinc-6.6.40-r2.ebuild
5 Removed: boinc-6.6.40-r1.ebuild
6 Log:
7 Revision bump to fix segfault. Per bug #287441. Thx to Isaac Chanin for the patch.
8 (Portage version: 2.2_rc41/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.76 sci-misc/boinc/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-misc/boinc/ChangeLog?rev=1.76&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-misc/boinc/ChangeLog?rev=1.76&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-misc/boinc/ChangeLog?r1=1.75&r2=1.76
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-misc/boinc/ChangeLog,v
20 retrieving revision 1.75
21 retrieving revision 1.76
22 diff -u -r1.75 -r1.76
23 --- ChangeLog 30 Sep 2009 13:29:39 -0000 1.75
24 +++ ChangeLog 3 Oct 2009 15:04:34 -0000 1.76
25 @@ -1,6 +1,14 @@
26 # ChangeLog for sci-misc/boinc
27 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/ChangeLog,v 1.75 2009/09/30 13:29:39 scarabeus Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/ChangeLog,v 1.76 2009/10/03 15:04:34 scarabeus Exp $
30 +
31 +*boinc-6.6.40-r2 (03 Oct 2009)
32 +
33 + 03 Oct 2009; Tomáš Chvátal <scarabeus@g.o>
34 + +files/6.6.40-xfersigseg.patch, -boinc-6.6.40-r1.ebuild,
35 + +boinc-6.6.40-r2.ebuild:
36 + Revision bump to fix segfault. Per bug #287441. Thx to Isaac Chanin for
37 + the patch.
38
39 30 Sep 2009; Tomáš Chvátal <scarabeus@g.o>
40 +files/6.6.40-fcgi.patch:
41
42
43
44 1.1 sci-misc/boinc/boinc-6.6.40-r2.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-misc/boinc/boinc-6.6.40-r2.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-misc/boinc/boinc-6.6.40-r2.ebuild?rev=1.1&content-type=text/plain
48
49 Index: boinc-6.6.40-r2.ebuild
50 ===================================================================
51 # Copyright 1999-2009 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/boinc-6.6.40-r2.ebuild,v 1.1 2009/10/03 15:04:34 scarabeus Exp $
54
55 EAPI="2"
56
57 inherit flag-o-matic depend.apache eutils wxwidgets autotools
58
59 DESCRIPTION="The Berkeley Open Infrastructure for Network Computing"
60 HOMEPAGE="http://boinc.ssl.berkeley.edu/"
61 SRC_URI="http://dev.gentooexperimental.org/~scarabeus/${P}.tar.bz2"
62
63 LICENSE="LGPL-2.1"
64 SLOT="0"
65 KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
66 IUSE="X +client cuda server"
67
68 RDEPEND="
69 !sci-misc/boinc-bin
70 !app-admin/quickswitch
71 >=app-misc/ca-certificates-20080809
72 dev-libs/openssl
73 net-misc/curl
74 sys-apps/util-linux
75 sys-libs/zlib
76 cuda? (
77 >=dev-util/nvidia-cuda-toolkit-2.1
78 >=x11-drivers/nvidia-drivers-180.22
79 )
80 server? (
81 >=virtual/mysql-5.0
82 dev-python/mysql-python
83 )
84 "
85 DEPEND="${RDEPEND}
86 sys-devel/gettext
87 server? ( virtual/imap-c-client )
88 X? (
89 media-libs/freeglut
90 media-libs/jpeg
91 x11-libs/wxGTK:2.8[X,opengl]
92 )
93 "
94
95 src_prepare() {
96 # use system ssl certificates
97 mkdir "${S}"/curl
98 cp /etc/ssl/certs/ca-certificates.crt "${S}"/curl/ca-bundle.crt
99
100 # prevent bad changes in compile flags, bug 286701
101 sed -i -e "s:BOINC_SET_COMPILE_FLAGS::" configure.ac || die "sed failed"
102
103 epatch \
104 "${FILESDIR}"/6.4.5-glibc210.patch \
105 "${FILESDIR}"/${PV}-*
106
107 eautoreconf
108 }
109
110 src_configure() {
111 local wxconf=""
112 local conf=""
113
114 # define preferable CFLAGS (recommended by upstream)
115 append-flags -O3 -funroll-loops -fforce-addr -ffast-math
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 # Bug #248769: don't use strlcat and friends from kerberos or similar
127 #local func
128 #for func in strlcat strlcpy; do
129 # eval "export ac_cv_func_${func}=no"
130 # append-cppflags -D${func}=boinc_${func}
131 #done
132 use server || conf+=" --disable-server"
133 use X || conf+=" --disable-manager"
134 use client || conf+=" --disable-client"
135
136 # configure
137 econf \
138 --disable-dependency-tracking \
139 --enable-unicode \
140 --with-ssl \
141 --enable-optimize \
142 $(use_with X x) \
143 ${wxconf} \
144 ${conf}
145 }
146
147 src_install() {
148 emake DESTDIR="${D}" install || die "make install failed"
149
150 dodir /var/lib/${PN}/
151 keepdir /var/lib/${PN}/
152
153 if use X; then
154 newicon "${S}"/packages/generic/sea/${PN}mgr.48x48.png ${PN}.png || die
155 make_desktop_entry boincmgr "${PN}" "${PN}" "Math;Science" /var/lib/${PN}
156 fi
157
158 # cleanup cruft
159 rm -rf "${D}"/etc/
160
161 newinitd "${FILESDIR}"/${PN}.init ${PN}
162 newconfd "${FILESDIR}"/${PN}.conf ${PN}
163 }
164
165 pkg_setup() {
166 enewgroup ${PN}
167 # note this works only for first install so we have to
168 # elog user about the need of being in video group
169 if use cuda; then
170 enewuser ${PN} -1 -1 /var/lib/${PN} "${PN},video"
171 else
172 enewuser ${PN} -1 -1 /var/lib/${PN} "${PN}"
173 fi
174 }
175
176 pkg_postinst() {
177 echo
178 elog "You are using the source compiled version of ${PN}."
179 use X && elog "The graphical manager can be found at /usr/bin/${PN}mgr"
180 elog
181 elog "You need to attach to a project to do anything useful with ${PN}."
182 elog "You can do this by running /etc/init.d/${PN} attach"
183 elog "The howto for configuration is located at:"
184 elog "http://boinc.berkeley.edu/wiki/Anonymous_platform"
185 elog
186 # Add warning about the new password for the client, bug 121896.
187 if use X; then
188 elog "If you need to use the graphical manager the password is in:"
189 elog "/var/lib/${PN}/gui_rpc_auth.cfg"
190 elog "Where /var/lib/ is default RUNTIMEDIR, that can be changed in:"
191 elog "/etc/conf.d/${PN}"
192 elog "You should change this password to something more memorable (can be even blank)."
193 elog "Remember to launch init script before using manager. Or changing the password."
194 elog
195 fi
196 if use cuda; then
197 elog "To be able to use CUDA you should add boinc user to video group."
198 elog "To do so run as root:"
199 elog "gpasswd -a boinc video"
200 fi
201 }