/[gentoo-x86]/sci-misc/boinc/boinc-6.6.40-r1.ebuild
Gentoo

Contents of /sci-misc/boinc/boinc-6.6.40-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Oct 3 15:04:34 2009 UTC (10 years, 4 months ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Revision bump to fix segfault. Per bug #287441. Thx to Isaac Chanin for the patch.
(Portage version: 2.2_rc41/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/boinc-6.6.40-r1.ebuild,v 1.2 2009/09/29 17:45:00 scarabeus Exp $
4
5 EAPI="2"
6
7 inherit flag-o-matic depend.apache eutils wxwidgets autotools
8
9 DESCRIPTION="The Berkeley Open Infrastructure for Network Computing"
10 HOMEPAGE="http://boinc.ssl.berkeley.edu/"
11 SRC_URI="http://dev.gentooexperimental.org/~scarabeus/${P}.tar.bz2"
12
13 LICENSE="LGPL-2.1"
14 SLOT="0"
15 KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
16 IUSE="X +client cuda server"
17
18 RDEPEND="
19 !sci-misc/boinc-bin
20 !app-admin/quickswitch
21 >=app-misc/ca-certificates-20080809
22 dev-libs/openssl
23 net-misc/curl
24 sys-apps/util-linux
25 sys-libs/zlib
26 cuda? (
27 >=dev-util/nvidia-cuda-toolkit-2.1
28 >=x11-drivers/nvidia-drivers-180.22
29 )
30 server? (
31 >=virtual/mysql-5.0
32 dev-python/mysql-python
33 )
34 "
35 DEPEND="${RDEPEND}
36 sys-devel/gettext
37 server? ( virtual/imap-c-client )
38 X? (
39 media-libs/freeglut
40 media-libs/jpeg
41 x11-libs/wxGTK:2.8[X,opengl]
42 )
43 "
44
45 src_prepare() {
46 # use system ssl certificates
47 mkdir "${S}"/curl
48 cp /etc/ssl/certs/ca-certificates.crt "${S}"/curl/ca-bundle.crt
49
50 # prevent bad changes in compile flags, bug 286701
51 sed -i -e "s:BOINC_SET_COMPILE_FLAGS::" configure.ac || die "sed failed"
52
53 epatch \
54 "${FILESDIR}"/6.4.5-glibc210.patch \
55 "${FILESDIR}"/${PV}-*
56
57 eautoreconf
58 }
59
60 src_configure() {
61 local wxconf=""
62 local conf=""
63
64 # define preferable CFLAGS (recommended by upstream)
65 append-flags -O3 -funroll-loops -fforce-addr -ffast-math
66
67 # look for wxGTK
68 if use X; then
69 WX_GTK_VER="2.8"
70 need-wxwidgets unicode
71 wxconf+=" --with-wx-config=${WX_CONFIG}"
72 else
73 wxconf+=" --without-wxdir"
74 fi
75
76 # Bug #248769: don't use strlcat and friends from kerberos or similar
77 #local func
78 #for func in strlcat strlcpy; do
79 # eval "export ac_cv_func_${func}=no"
80 # append-cppflags -D${func}=boinc_${func}
81 #done
82 use server || conf+=" --disable-server"
83 use X || conf+=" --disable-manager"
84 use client || conf+=" --disable-client"
85
86 # configure
87 econf \
88 --disable-dependency-tracking \
89 --enable-unicode \
90 --with-ssl \
91 --enable-optimize \
92 $(use_with X x) \
93 ${wxconf} \
94 ${conf}
95 }
96
97 src_install() {
98 emake DESTDIR="${D}" install || die "make install failed"
99
100 dodir /var/lib/${PN}/
101 keepdir /var/lib/${PN}/
102
103 if use X; then
104 newicon "${S}"/packages/generic/sea/${PN}mgr.48x48.png ${PN}.png || die
105 make_desktop_entry boincmgr "${PN}" "${PN}" "Math;Science" /var/lib/${PN}
106 fi
107
108 # cleanup cruft
109 rm -rf "${D}"/etc/
110
111 newinitd "${FILESDIR}"/${PN}.init ${PN}
112 newconfd "${FILESDIR}"/${PN}.conf ${PN}
113 }
114
115 pkg_setup() {
116 enewgroup ${PN}
117 # note this works only for first install so we have to
118 # elog user about the need of being in video group
119 if use cuda; then
120 enewuser ${PN} -1 -1 /var/lib/${PN} "${PN},video"
121 else
122 enewuser ${PN} -1 -1 /var/lib/${PN} "${PN}"
123 fi
124 }
125
126 pkg_postinst() {
127 echo
128 elog "You are using the source compiled version of ${PN}."
129 use X && elog "The graphical manager can be found at /usr/bin/${PN}mgr"
130 elog
131 elog "You need to attach to a project to do anything useful with ${PN}."
132 elog "You can do this by running /etc/init.d/${PN} attach"
133 elog "The howto for configuration is located at:"
134 elog "http://boinc.berkeley.edu/wiki/Anonymous_platform"
135 elog
136 # Add warning about the new password for the client, bug 121896.
137 if use X; then
138 elog "If you need to use the graphical manager the password is in:"
139 elog "/var/lib/${PN}/gui_rpc_auth.cfg"
140 elog "Where /var/lib/ is default RUNTIMEDIR, that can be changed in:"
141 elog "/etc/conf.d/${PN}"
142 elog "You should change this password to something more memorable (can be even blank)."
143 elog "Remember to launch init script before using manager. Or changing the password."
144 elog
145 fi
146 if use cuda; then
147 elog "To be able to use CUDA you should add boinc user to video group."
148 elog "To do so run as root:"
149 elog "gpasswd -a boinc video"
150 fi
151 }

  ViewVC Help
Powered by ViewVC 1.1.20