diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2009-01-31 15:19:36 +0000 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2009-01-31 15:19:36 +0000 |
commit | 766d9cec43af8f316961040d4b0a851da23c5f42 (patch) | |
tree | 171933b0866f1768a9065c97dd3a3cdfd44d0840 /sci-misc | |
parent | Mask cuda use flag for boinc. Make it work only for nonhardened amd64 and x86. (diff) | |
download | gentoo-2-766d9cec43af8f316961040d4b0a851da23c5f42.tar.gz gentoo-2-766d9cec43af8f316961040d4b0a851da23c5f42.tar.bz2 gentoo-2-766d9cec43af8f316961040d4b0a851da23c5f42.zip |
Version bump. Remove old cruft. Per bug #251766.
(Portage version: 2.2_rc23/cvs/Linux x86_64)
Diffstat (limited to 'sci-misc')
20 files changed, 248 insertions, 1180 deletions
diff --git a/sci-misc/boinc/ChangeLog b/sci-misc/boinc/ChangeLog index 9013b63fa454..1321e2b759cf 100644 --- a/sci-misc/boinc/ChangeLog +++ b/sci-misc/boinc/ChangeLog @@ -1,6 +1,20 @@ # ChangeLog for sci-misc/boinc # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/ChangeLog,v 1.46 2009/01/21 10:44:26 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/ChangeLog,v 1.47 2009/01/31 15:19:36 scarabeus Exp $ + +*boinc-6.4.5 (31 Jan 2009) + + 31 Jan 2009; Tomas Chvatal <scarabeus@gentoo.org> + -files/08_all_Makefile.patch, -files/boinc-4.72.20050813-gcc4-fix.patch, + -files/boinc-5.2.14-gcc-4.1.patch, -files/boinc-5.10.45-gcc4.3.patch, + -files/boinc-6.2.15-mute-warnings.patch, + -files/boinc-6.2.15-project-list-size.patch, files/boinc.conf, + files/boinc.init, -files/gui_rpc_auth.cfg, metadata.xml, + -boinc-4.72.20050813-r3.ebuild, -boinc-5.2.14.ebuild, + -boinc-5.4.11.ebuild, -boinc-5.5.6.ebuild, -boinc-5.8.15.ebuild, + -boinc-5.10.28.ebuild, -boinc-5.10.45.ebuild, -boinc-6.2.15.ebuild, + +boinc-6.4.5.ebuild: + Version bump. Remove old cruft. Per bug #251766. 21 Jan 2009; Sébastien Fabbro <bicatali@gentoo.org> metadata.xml: Updated maintainership for scarabeus diff --git a/sci-misc/boinc/boinc-4.72.20050813-r3.ebuild b/sci-misc/boinc/boinc-4.72.20050813-r3.ebuild deleted file mode 100644 index 08a6a4637b3a..000000000000 --- a/sci-misc/boinc/boinc-4.72.20050813-r3.ebuild +++ /dev/null @@ -1,95 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/boinc-4.72.20050813-r3.ebuild,v 1.13 2008/04/17 19:04:16 markusle Exp $ - -inherit eutils wxwidgets depend.apache - -MY_PN="boinc_public-cvs" -MY_PV="2005-08-13" -S=${WORKDIR}/boinc_public - -DESCRIPTION="The Berkeley Open Infrastructure for Network Computing" -HOMEPAGE="http://boinc.ssl.berkeley.edu/" -SRC_URI="http://boinc.ssl.berkeley.edu/source/nightly/${MY_PN}-${MY_PV}.tar.gz" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86" -IUSE="server X" - -RDEPEND="sys-libs/zlib - X? ( =x11-libs/wxGTK-2.6* ) - server? ( >=virtual/mysql-4.0 - virtual/php - >=dev-lang/python-2.2.3 - >=dev-python/mysql-python-0.9.2 )" -DEPEND=">=sys-devel/gcc-3.0.4 - >=sys-devel/autoconf-2.59 - >=sys-devel/automake-1.9.3 - X? ( x11-libs/libXmu - x11-libs/libXt - x11-libs/libX11 - x11-proto/xproto - virtual/glut - virtual/glu - media-libs/jpeg ) - server? ( virtual/imap-c-client ) - ${RDEPEND}" - -want_apache server - -src_unpack() { - unpack ${A} - cd "${S}" - - # GCC 4 patch, bug 112133. - epatch "${FILESDIR}"/${P}-gcc4-fix.patch - - # point to a proper mouse device - sed -e "s:/dev/mouse:/dev/input/mice:g" -i client/hostinfo_unix.C || die -} - -src_compile() { - if use X; then - WX_GTK_VER=2.6 - need-wxwidgets gtk2 - wxconf="--with-wx-config=${WX_CONFIG}" - fi - - econf \ - --enable-client \ - --disable-static-client \ - ${wxconf} \ - $(use_enable server) \ - $(use_with X x) || die "econf failed" - emake || die "emake failed" -} - -src_install() { - make install DESTDIR="${D}" || die "make install failed" - - newinitd "${FILESDIR}"/boinc.init boinc - newconfd "${FILESDIR}"/boinc.conf boinc - - make_desktop_entry boinc_gui BOINC boinc Science /var/lib/boinc -} - -pkg_preinst() { - enewgroup boinc - enewuser boinc -1 -1 /var/lib/boinc boinc -} - -pkg_postinst() { - echo - einfo "You need to attach to a project to do anything useful with boinc." - einfo "You can do this by running /etc/init.d/boinc attach" - einfo "BOINC The howto for configuration is located at:" - einfo "http://boinc.berkeley.edu/anonymous_platform.php" - if use server;then - echo - einfo "You have chosen to enable server mode. this ebuild has installed" - einfo "the necessary packages to be a server. You will need to have a" - einfo "project. Contact BOINC directly for further information." - fi - echo -} diff --git a/sci-misc/boinc/boinc-5.10.28.ebuild b/sci-misc/boinc/boinc-5.10.28.ebuild deleted file mode 100644 index cabe05bc0091..000000000000 --- a/sci-misc/boinc/boinc-5.10.28.ebuild +++ /dev/null @@ -1,115 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/boinc-5.10.28.ebuild,v 1.3 2008/04/17 19:04:16 markusle Exp $ - -inherit flag-o-matic wxwidgets depend.apache - -DESCRIPTION="The Berkeley Open Infrastructure for Network Computing" -HOMEPAGE="http://boinc.ssl.berkeley.edu/" -SRC_URI="mirror://gentoo//${P}.tar.bz2" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86" -IUSE="server X unicode" - -RDEPEND="sys-libs/zlib - >=net-misc/curl-7.15.5 - >=dev-libs/openssl-0.9.7 - X? ( =x11-libs/wxGTK-2.6* ) - server? ( >=virtual/mysql-4.0 - virtual/php - >=dev-lang/python-2.2.3 - >=dev-python/mysql-python-0.9.2 )" -DEPEND=">=sys-devel/gcc-3.0.4 - >=sys-devel/autoconf-2.58 - >=sys-devel/automake-1.8 - >=dev-util/pkgconfig-0.15 - >=sys-devel/m4-1.4 - X? ( x11-libs/libXmu - x11-libs/libXt - x11-libs/libX11 - x11-proto/xproto - virtual/glut - virtual/glu - media-libs/jpeg ) - server? ( virtual/imap-c-client ) - ${RDEPEND}" - -want_apache server - -src_unpack() { - unpack ${A} - cd "${S}" -} - -src_compile() { - append-flags -O3 -funroll-loops -fforce-addr -ffast-math - - if use X; then - WX_GTK_VER=2.6 - if use unicode; then - need-wxwidgets unicode - else - need-wxwidgets gtk2 - fi - wxconf="--with-wx-config=${WX_CONFIG}" - fi - - # Just run the necessary tools directly - #einfo "Running necessary autotools..." - #aclocal -I m4 || die "aclocal failed." - #autoheader || die "autoheader failed." - #automake || die "automake failed." - #autoconf || die "autoconf failed." - econf \ - --enable-client \ - --disable-static-client \ - --with-ssl \ - ${wxconf} \ - $(use_enable unicode) \ - $(use_enable server) \ - $(use_with X x) || die "econf failed" - # Make it link to the compiled libs, not the installed ones - sed -e "s|LDFLAGS = |LDFLAGS = -L../lib |g" -i */Makefile || \ - die "sed failed" - # Force -j1 - bug 136374. - emake -j1 || die "emake failed" -} - -src_install() { - make install DESTDIR=""${D}"" || die "make install failed" - mkdir "${D}"/var "${D}"/var/lib "${D}"/var/lib/boinc/ - cp "${S}"/ca-bundle.crt "${D}"/var/lib/boinc - chown boinc:boinc "${D}"/var/lib/boinc - newinitd "${FILESDIR}"/boinc.init boinc - newconfd "${FILESDIR}"/boinc.conf boinc - - make_desktop_entry boinc_gui BOINC boinc Science /var/lib/boinc -} - -pkg_preinst() { - enewgroup boinc - enewuser boinc -1 -1 /var/lib/boinc boinc -} - -pkg_postinst() { - echo - einfo "You need to attach to a project to do anything useful with boinc." - einfo "You can do this by running /etc/init.d/boinc attach" - einfo "BOINC The howto for configuration is located at:" - einfo "http://boinc.berkeley.edu/anonymous_platform.php" - if use server;then - echo - einfo "You have chosen to enable server mode. this ebuild has installed" - einfo "the necessary packages to be a server. You will need to have a" - einfo "project. Contact BOINC directly for further information." - fi - echo - # Add warning about the new password for the client, bug 121896. - einfo "If you need to use the graphical client the password is in " - einfo "/var/lib/boinc/gui_rpc_auth.cfg which is randomly generated " - einfo "by BOINC upon successfully running the gui for the first time." - einfo "You can change this to something more memorable." - echo -} diff --git a/sci-misc/boinc/boinc-5.10.45.ebuild b/sci-misc/boinc/boinc-5.10.45.ebuild deleted file mode 100644 index 98532635e4eb..000000000000 --- a/sci-misc/boinc/boinc-5.10.45.ebuild +++ /dev/null @@ -1,120 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/boinc-5.10.45.ebuild,v 1.3 2008/04/18 17:57:38 markusle Exp $ - -inherit flag-o-matic wxwidgets depend.apache - -DESCRIPTION="The Berkeley Open Infrastructure for Network Computing" -HOMEPAGE="http://boinc.ssl.berkeley.edu/" -SRC_URI="mirror://gentoo//${P}.tar.bz2" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86" -IUSE="server X unicode" - -RDEPEND="sys-libs/zlib - >=net-misc/curl-7.15.5 - >=dev-libs/openssl-0.9.7 - X? ( =x11-libs/wxGTK-2.8* ) - server? ( >=virtual/mysql-4.0 - virtual/php - >=dev-lang/python-2.2.3 - >=dev-python/mysql-python-0.9.2 )" -DEPEND=">=sys-devel/gcc-3.0.4 - >=sys-devel/autoconf-2.58 - >=sys-devel/automake-1.8 - >=dev-util/pkgconfig-0.15 - >=sys-devel/m4-1.4 - X? ( x11-libs/libXmu - x11-libs/libXt - x11-libs/libX11 - x11-proto/xproto - virtual/glut - virtual/glu - media-libs/jpeg ) - server? ( virtual/imap-c-client ) - ${RDEPEND}" - -want_apache server - -src_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}"/${P}-gcc4.3.patch -} - -src_compile() { - #upstream recommendation for flags - append-flags -O3 -funroll-loops -fforce-addr -ffast-math - - local wxconf="" - if use X; then - WX_GTK_VER=2.8 - if use unicode; then - need-wxwidgets unicode - else - need-wxwidgets gtk2 - fi - wxconf="${wxconf} --with-wx-config=${WX_CONFIG}" - else - wxconf="${wxconf} --without-wxdir" - fi - - # Just run the necessary tools directly - #einfo "Running necessary autotools..." - #aclocal -I m4 || die "aclocal failed." - #autoheader || die "autoheader failed." - #automake || die "automake failed." - #autoconf || die "autoconf failed." - econf \ - --enable-client \ - --disable-static-client \ - --with-ssl \ - ${wxconf} \ - $(use_enable unicode) \ - $(use_enable server) \ - $(use_with X x) || die "econf failed" - # Make it link to the compiled libs, not the installed ones - sed -e "s|LDFLAGS = |LDFLAGS = -L../lib |g" -i */Makefile || \ - die "sed failed" - # Force -j1 - bug 136374. - emake -j1 || die "emake failed" -} - -src_install() { - emake DESTDIR=""${D}"" install || die "make install failed" - mkdir -p "${D}"/var/lib/boinc/ - cp "${S}"/ca-bundle.crt "${D}"/var/lib/boinc - chown boinc:boinc "${D}"/var/lib/boinc - newinitd "${FILESDIR}"/boinc.init boinc - newconfd "${FILESDIR}"/boinc.conf boinc - - make_desktop_entry boinc_gui BOINC boinc Science /var/lib/boinc -} - -pkg_preinst() { - enewgroup boinc - enewuser boinc -1 -1 /var/lib/boinc boinc -} - -pkg_postinst() { - echo - einfo "You need to attach to a project to do anything useful with boinc." - einfo "You can do this by running /etc/init.d/boinc attach" - einfo "BOINC The howto for configuration is located at:" - einfo "http://boinc.berkeley.edu/anonymous_platform.php" - if use server;then - echo - einfo "You have chosen to enable server mode. this ebuild has installed" - einfo "the necessary packages to be a server. You will need to have a" - einfo "project. Contact BOINC directly for further information." - fi - echo - # Add warning about the new password for the client, bug 121896. - einfo "If you need to use the graphical client the password is in " - einfo "/var/lib/boinc/gui_rpc_auth.cfg which is randomly generated " - einfo "by BOINC upon successfully running the gui for the first time." - einfo "You can change this to something more memorable." - echo -} diff --git a/sci-misc/boinc/boinc-5.2.14.ebuild b/sci-misc/boinc/boinc-5.2.14.ebuild deleted file mode 100644 index 8f110304ea3b..000000000000 --- a/sci-misc/boinc/boinc-5.2.14.ebuild +++ /dev/null @@ -1,106 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/boinc-5.2.14.ebuild,v 1.15 2008/04/17 19:04:16 markusle Exp $ - -inherit eutils wxwidgets depend.apache - -DESCRIPTION="The Berkeley Open Infrastructure for Network Computing" -HOMEPAGE="http://boinc.ssl.berkeley.edu/" -SRC_URI="mirror://gentoo//${P}.tar.bz2 - mirror://gentoo/${P}-patches.tar.bz2" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86" -IUSE="server X unicode" - -RDEPEND="sys-libs/zlib - >=net-misc/curl-7.15.0 - >=dev-libs/openssl-0.9.7 - X? ( =x11-libs/wxGTK-2.6* ) - server? ( >=virtual/mysql-4.0 - virtual/php - >=dev-lang/python-2.2.3 - >=dev-python/mysql-python-0.9.2 )" -DEPEND=">=sys-devel/gcc-3.0.4 - >=sys-devel/autoconf-2.59 - >=sys-devel/automake-1.9.3 - X? ( x11-libs/libXmu - x11-libs/libXt - x11-libs/libX11 - x11-proto/xproto - virtual/glut - virtual/glu - media-libs/jpeg ) - server? ( virtual/imap-c-client ) - ${RDEPEND}" - -want_apache server - -src_unpack() { - unpack ${A} - cd "${S}" - - # Apply patches, most of which from Debian - EPATCH_SOURCE="${WORKDIR}/patches" EPATCH_SUFFIX="patch" epatch - epatch "${FILESDIR}"/08_all_Makefile.patch - epatch "${FILESDIR}"/${P}-gcc-4.1.patch - - # point to a proper mouse device - sed -e "s:/dev/mouse:/dev/input/mice:g" -i client/hostinfo_unix.C || die -} - -src_compile() { - if use X; then - WX_GTK_VER=2.6 - if use unicode; then - need-wxwidgets unicode - else - need-wxwidgets gtk2 - fi - wxconf="--with-wx-config=${WX_CONFIG}" - fi - - econf \ - --enable-client \ - --disable-static-client \ - ${wxconf} \ - $(use_enable unicode) \ - $(use_enable server) \ - $(use_with X x) || die "econf failed" - emake || die "emake failed" -} - -src_install() { - make install DESTDIR="${D}" || die "make install failed" - - newinitd "${FILESDIR}"/boinc.init boinc - newconfd "${FILESDIR}"/boinc.conf boinc - - make_desktop_entry boinc_gui BOINC boinc Science /var/lib/boinc -} - -pkg_preinst() { - enewgroup boinc - enewuser boinc -1 -1 /var/lib/boinc boinc -} - -pkg_postinst() { - echo - einfo "You need to attach to a project to do anything useful with boinc." - einfo "You can do this by running /etc/init.d/boinc attach" - einfo "BOINC The howto for configuration is located at:" - einfo "http://boinc.berkeley.edu/anonymous_platform.php" - if use server;then - echo - einfo "You have chosen to enable server mode. this ebuild has installed" - einfo "the necessary packages to be a server. You will need to have a" - einfo "project. Contact BOINC directly for further information." - fi - echo - # Add warning about the new password for the client, bug 121896. - einfo "If you need to use the graphical client the password is in " - einfo "/var/lib/boinc/gui_rpc_auth.cfg which is randomly generated " - einfo "by BOINC. You can change this to something more memorable." - echo -} diff --git a/sci-misc/boinc/boinc-5.4.11.ebuild b/sci-misc/boinc/boinc-5.4.11.ebuild deleted file mode 100644 index 867b756a10af..000000000000 --- a/sci-misc/boinc/boinc-5.4.11.ebuild +++ /dev/null @@ -1,106 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/boinc-5.4.11.ebuild,v 1.10 2008/04/17 19:04:16 markusle Exp $ - -inherit eutils wxwidgets depend.apache - -DESCRIPTION="The Berkeley Open Infrastructure for Network Computing" -HOMEPAGE="http://boinc.ssl.berkeley.edu/" -SRC_URI="mirror://gentoo//${P}.tar.bz2" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86" -IUSE="server X unicode" - -RDEPEND="sys-libs/zlib - >=net-misc/curl-7.15.0 - >=dev-libs/openssl-0.9.7 - X? ( =x11-libs/wxGTK-2.6* ) - server? ( >=virtual/mysql-4.0 - virtual/php - >=dev-lang/python-2.2.3 - >=dev-python/mysql-python-0.9.2 )" -DEPEND=">=sys-devel/gcc-3.0.4 - >=sys-devel/autoconf-2.58 - >=sys-devel/automake-1.8 - >=dev-util/pkgconfig-0.15 - >=sys-devel/m4-1.4 - X? ( x11-libs/libXmu - x11-libs/libXt - x11-libs/libX11 - x11-proto/xproto - virtual/glut - virtual/glu - media-libs/jpeg ) - server? ( virtual/imap-c-client ) - ${RDEPEND}" - -want_apache server - -src_unpack() { - unpack ${A} - cd "${S}" - - # point to a proper mouse device - sed -e "s:/dev/mouse:/dev/input/mice:g" -i client/hostinfo_unix.C || die -} - -src_compile() { - if use X; then - WX_GTK_VER=2.6 - if use unicode; then - need-wxwidgets unicode - else - need-wxwidgets gtk2 - fi - wxconf="--with-wx-config=${WX_CONFIG}" - fi - - econf \ - --enable-client \ - --disable-static-client \ - ${wxconf} \ - $(use_enable unicode) \ - $(use_enable server) \ - $(use_with X x) || die "econf failed" - # Make it link to the compiled libs, not the installed ones - sed -e "s|LDFLAGS = |LDFLAGS = -L../lib |g" -i */Makefile || \ - die "sed failed" - # Force -j1 - bug 136374. - emake -j1 || die "emake failed" -} - -src_install() { - make install DESTDIR="${D}" || die "make install failed" - - newinitd "${FILESDIR}"/boinc.init boinc - newconfd "${FILESDIR}"/boinc.conf boinc - - make_desktop_entry boinc_gui BOINC boinc Science /var/lib/boinc -} - -pkg_preinst() { - enewgroup boinc - enewuser boinc -1 -1 /var/lib/boinc boinc -} - -pkg_postinst() { - echo - einfo "You need to attach to a project to do anything useful with boinc." - einfo "You can do this by running /etc/init.d/boinc attach" - einfo "BOINC The howto for configuration is located at:" - einfo "http://boinc.berkeley.edu/anonymous_platform.php" - if use server;then - echo - einfo "You have chosen to enable server mode. this ebuild has installed" - einfo "the necessary packages to be a server. You will need to have a" - einfo "project. Contact BOINC directly for further information." - fi - echo - # Add warning about the new password for the client, bug 121896. - einfo "If you need to use the graphical client the password is in " - einfo "/var/lib/boinc/gui_rpc_auth.cfg which is randomly generated " - einfo "by BOINC. You can change this to something more memorable." - echo -} diff --git a/sci-misc/boinc/boinc-5.5.6.ebuild b/sci-misc/boinc/boinc-5.5.6.ebuild deleted file mode 100644 index 6e26d6865773..000000000000 --- a/sci-misc/boinc/boinc-5.5.6.ebuild +++ /dev/null @@ -1,112 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/boinc-5.5.6.ebuild,v 1.13 2008/04/17 19:04:16 markusle Exp $ - -inherit eutils wxwidgets depend.apache - -DESCRIPTION="The Berkeley Open Infrastructure for Network Computing" -HOMEPAGE="http://boinc.ssl.berkeley.edu/" -SRC_URI="mirror://gentoo//${P}.tar.bz2" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86" -IUSE="server X unicode" - -RDEPEND="sys-libs/zlib - >=net-misc/curl-7.15.0 - >=dev-libs/openssl-0.9.7 - X? ( =x11-libs/wxGTK-2.6* ) - server? ( >=virtual/mysql-4.0 - virtual/php - >=dev-lang/python-2.2.3 - >=dev-python/mysql-python-0.9.2 )" -DEPEND=">=sys-devel/gcc-3.0.4 - >=sys-devel/autoconf-2.58 - >=sys-devel/automake-1.8 - >=dev-util/pkgconfig-0.15 - >=sys-devel/m4-1.4 - X? ( x11-libs/libXmu - x11-libs/libXt - x11-libs/libX11 - x11-proto/xproto - virtual/glut - virtual/glu - media-libs/jpeg ) - server? ( virtual/imap-c-client ) - ${RDEPEND}" - -want_apache server - -src_unpack() { - unpack ${A} - cd "${S}" - - # point to a proper mouse device - sed -e "s:/dev/mouse:/dev/input/mice:g" -i client/hostinfo_unix.C || die -} - -src_compile() { - if use X; then - WX_GTK_VER=2.6 - if use unicode; then - need-wxwidgets unicode - else - need-wxwidgets gtk2 - fi - wxconf="--with-wx-config=${WX_CONFIG}" - fi - - # Just run the necessary tools directly - einfo "Running necessary autotools..." - aclocal -I m4 || die "aclocal failed." - autoheader || die "autoheader failed." - automake || die "automake failed." - autoconf || die "autoconf failed." - econf \ - --enable-client \ - --disable-static-client \ - ${wxconf} \ - $(use_enable unicode) \ - $(use_enable server) \ - $(use_with X x) || die "econf failed" - # Make it link to the compiled libs, not the installed ones - sed -e "s|LDFLAGS = |LDFLAGS = -L../lib |g" -i */Makefile || \ - die "sed failed" - # Force -j1 - bug 136374. - emake -j1 || die "emake failed" -} - -src_install() { - make install DESTDIR="${D}" || die "make install failed" - - newinitd "${FILESDIR}"/boinc.init boinc - newconfd "${FILESDIR}"/boinc.conf boinc - - make_desktop_entry boinc_gui BOINC boinc Science /var/lib/boinc -} - -pkg_preinst() { - enewgroup boinc - enewuser boinc -1 -1 /var/lib/boinc boinc -} - -pkg_postinst() { - echo - einfo "You need to attach to a project to do anything useful with boinc." - einfo "You can do this by running /etc/init.d/boinc attach" - einfo "BOINC The howto for configuration is located at:" - einfo "http://boinc.berkeley.edu/anonymous_platform.php" - if use server;then - echo - einfo "You have chosen to enable server mode. this ebuild has installed" - einfo "the necessary packages to be a server. You will need to have a" - einfo "project. Contact BOINC directly for further information." - fi - echo - # Add warning about the new password for the client, bug 121896. - einfo "If you need to use the graphical client the password is in " - einfo "/var/lib/boinc/gui_rpc_auth.cfg which is randomly generated " - einfo "by BOINC. You can change this to something more memorable." - echo -} diff --git a/sci-misc/boinc/boinc-5.8.15.ebuild b/sci-misc/boinc/boinc-5.8.15.ebuild deleted file mode 100644 index 63ac8e9ff2af..000000000000 --- a/sci-misc/boinc/boinc-5.8.15.ebuild +++ /dev/null @@ -1,115 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/boinc-5.8.15.ebuild,v 1.6 2008/02/05 15:36:38 hollow Exp $ - -inherit flag-o-matic wxwidgets depend.apache - -DESCRIPTION="The Berkeley Open Infrastructure for Network Computing" -HOMEPAGE="http://boinc.ssl.berkeley.edu/" -SRC_URI="mirror://gentoo//${P}.tar.bz2" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86" -IUSE="server X unicode" - -RDEPEND="sys-libs/zlib - >=net-misc/curl-7.15.5 - >=dev-libs/openssl-0.9.7 - X? ( =x11-libs/wxGTK-2.6* ) - server? ( >=virtual/mysql-4.0 - virtual/php - >=dev-lang/python-2.2.3 - >=dev-python/mysql-python-0.9.2 )" -DEPEND=">=sys-devel/gcc-3.0.4 - >=sys-devel/autoconf-2.58 - >=sys-devel/automake-1.8 - >=dev-util/pkgconfig-0.15 - >=sys-devel/m4-1.4 - X? ( x11-libs/libXmu - x11-libs/libXt - x11-libs/libX11 - x11-proto/xproto - virtual/glut - virtual/glu - media-libs/jpeg ) - server? ( virtual/imap-c-client ) - ${RDEPEND}" - -want_apache server - -src_unpack() { - unpack ${A} - cd "${S}" -} - -src_compile() { - append-flags -O3 -funroll-loops -fforce-addr -ffast-math - - if use X; then - WX_GTK_VER=2.6 - if use unicode; then - need-wxwidgets unicode - else - need-wxwidgets gtk2 - fi - wxconf="--with-wx-config=${WX_CONFIG}" - fi - - # Just run the necessary tools directly - #einfo "Running necessary autotools..." - #aclocal -I m4 || die "aclocal failed." - #autoheader || die "autoheader failed." - #automake || die "automake failed." - #autoconf || die "autoconf failed." - econf \ - --enable-client \ - --disable-static-client \ - --with-ssl \ - ${wxconf} \ - $(use_enable unicode) \ - $(use_enable server) \ - $(use_with X x) || die "econf failed" - # Make it link to the compiled libs, not the installed ones - sed -e "s|LDFLAGS = |LDFLAGS = -L../lib |g" -i */Makefile || \ - die "sed failed" - # Force -j1 - bug 136374. - emake -j1 || die "emake failed" -} - -src_install() { - make install DESTDIR="${D}" || die "make install failed" - mkdir "${D}"/var "${D}"/var/lib "${D}"/var/lib/boinc/ - cp "${S}"/ca-bundle.crt "${D}"/var/lib/boinc - chown boinc:boinc "${D}"/var/lib/boinc - newinitd "${FILESDIR}"/boinc.init boinc - newconfd "${FILESDIR}"/boinc.conf boinc - - make_desktop_entry boinc_gui BOINC boinc Science /var/lib/boinc -} - -pkg_preinst() { - enewgroup boinc - enewuser boinc -1 -1 /var/lib/boinc boinc -} - -pkg_postinst() { - echo - einfo "You need to attach to a project to do anything useful with boinc." - einfo "You can do this by running /etc/init.d/boinc attach" - einfo "BOINC The howto for configuration is located at:" - einfo "http://boinc.berkeley.edu/anonymous_platform.php" - if use server;then - echo - einfo "You have chosen to enable server mode. this ebuild has installed" - einfo "the necessary packages to be a server. You will need to have a" - einfo "project. Contact BOINC directly for further information." - fi - echo - # Add warning about the new password for the client, bug 121896. - einfo "If you need to use the graphical client the password is in " - einfo "/var/lib/boinc/gui_rpc_auth.cfg which is randomly generated " - einfo "by BOINC upon successfully running the gui for the first time." - einfo "You can change this to something more memorable." - echo -} diff --git a/sci-misc/boinc/boinc-6.2.15.ebuild b/sci-misc/boinc/boinc-6.2.15.ebuild deleted file mode 100644 index dc1fafd672cf..000000000000 --- a/sci-misc/boinc/boinc-6.2.15.ebuild +++ /dev/null @@ -1,216 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/boinc-6.2.15.ebuild,v 1.3 2008/11/28 00:06:59 scarabeus Exp $ - -EAPI="1" - -inherit depend.apache flag-o-matic wxwidgets autotools - -MY_PV="${PV//./_}" -DESCRIPTION="The Berkeley Open Infrastructure for Network Computing" -HOMEPAGE="http://boinc.ssl.berkeley.edu/" -SRC_URI="http://dev.gentooexperimental.org/~scarabeus/${P}.tar.bz2 - bindist? ( amd64? ( http://${PN}dl.ssl.berkeley.edu/dl/${P/-/_}_x86_64-pc-linux-gnu.sh ) - x86? ( http://${PN}dl.ssl.berkeley.edu/dl/${P/-/_}_i686-pc-linux-gnu.sh ) - )" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86" -IUSE="X bindist server unicode" -# bindist is only for x86 and amd64 for rest package.use.mask - -RDEPEND="sys-libs/zlib - >=net-misc/curl-7.15.5 - >=dev-libs/openssl-0.9.7 - X? ( =x11-libs/wxGTK-2.8* ) - server? ( - !bindist? ( - >=virtual/mysql-4.0 - virtual/php - >=dev-lang/python-2.2.3 - >=dev-python/mysql-python-0.9.2 - ) - )" -DEPEND="app-misc/ca-certificates - !bindist? ( - >=sys-devel/gcc-3.0.4 - >=sys-devel/autoconf-2.58 - >=sys-devel/automake-1.8 - >=dev-util/pkgconfig-0.15 - >=sys-devel/m4-1.4 - ) - X? ( x11-libs/libXmu - x11-libs/libXt - x11-libs/libX11 - x11-proto/xproto - media-libs/freeglut - virtual/glu - media-libs/jpeg ) - server? ( !bindist? ( virtual/imap-c-client ) ) - ${RDEPEND}" -# subversion is not needed only if user choose binary for amd64 or x86 -want_apache server - -LANGS="ar be bg ca cs da de el en_US es eu fi fr hr hu it ja lt lv nb nl pl pt pt_BR ro ru sk sl sv_SE tr uk zh_CN zh_TW" -for LNG in ${LANGS}; do - IUSE="${IUSE} linguas_${LNG}" -done - -src_unpack() { - local target - - if ! use bindist; then - unpack ${P}.tar.bz2 - cd "${S}" - # replace CXXFLAGS, those added are suggested by upstream - sed -i \ - -e "s:-O3 -fomit-frame-pointer -fforce-addr -ffast-math \$(AM_CPPFLAGS):\$(AM_CPPFLAGS) -O3 -funroll-loops -fforce-addr -ffast-math:" \ - client/Makefile.am || die "sed client/Makefile.am failed" - # silence warnings - epatch "${FILESDIR}"/"${P}"-project-list-size.patch - epatch "${FILESDIR}"/"${P}"-mute-warnings.patch - # do autoreconf - rm "${S}"/m4/libtool.m4 - AT_M4DIR="m4" eautoreconf - else - use server && elog "Server feature is working only for source build, please disable bindist if you really intend to use server." - use x86 && target="i686" || target="x86_64" - cp "${DISTDIR}"/${P/-/_}_${target}-pc-linux-gnu.sh "${WORKDIR}" - cd "${WORKDIR}" - sh ${P/-/_}_${target}-pc-linux-gnu.sh - fi - # patch up certificates - mkdir "${S}"/curl/ - ln -s /etc/ssl/certs/ca-certificates.crt "${S}"/curl/ca-bundle.crt - sed -i \ - -e "s:::g" \ - "${S}"/Makefile -} - -src_compile() { - if ! use bindist; then - if use X; then - WX_GTK_VER=2.8 - use unicode && need-wxwidgets unicode || need-wxwidgets gtk2 - wxconf="--with-wx-config=${WX_CONFIG}" - fi - - econf \ - --enable-client \ - --with-ssl \ - ${wxconf} \ - $(use_enable unicode) \ - $(use_enable server) \ - $(use_with X x) || die "econf failed" - - # Make it link to the compiled libs, not the installed ones - # remove precompiled binaries from svn - sed -i \ - -e "s:LDFLAGS = :LDFLAGS = -L../lib :g" \ - */Makefile || die "sed failed" - emake -j1 || die "emake failed" - fi -} - -src_install() { - dodir /var/lib/${PN} - newinitd "${FILESDIR}"/${PN}.init ${PN} - newconfd "${FILESDIR}"/${PN}.conf ${PN} - if ! use bindist; then - make install DESTDIR="${D}" || die "make install failed" - # icon - newicon "${S}"/sea/${PN}mgr.48x48.png ${PN}.png - # wrapper to allow gui to load gui_rpc_auth.cfg because ${PN} devs assume curdir to be datadir for ${PN}_gui - mv "${D}"/usr/bin/${PN}_gui "${D}"/usr/bin/${PN}mgr - echo "cd \"/var/lib/${PN}\" && exec /usr/bin/${PN}mgr \$@" > "${D}"/usr/bin/${PN}_gui - chmod 755 "${D}"/usr/bin/${PN}_gui - # desktop - if use X; then - make_desktop_entry ${PN}_gui ${PN} ${PN} "Education;Science" /var/lib/${PN} - fi - # required headers by seti@home - insopts -m0644 - insinto /usr/include/${PN} - doins "${S}"/api/{reduce.h,graphics_api.h,graphics_data.h,${PN}_gl.h} - # symlink locale so it actualy work for source dist. - insinto /usr/share/locale/ - cd "${S}"/locale/client - for LNG in ${LINGUAS}; do - doins -r ${LNG} - done - dosym /usr/share/locale /var/lib/${PN}/locale - cd "${S}" - else - local S_BIN="${WORKDIR}"/BOINC - cd "${S_BIN}" - # fix ${PN}.conf file for binary package - sed -i -e "s:/usr/bin/${PN}_client:/opt/${PN}/${PN}:g" "${D}"/etc/conf.d/${PN} - if use X; then - # icon - newicon "${S_BIN}"/${PN}mgr.48x48.png ${PN}.png - # desktop - make_desktop_entry /opt/${PN}/run_manager "${PN}" ${PN} "Education;Science" /var/lib/${PN} - fi - # use correct path in scripts - sed -i \ - -e "s:${S_BIN}:/var/lib/${PN}:g" \ - -e "s:./${PN}:/opt/${PN}/${PN}:g" \ - run_client || die "sed run_client failed" - sed -i \ - -e "s:${S_BIN}:/var/lib/${PN}:g" \ - -e "s:./${PN}mgr:/opt/${PN}/${PN}mgr:g" \ - run_manager || die "sed run_manager failed" - # install binaries - exeopts -m0755 - exeinto /opt/${PN} - - doexe "${S_BIN}"//{${PN},${PN}_cmd,${PN}cmd,${PN}mgr,run_client,run_manager} - fowners 0:${PN} /opt/${PN}/{${PN},${PN}_cmd,${PN}cmd,${PN}mgr,run_client,run_manager} - # locale - mkdir -p "${D}"/opt/${PN}/locale - insopts -m0644 - insinto /opt/${PN}/ - cd "${S_BIN}"/locale/ - for LNG in ${LINGUAS}; do - doins -r "${LNG}" - done - dosym /opt/${PN}/locale /var/lib/${PN}/locale - cd "${S}" - fi - dosym /etc/ssl/certs/ca-certificates.crt /var/lib/${PN}/ca-bundle.crt - insopts -m0640 - insinto /var/lib/${PN} - doins "${FILESDIR}"/gui_rpc_auth.cfg - fowners ${PN}:${PN} /var/lib/${PN}/gui_rpc_auth.cfg - fowners ${PN}:${PN} /var/lib/${PN}/ -} - -pkg_preinst() { - enewgroup ${PN} - enewuser ${PN} -1 -1 /var/lib/${PN} ${PN} -} - -pkg_postinst() { - echo - if use bindist; then - elog "You are using the binary distributed version." - elog "The manager can be found at /opt/${PN}/run_manager" - fi - elog "You need to attach to a project to do anything useful with ${PN}." - elog "You can do this by running /etc/init.d/${PN} attach" - elog "${PN} The howto for configuration is located at:" - elog "http://${PN}.berkeley.edu/anonymous_platform.php" - if use server && ! use bindist ; then - echo - elog "You have chosen to enable server mode. this ebuild has installed" - elog "the necessary packages to be a server. You will need to have a" - elog "project. Contact ${PN} directly for further information." - fi - echo - # Add warning about the new password for the client, bug 121896. - elog "If you need to use the graphical client the password is in" - elog "/var/lib/${PN}/gui_rpc_auth.cfg which is for first run empty." - elog "You should change this to something more secure." - echo -} diff --git a/sci-misc/boinc/boinc-6.4.5.ebuild b/sci-misc/boinc/boinc-6.4.5.ebuild new file mode 100644 index 000000000000..c2d4ef07c4b9 --- /dev/null +++ b/sci-misc/boinc/boinc-6.4.5.ebuild @@ -0,0 +1,150 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/boinc-6.4.5.ebuild,v 1.1 2009/01/31 15:19:36 scarabeus Exp $ + +# +# Don't forget to keep things in sync with binary boinc package! +# + +EAPI="2" + +inherit flag-o-matic depend.apache eutils wxwidgets + +DESCRIPTION="The Berkeley Open Infrastructure for Network Computing" +HOMEPAGE="http://boinc.ssl.berkeley.edu/" +SRC_URI="http://dev.gentooexperimental.org/~scarabeus/${P}.tar.bz2" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86" +IUSE="X cuda server" + +RDEPEND=" + !sci-misc/boinc + app-misc/ca-certificates + dev-libs/openssl + net-misc/curl + sys-apps/util-linux + sys-libs/zlib + cuda? ( + >=dev-util/nvidia-cuda-toolkit-2.1 + >=x11-drivers/nvidia-drivers-180.22 + ) + server? ( + >=virtual/mysql-5.0 + dev-python/mysql-python + ) +" +DEPEND="${RDEPEND} + sys-devel/gettext + server? ( virtual/imap-c-client ) + X? ( + media-libs/freeglut + media-libs/jpeg + x11-libs/wxGTK:2.8[X,opengl] + ) +" + +src_prepare() { + # use system ssl certificates + mkdir "${S}"/curl + cp /etc/ssl/certs/ca-certificates.crt "${S}"/curl/ca-bundle.crt + # copy icons to correct location + cp "${S}"/sea/*.png "${S}"/clientgui/res/ + # fix stripping + ## TODO +} + +src_configure() { + local wxconf="" + local config="" + + # define preferable CFLAGS (recommended by upstream) + append-flags -O3 -funroll-loops -fforce-addr -ffast-math + + # look for wxGTK + if use X; then + WX_GTK_VER="2.8" + need-wxwidgets unicode + wxconf="${wxconf} --with-wx-config=${WX_CONFIG}" + else + wxconf="${wxconf} --without-wxdir" + fi + + # nonstandard enable + use server || config="--disable-server" + + # configure + econf \ + --disable-dependency-tracking \ + --with-gnu-ld \ + --enable-unicode \ + --enable-client \ + --with-ssl \ + ${wxconf} \ + ${config} \ + $(use_with X x) + + # Fix LDFLAGS. Link to compiled stuff and not to installed one + sed -i \ + -e "s|LDFLAGS = |LDFLAGS = -L../lib |g" \ + */Makefile || die "sed failed" +} + +src_compile() { + # disable paralel build. + emake -j1 || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + + dodir /var/lib/${PN}/ + keepdir /var/lib/${PN}/ + + if use X; then + newicon "${S}"/sea/${PN}mgr.48x48.png ${PN}.png + make_desktop_entry /usr/bin/boinc_gui "${PN}" ${PN} "Education;Science" /var/lib/${PN} + fi + + # cleanup cruft + rm "${D}"/usr/bin/ca-bundle.crt + rm -rf "${D}"/etc/ + + newinitd "${FILESDIR}"/${PN}.init ${PN} + newconfd "${FILESDIR}"/${PN}.conf ${PN} +} + +pkg_setup() { + enewgroup ${PN} + if use cuda; then + enewuser ${PN} -1 -1 /var/lib/${PN} "${PN},video" + else + enewuser ${PN} -1 -1 /var/lib/${PN} "${PN}" + fi +} + +pkg_postinst() { + echo + elog "You are using the source compiled version." + elog "The manager can be found at /usr/bin/${PN}_gui" + elog + elog "You need to attach to a project to do anything useful with ${PN}." + elog "You can do this by running /etc/init.d/${PN} attach" + elog "The howto for configuration is located at:" + elog "http://${PN}.berkeley.edu/anonymous_platform.php" + elog + # Add warning about the new password for the client, bug 121896. + elog "If you need to use the graphical client the password is in:" + elog "/var/lib/${PN}/gui_rpc_auth.cfg" + elog "Where /var/lib/ is default RUNTIMEDIR, that can be changed in:" + elog "/etc/conf.d/${PN}" + elog "You should change this to something more memorable (can be even blank)." + elog + elog "Remember to launch init script before using manager. Or changing the password." + if use cuda; then + elog "To be able to use CUDA you should add boinc user to video group." + elog "To do so run as root:" + elog "gpasswd -a boinc video" + fi +} diff --git a/sci-misc/boinc/files/08_all_Makefile.patch b/sci-misc/boinc/files/08_all_Makefile.patch deleted file mode 100644 index 4968ed7bbaee..000000000000 --- a/sci-misc/boinc/files/08_all_Makefile.patch +++ /dev/null @@ -1,25 +0,0 @@ -# 08_all-Makefile.patches by Marcus D. Hanwell <cryos@gentoo.org> -# -# Link to ../lib with a higher precedence than /usr/lib - allows upgrades ---- client/Makefile.in 2005-12-05 01:28:26.000000000 +0000 -+++ client/Makefile.in 2005-12-11 21:00:07.000000000 +0000 -@@ -336,7 +336,7 @@ - - AM_CFLAGS = $(AM_CPPFLAGS) - AM_CXXFLAGS = $(AM_CPPFLAGS) --AM_LDFLAGS = -+AM_LDFLAGS = -L../lib - - # dependencies to make sure libs gets compiled before - # programs linking to them: ---- clientgui/Makefile.in 2005-12-11 21:07:55.000000000 +0000 -+++ clientgui/Makefile.in 2005-12-11 21:07:29.000000000 +0000 -@@ -354,7 +354,7 @@ - - AM_CFLAGS = $(AM_CPPFLAGS) - AM_CXXFLAGS = $(AM_CPPFLAGS) --AM_LDFLAGS = -+AM_LDFLAGS = -L../lib - - # dependencies to make sure libs gets compiled before - # programs linking to them: diff --git a/sci-misc/boinc/files/boinc-4.72.20050813-gcc4-fix.patch b/sci-misc/boinc/files/boinc-4.72.20050813-gcc4-fix.patch deleted file mode 100644 index a0624b3e05a2..000000000000 --- a/sci-misc/boinc/files/boinc-4.72.20050813-gcc4-fix.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- boinc_public/lib/shmem.C.orig 2005-11-11 02:46:07.000000000 +0100 -+++ boinc_public/lib/shmem.C 2005-11-11 02:46:20.000000000 +0100 -@@ -128,7 +128,7 @@ - return ERR_SHMGET; - } - p = shmat(id, 0, 0); -- if ((int)p == -1) { -+ if ((long)p == -1) { - return ERR_SHMAT; - } - *pp = p; diff --git a/sci-misc/boinc/files/boinc-5.10.45-gcc4.3.patch b/sci-misc/boinc/files/boinc-5.10.45-gcc4.3.patch deleted file mode 100644 index 778d016419e3..000000000000 --- a/sci-misc/boinc/files/boinc-5.10.45-gcc4.3.patch +++ /dev/null @@ -1,55 +0,0 @@ -diff -Naur boinc-5.10.45/client/client_msgs.C boinc-5.10.45.new/client/client_msgs.C ---- boinc-5.10.45/client/client_msgs.C 2008-04-15 13:20:37.000000000 -0400 -+++ boinc-5.10.45.new/client/client_msgs.C 2008-04-17 14:26:48.000000000 -0400 -@@ -27,6 +27,7 @@ - - using std::deque; - -+#include <cstring> - #include "log_flags.h" - #include "client_types.h" - #include "client_msgs.h" -diff -Naur boinc-5.10.45/client/cs_account.C boinc-5.10.45.new/client/cs_account.C ---- boinc-5.10.45/client/cs_account.C 2008-04-15 13:20:36.000000000 -0400 -+++ boinc-5.10.45.new/client/cs_account.C 2008-04-17 14:28:19.000000000 -0400 -@@ -30,6 +30,7 @@ - #endif - #endif - -+#include <algorithm> - #include "filesys.h" - #include "parse.h" - #include "str_util.h" -diff -Naur boinc-5.10.45/lib/crypt.C boinc-5.10.45.new/lib/crypt.C ---- boinc-5.10.45/lib/crypt.C 2008-04-15 13:19:19.000000000 -0400 -+++ boinc-5.10.45.new/lib/crypt.C 2008-04-17 14:24:26.000000000 -0400 -@@ -28,6 +28,7 @@ - #include <cstdlib> - #endif - -+#include <cstring> - #include "md5_file.h" - #include "error_numbers.h" - -diff -Naur boinc-5.10.45/lib/parse.h boinc-5.10.45.new/lib/parse.h ---- boinc-5.10.45/lib/parse.h 2008-04-15 13:19:19.000000000 -0400 -+++ boinc-5.10.45.new/lib/parse.h 2008-04-17 14:23:30.000000000 -0400 -@@ -27,6 +27,7 @@ - #include <cstdlib> - #include <string> - #include <math.h> -+#include <cstring> - #ifdef solaris - #include <ieeefp.h> - #endif -diff -Naur boinc-5.10.45/lib/procinfo_unix.C boinc-5.10.45.new/lib/procinfo_unix.C ---- boinc-5.10.45/lib/procinfo_unix.C 2008-04-15 13:19:19.000000000 -0400 -+++ boinc-5.10.45.new/lib/procinfo_unix.C 2008-04-17 14:25:30.000000000 -0400 -@@ -29,6 +29,7 @@ - - #include <stdio.h> - -+#include <cstring> - #include <ctype.h> - #include <sys/types.h> - #include <dirent.h> diff --git a/sci-misc/boinc/files/boinc-5.2.14-gcc-4.1.patch b/sci-misc/boinc/files/boinc-5.2.14-gcc-4.1.patch deleted file mode 100644 index 6f350aed7801..000000000000 --- a/sci-misc/boinc/files/boinc-5.2.14-gcc-4.1.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff -ur boinc-5.2.14-orig/clientgui/BOINCTaskBar.h boinc-5.2.14/clientgui/BOINCTaskBar.h ---- boinc-5.2.14-orig/clientgui/BOINCTaskBar.h 2006-04-13 14:09:32.000000000 -0400 -+++ boinc-5.2.14/clientgui/BOINCTaskBar.h 2006-04-13 14:10:03.000000000 -0400 -@@ -76,7 +76,7 @@ - #endif - - #ifndef __WXMSW__ -- inline bool CTaskBarIcon::IsBalloonsSupported() { -+ inline bool IsBalloonsSupported() { - return false; - } - #endif - diff --git a/sci-misc/boinc/files/boinc-6.2.15-mute-warnings.patch b/sci-misc/boinc/files/boinc-6.2.15-mute-warnings.patch deleted file mode 100644 index a2a9ba32f9e9..000000000000 --- a/sci-misc/boinc/files/boinc-6.2.15-mute-warnings.patch +++ /dev/null @@ -1,47 +0,0 @@ ---- lib/parse.h.orig 2008-09-15 16:37:16.000000000 -0700 -+++ lib/parse.h 2008-09-15 16:44:37.000000000 -0700 -@@ -23,9 +23,10 @@ - #ifdef _WIN32 - #include "boinc_win.h" - #else --#include "config.h" -+//#include "config.h" - #include <stdio.h> - #include <stdlib.h> -+#include <cstring> - #ifdef HAVE_STRING_H - #include <string.h> - #endif ---- api/boinc_gl.h.orig 2008-09-15 16:42:22.000000000 -0700 -+++ api/boinc_gl.h 2008-09-15 16:42:42.000000000 -0700 -@@ -37,7 +37,7 @@ - - - #else // !_WIN32, !__APPLE_CC__ --#include "config.h" -+//#include "config.h" - - # if defined(HAVE_GL_H) - # include <gl.h> ---- ./api/texfont.C.orig 2008-09-15 18:28:54.000000000 -0700 -+++ ./api/texfont.C 2008-09-15 18:31:56.000000000 -0700 -@@ -7,6 +7,8 @@ - #pragma warning (disable:4244) // disable bogus conversion warnings - #endif - -+#include "config.h" -+ - #include <assert.h> - #include <ctype.h> - #include <stdlib.h> ---- api/txf_util.C.orig 2008-09-15 18:32:24.000000000 -0700 -+++ api/txf_util.C 2008-09-15 18:32:40.000000000 -0700 -@@ -24,6 +24,8 @@ - #include "boinc_win.h" - #endif - -+#include "config.h" -+ - #include <cstring> - #include "filesys.h" - #include "boinc_api.h" diff --git a/sci-misc/boinc/files/boinc-6.2.15-project-list-size.patch b/sci-misc/boinc/files/boinc-6.2.15-project-list-size.patch deleted file mode 100644 index 2f28f3bc018b..000000000000 --- a/sci-misc/boinc/files/boinc-6.2.15-project-list-size.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- clientgui/ProjectInfoPage.cpp.orig 2008-09-16 17:17:02.000000000 -0700 -+++ clientgui/ProjectInfoPage.cpp 2008-09-16 17:57:51.000000000 -0700 -@@ -132,6 +132,7 @@ - m_pProjectListCtrl = new CProjectListCtrl; - m_pProjectListCtrl->Create( itemWizardPage23 ); - itemFlexGridSizer3->Add(m_pProjectListCtrl, 0, wxGROW|wxRIGHT, 10); -+ itemFlexGridSizer3->SetMinSize(-1,200); - - wxFlexGridSizer* itemFlexGridSizer11 = new wxFlexGridSizer(2, 1, 0, 0); - itemFlexGridSizer11->AddGrowableRow(0); diff --git a/sci-misc/boinc/files/boinc.conf b/sci-misc/boinc/files/boinc.conf index 827025b7da20..223b160b4b4c 100644 --- a/sci-misc/boinc/files/boinc.conf +++ b/sci-misc/boinc/files/boinc.conf @@ -18,3 +18,11 @@ ALLOW_REMOTE_RPC="no" # nice level NICELEVEL="19" + +# scheduling parameters, arguments to chrt(1) +SCHED_PARAM="--batch 0" + +# Relative CPU allocation for boinc user, default is 1024, +# requires CONFIG_FAIR_GROUP_SCHED and CONFIG_USER_SCHED, +# see /usr/src/linux/Documentation/scheduler/sched-design-CFS.txt +CPU_SHARE="128" diff --git a/sci-misc/boinc/files/boinc.init b/sci-misc/boinc/files/boinc.init index 8a2543faae3b..55ebfd4398ff 100644 --- a/sci-misc/boinc/files/boinc.init +++ b/sci-misc/boinc/files/boinc.init @@ -3,49 +3,85 @@ opts="${opts} attach" depend() { - use dns - need net + # we can use dns and net, but we can also in most cases live without them + use dns net } -start() { - ebegin "Starting BOINC" - if [ ! -d ${RUNTIMEDIR} ]; then - einfo "Directory ${RUNTIMEDIR} not existing, creating now." - /bin/mkdir ${RUNTIMEDIR} - /bin/chown ${USER}:${GROUP} ${RUNTIMEDIR} - if [ ! -d ${RUNTIMEDIR} ]; then - eerror "Directory ${RUNTIMEDIR} could not be created!" +create_work_directory() { + if [[ ! -d $RUNTIMEDIR ]]; then + einfo "Directory $RUNTIMEDIR not existing, creating now." + mkdir $RUNTIMEDIR + chown ${USER}:${GROUP} $RUNTIMEDIR + if [[ ! -d $RUNTIMEDIR ]]; then + eeror "Directory $RUNTIMEDIR could not be created!" return 1 fi + ln -s /etc/ssl/certs/ca-certificates.crt $RUNTIMEDIR/ca-bundle.crt fi +} - cd ${RUNTIMEDIR} +generate_logs() { + if [[ ! -f $LOGFILE ]]; then + einfo "No $LOGFILE around. Creating new..." + einfo "For good log rotation is great tool app-admin/logrotate" + touch $LOGFILE + chown ${USER}:${GROUP} $LOGFILE + fi +} - if [ ! -f lockfile ]; then - einfo "File ${RUNTIMEDIR}/lockfile does not exist, assuming first run." - einfo "You need to setup an account on the BOINC project homepage beforehand! Go to http://boinc.berkeley.edu/ and locate your project." - einfo "Then either run /etc/init.d/boinc attach or connect with a gui client and attach to a project with that." +cuda_check() { + if [[ -f /opt/cuda/lib/libcudart.so ]]; then + # symlink wont harm :] + ln -snf /opt/cuda/lib/libcudart.so $RUNTIMEDIR/libcudart.so fi +} - # if the log file doesn't exist, create it with root privs, then change ownership to boinc - if [ ! -f ${LOGFILE} ]; then - touch ${LOGFILE} - chown ${USER}:${GROUP} ${LOGFILE} - else - mv ${LOGFILE} ${LOGFILE}.old - touch ${LOGFILE} - chown ${USER}:${GROUP} ${LOGFILE} +start() { + ebegin "Starting BOINC" + + create_work_directory + cuda_check + + cd $RUNTIMEDIR + + if [[ ! -f lockfile ]]; then + einfo "File $RUNTIMEDIR/lockfile does not exist, assuming first run." + einfo "You need to setup an account on the BOINC project homepage beforehand!" + einfo "Go to http://boinc.berkeley.edu/ and locate your project." + einfo "Then either run /etc/init.d/boinc attach or connect with a gui client" + einfo "and attach to a project with that." + echo + ewarn "Note that for attaching to some project you need your network up and running." + ewarn "network is needed only for jobs fetching afterwards" fi - if [ ${ALLOW_REMOTE_RPC} = "yes" ]; then + generate_logs + + if [[ ${ALLOW_REMOTE_RPC} = "yes" ]]; then ARGS="${ARGS} -allow_remote_gui_rpc" fi + + # sys-apps/util-linux + CHRT="/usr/bin/chrt ${SCHED_PARAM}" - setsid start-stop-daemon --quiet --start --chdir ${RUNTIMEDIR} \ + ${CHRT} start-stop-daemon \ + --quiet --start --chdir ${RUNTIMEDIR} \ --exec ${BOINCBIN} --chuid ${USER}:${GROUP} \ - --nicelevel ${NICELEVEL} -- ${ARGS} > ${LOGFILE} 2>&1 & + --background --stdout ${LOGFILE} --stderr ${LOGFILE} \ + --nicelevel ${NICELEVEL} -- ${ARGS} - eend $? + RESULT=$? + + if [ "${CPU_SHARE}" -a -d /sys/kernel/uids ]; then + BUID=`id -u ${USER}` + # It might take a moment for start-stop-daemon to chuid + [[ -d /sys/kernel/uids/${BUID} ]] || sleep 5 # 5 was working always here + if [[ -w /sys/kernel/uids/${BUID}/cpu_share ]]; then + echo ${CPU_SHARE} > /sys/kernel/uids/${BUID}/cpu_share + fi + fi + + eend $RESULT } attach() { @@ -55,26 +91,27 @@ attach() { read key RC_QUIET_STDOUT="yes" svc_status - if [ $? == 1 ]; then + if [[ $? = 1 ]]; then svc_start fi ebegin "Attaching to project" - # boinc cmd does not return 1 when it fails currently - boinc_cmd --project_attach ${url} ${key} &> /dev/null + # we have to work in runtime directory + cd $RUNTIMEDIR + # boinc does not return 1 when it fails currently + $BOINCBIN --attach_project $url $key &> /dev/null eend $? sleep 10 - tail ${LOGFILE} + tail $LOGFILE } stop() { ebegin "Stopping BOINC" - start-stop-daemon --stop --quiet --exec ${BOINCBIN} + start-stop-daemon --stop --retry 3 --quiet --exec $BOINCBIN eend $? } restart() { svc_stop - sleep 6 svc_start } diff --git a/sci-misc/boinc/files/gui_rpc_auth.cfg b/sci-misc/boinc/files/gui_rpc_auth.cfg deleted file mode 100644 index e69de29bb2d1..000000000000 --- a/sci-misc/boinc/files/gui_rpc_auth.cfg +++ /dev/null diff --git a/sci-misc/boinc/metadata.xml b/sci-misc/boinc/metadata.xml index dd6bddd3cce9..1fc5c3ddbe65 100644 --- a/sci-misc/boinc/metadata.xml +++ b/sci-misc/boinc/metadata.xml @@ -11,5 +11,10 @@ </longdescription> <use> <flag name='server'>Enable compilation of server</flag> + <flag name="cuda"> + Use nvidia cuda toolkit for speeding up computations. + NOTE: works only for subset of nvidia graphic cards so make sure your card + is supported before opening bug about it. + </flag> </use> </pkgmetadata> |