diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2009-01-31 15:22:38 +0100 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2009-01-31 15:22:38 +0100 |
commit | a441a5896bcb549140d4beffda5062a544dc8610 (patch) | |
tree | 370c547ab9c4f754b98eec1dca726b7d3e0f3554 /sci-misc | |
parent | One more CUDA fix (diff) | |
download | sci-a441a5896bcb549140d4beffda5062a544dc8610.tar.gz sci-a441a5896bcb549140d4beffda5062a544dc8610.tar.bz2 sci-a441a5896bcb549140d4beffda5062a544dc8610.zip |
move boinc to the tree.
Diffstat (limited to 'sci-misc')
-rw-r--r-- | sci-misc/boinc/ChangeLog | 10 | ||||
-rw-r--r-- | sci-misc/boinc/Manifest | 6 | ||||
-rw-r--r-- | sci-misc/boinc/boinc-6.4.5.ebuild | 150 | ||||
-rw-r--r-- | sci-misc/boinc/files/boinc.conf | 28 | ||||
-rw-r--r-- | sci-misc/boinc/files/boinc.init | 117 | ||||
-rw-r--r-- | sci-misc/boinc/metadata.xml | 16 |
6 files changed, 0 insertions, 327 deletions
diff --git a/sci-misc/boinc/ChangeLog b/sci-misc/boinc/ChangeLog deleted file mode 100644 index 67e5dc432..000000000 --- a/sci-misc/boinc/ChangeLog +++ /dev/null @@ -1,10 +0,0 @@ -# ChangeLog for sci-misc/boinc -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: $ - -*boinc-6.4.5 (24 Jan 2009) - - 24 Jan 2009; Tomas Chvatal <scarabeus@gentoo.org> +files/boinc.conf, - +files/boinc.init, +metadata.xml, +boinc-6.4.5.ebuild: - Initial commit - diff --git a/sci-misc/boinc/Manifest b/sci-misc/boinc/Manifest deleted file mode 100644 index 228f2b4f8..000000000 --- a/sci-misc/boinc/Manifest +++ /dev/null @@ -1,6 +0,0 @@ -AUX boinc.conf 711 RMD160 b6bb25b9d10cbefd3de5d653e701e056e2de4587 SHA1 570929cb4ed50d4fc4408624c4d0d330e208609c SHA256 032f07145ee230f069ffdc93befe90c047fba4314aedfc8024bdb44c06798e9e -AUX boinc.init 2814 RMD160 54d549964de9aca444851b60f69b76acd1e3d329 SHA1 8876f70b534c508436823c6fff542dcf1ede22a4 SHA256 4e75b417ed875c82d6800781152b9f15faad45c64d1394a48433a8aaec5818c0 -DIST boinc-6.4.5.tar.bz2 7641082 RMD160 5d2cb9e645aec52c91fcf791eac8146a202594ca SHA1 6038e13c828b411b18a0f255454c3210d3581deb SHA256 f2ec1a11cc455b3f445470d5261ab37d76ffde53e98ecf3dbc6463793de58363 -EBUILD boinc-6.4.5.ebuild 3597 RMD160 fc215ac8904265d80394ff9a808bba6a9d8fdc25 SHA1 2e8dcb2a9be97f4222ff08edb49e143f80787ca5 SHA256 3f4a5e002bc0d065a048dd144d9c56d6dd197eca9a7eee06558397f16888bfb8 -MISC ChangeLog 289 RMD160 a5b083d7c09f9733d6287c799966f443a0fd4f7b SHA1 0f66f6c05b7dd6fdae3a01d77b7556fa682d90d9 SHA256 1c09db09d8fab8f415d9a5a298d7a822bc2b0bd1549c3c77af8c04d89b0f60aa -MISC metadata.xml 471 RMD160 891334e296d850fe56e50b9544c0a7b733740a75 SHA1 adeee8a2ad636bfb0a4306f9abf6a4236aa28560 SHA256 38bca554773db57e79011dea226228dfdc5ea90a3047693b5d47b4bf924af9ea diff --git a/sci-misc/boinc/boinc-6.4.5.ebuild b/sci-misc/boinc/boinc-6.4.5.ebuild deleted file mode 100644 index 9f44b32ff..000000000 --- a/sci-misc/boinc/boinc-6.4.5.ebuild +++ /dev/null @@ -1,150 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -# -# 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/boinc.conf b/sci-misc/boinc/files/boinc.conf deleted file mode 100644 index 223b160b4..000000000 --- a/sci-misc/boinc/files/boinc.conf +++ /dev/null @@ -1,28 +0,0 @@ -# Config file for /etc/init.d/boinc - -# Owner of BOINC process (must be existing) -USER="boinc" -GROUP="boinc" - -# Directory with runtime data: Work units, project binaries, user info etc. -RUNTIMEDIR="/var/lib/boinc" - -# Location of the boinc command line binary -BOINCBIN="/usr/bin/boinc_client" - -# Logfile (/dev/null for nowhere) -LOGFILE="/var/log/boinc.log" - -# Allow remote gui RPC yes or no -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 deleted file mode 100644 index 55ebfd439..000000000 --- a/sci-misc/boinc/files/boinc.init +++ /dev/null @@ -1,117 +0,0 @@ -#!/sbin/runscript - -opts="${opts} attach" - -depend() { - # we can use dns and net, but we can also in most cases live without them - use dns net -} - -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 -} - -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 -} - -cuda_check() { - if [[ -f /opt/cuda/lib/libcudart.so ]]; then - # symlink wont harm :] - ln -snf /opt/cuda/lib/libcudart.so $RUNTIMEDIR/libcudart.so - fi -} - -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 - - 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}" - - ${CHRT} start-stop-daemon \ - --quiet --start --chdir ${RUNTIMEDIR} \ - --exec ${BOINCBIN} --chuid ${USER}:${GROUP} \ - --background --stdout ${LOGFILE} --stderr ${LOGFILE} \ - --nicelevel ${NICELEVEL} -- ${ARGS} - - 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() { - printf " Enter the Project URL: " - read url - printf " Enter your Account Key: " - read key - - RC_QUIET_STDOUT="yes" svc_status - if [[ $? = 1 ]]; then - svc_start - fi - ebegin "Attaching to project" - # 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 -} - -stop() { - ebegin "Stopping BOINC" - start-stop-daemon --stop --retry 3 --quiet --exec $BOINCBIN - eend $? -} - -restart() { - svc_stop - svc_start -} diff --git a/sci-misc/boinc/metadata.xml b/sci-misc/boinc/metadata.xml deleted file mode 100644 index 031688039..000000000 --- a/sci-misc/boinc/metadata.xml +++ /dev/null @@ -1,16 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<herd>sci</herd> -<maintainer> - <email>scarabeus@gentoo.org</email> - <name>Tomas Chvatal</name> -</maintainer> -<use> - <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> |