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

Contents of /sci-misc/boinc/boinc-6.4.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Feb 16 19:48:25 2009 UTC (11 years ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Revision bump. Fix the RSA Security issue. Per bug #258011.
(Portage version: 2.2_rc23/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.4.5.ebuild,v 1.3 2009/02/13 16:42:41 ranger Exp $
4
5 #
6 # Don't forget to keep things in sync with binary boinc package!
7 #
8
9 EAPI="2"
10
11 inherit flag-o-matic depend.apache eutils wxwidgets
12
13 DESCRIPTION="The Berkeley Open Infrastructure for Network Computing"
14 HOMEPAGE="http://boinc.ssl.berkeley.edu/"
15 SRC_URI="http://dev.gentooexperimental.org/~scarabeus/${P}.tar.bz2"
16
17 LICENSE="LGPL-2.1"
18 SLOT="0"
19 KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
20 IUSE="X cuda server"
21
22 RDEPEND="
23 !sci-misc/boinc
24 >=app-misc/ca-certificates-20080809
25 dev-libs/openssl
26 net-misc/curl
27 sys-apps/util-linux
28 sys-libs/zlib
29 cuda? (
30 >=dev-util/nvidia-cuda-toolkit-2.1
31 >=x11-drivers/nvidia-drivers-180.22
32 )
33 server? (
34 >=virtual/mysql-5.0
35 dev-python/mysql-python
36 )
37 "
38 DEPEND="${RDEPEND}
39 sys-devel/gettext
40 server? ( virtual/imap-c-client )
41 X? (
42 media-libs/freeglut
43 media-libs/jpeg
44 x11-libs/wxGTK:2.8[X,opengl]
45 )
46 "
47
48 src_prepare() {
49 # use system ssl certificates
50 mkdir "${S}"/curl
51 cp /etc/ssl/certs/ca-certificates.crt "${S}"/curl/ca-bundle.crt
52 # copy icons to correct location
53 cp "${S}"/sea/*.png "${S}"/clientgui/res/
54 # fix stripping
55 ## TODO
56 }
57
58 src_configure() {
59 local wxconf=""
60 local config=""
61
62 # define preferable CFLAGS (recommended by upstream)
63 append-flags -O3 -funroll-loops -fforce-addr -ffast-math
64
65 # look for wxGTK
66 if use X; then
67 WX_GTK_VER="2.8"
68 need-wxwidgets unicode
69 wxconf="${wxconf} --with-wx-config=${WX_CONFIG}"
70 else
71 wxconf="${wxconf} --without-wxdir"
72 fi
73
74 # nonstandard enable
75 use server || config="--disable-server"
76
77 # configure
78 econf \
79 --disable-dependency-tracking \
80 --with-gnu-ld \
81 --enable-unicode \
82 --enable-client \
83 --with-ssl \
84 ${wxconf} \
85 ${config} \
86 $(use_with X x)
87
88 # Fix LDFLAGS. Link to compiled stuff and not to installed one
89 sed -i \
90 -e "s|LDFLAGS = |LDFLAGS = -L../lib |g" \
91 */Makefile || die "sed failed"
92 }
93
94 src_compile() {
95 # disable paralel build.
96 emake -j1 || die "emake failed"
97 }
98
99 src_install() {
100 emake DESTDIR="${D}" install || die "make install failed"
101
102 dodir /var/lib/${PN}/
103 keepdir /var/lib/${PN}/
104
105 if use X; then
106 newicon "${S}"/sea/${PN}mgr.48x48.png ${PN}.png
107 make_desktop_entry /usr/bin/boinc_gui "${PN}" ${PN} "Education;Science" /var/lib/${PN}
108 fi
109
110 # cleanup cruft
111 rm "${D}"/usr/bin/ca-bundle.crt
112 rm -rf "${D}"/etc/
113
114 newinitd "${FILESDIR}"/${PN}.init ${PN}
115 newconfd "${FILESDIR}"/${PN}.conf ${PN}
116 }
117
118 pkg_setup() {
119 enewgroup ${PN}
120 if use cuda; then
121 enewuser ${PN} -1 -1 /var/lib/${PN} "${PN},video"
122 else
123 enewuser ${PN} -1 -1 /var/lib/${PN} "${PN}"
124 fi
125 }
126
127 pkg_postinst() {
128 echo
129 elog "You are using the source compiled version."
130 elog "The manager can be found at /usr/bin/${PN}_gui"
131 elog
132 elog "You need to attach to a project to do anything useful with ${PN}."
133 elog "You can do this by running /etc/init.d/${PN} attach"
134 elog "The howto for configuration is located at:"
135 elog "http://${PN}.berkeley.edu/anonymous_platform.php"
136 elog
137 # Add warning about the new password for the client, bug 121896.
138 elog "If you need to use the graphical client 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 to something more memorable (can be even blank)."
143 elog
144 elog "Remember to launch init script before using manager. Or changing the password."
145 if use cuda; then
146 elog "To be able to use CUDA you should add boinc user to video group."
147 elog "To do so run as root:"
148 elog "gpasswd -a boinc video"
149 fi
150 }

  ViewVC Help
Powered by ViewVC 1.1.20