[arch-commits] Commit in boinc/repos (24 files)

Felix Yan fyan at nymeria.archlinux.org
Thu Jan 24 16:47:46 UTC 2013


    Date: Thursday, January 24, 2013 @ 17:47:45
  Author: fyan
Revision: 82835

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  boinc/repos/community-testing-i686/PKGBUILD
    (from rev 82834, boinc/trunk/PKGBUILD)
  boinc/repos/community-testing-i686/boinc-AM_CONDITIONAL.patch
    (from rev 82834, boinc/trunk/boinc-AM_CONDITIONAL.patch)
  boinc/repos/community-testing-i686/boinc.bash
    (from rev 82834, boinc/trunk/boinc.bash)
  boinc/repos/community-testing-i686/boinc.desktop
    (from rev 82834, boinc/trunk/boinc.desktop)
  boinc/repos/community-testing-i686/boinc.install
    (from rev 82834, boinc/trunk/boinc.install)
  boinc/repos/community-testing-i686/boinc.rc
    (from rev 82834, boinc/trunk/boinc.rc)
  boinc/repos/community-testing-i686/boinc.service
    (from rev 82834, boinc/trunk/boinc.service)
  boinc/repos/community-testing-x86_64/PKGBUILD
    (from rev 82834, boinc/trunk/PKGBUILD)
  boinc/repos/community-testing-x86_64/boinc-AM_CONDITIONAL.patch
    (from rev 82834, boinc/trunk/boinc-AM_CONDITIONAL.patch)
  boinc/repos/community-testing-x86_64/boinc.bash
    (from rev 82834, boinc/trunk/boinc.bash)
  boinc/repos/community-testing-x86_64/boinc.desktop
    (from rev 82834, boinc/trunk/boinc.desktop)
  boinc/repos/community-testing-x86_64/boinc.install
    (from rev 82834, boinc/trunk/boinc.install)
  boinc/repos/community-testing-x86_64/boinc.rc
    (from rev 82834, boinc/trunk/boinc.rc)
  boinc/repos/community-testing-x86_64/boinc.service
    (from rev 82834, boinc/trunk/boinc.service)
Deleted:
  boinc/repos/community-testing-i686/boinc.bash
  boinc/repos/community-testing-i686/boinc.desktop
  boinc/repos/community-testing-i686/boinc.install
  boinc/repos/community-testing-i686/boinc.rc
  boinc/repos/community-testing-i686/boinc.service
  boinc/repos/community-testing-x86_64/boinc.bash
  boinc/repos/community-testing-x86_64/boinc.desktop
  boinc/repos/community-testing-x86_64/boinc.install
  boinc/repos/community-testing-x86_64/boinc.rc
  boinc/repos/community-testing-x86_64/boinc.service

-----------------------------------------------------+
 community-testing-i686/PKGBUILD                     |  142 ++++++++++++
 community-testing-i686/boinc-AM_CONDITIONAL.patch   |   19 +
 community-testing-i686/boinc.bash                   |  198 +++++++++---------
 community-testing-i686/boinc.desktop                |   32 +-
 community-testing-i686/boinc.install                |   46 ++--
 community-testing-i686/boinc.rc                     |  104 ++++-----
 community-testing-i686/boinc.service                |   20 -
 community-testing-x86_64/PKGBUILD                   |  142 ++++++++++++
 community-testing-x86_64/boinc-AM_CONDITIONAL.patch |   19 +
 community-testing-x86_64/boinc.bash                 |  198 +++++++++---------
 community-testing-x86_64/boinc.desktop              |   32 +-
 community-testing-x86_64/boinc.install              |   46 ++--
 community-testing-x86_64/boinc.rc                   |  104 ++++-----
 community-testing-x86_64/boinc.service              |   20 -
 14 files changed, 722 insertions(+), 400 deletions(-)

Copied: boinc/repos/community-testing-i686/PKGBUILD (from rev 82834, boinc/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD	                        (rev 0)
+++ community-testing-i686/PKGBUILD	2013-01-24 16:47:45 UTC (rev 82835)
@@ -0,0 +1,142 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Contributor: Jaroslav Lichtblau <dragonlord at aur.archlinux.org>
+# Contributor: Michal Krenek <mikos at sg1.cz>
+
+pkgbase=boinc
+pkgname=(boinc boinc-nox)
+pkgver=7.0.45
+_tag=client_release_$pkgver
+pkgrel=1
+arch=('i686' 'x86_64')
+url="http://boinc.berkeley.edu/"
+license=('LGPL')
+makedepends=('libxslt' 'perl-xml-sax' 'git' 'libxss' 'libnotify' 'wxgtk' 'sqlite3' 'curl')
+options=('!libtool')
+install=$pkgbase.install
+source=(boinc.rc
+	boinc.bash
+	boinc.desktop
+	boinc.service
+	boinc-AM_CONDITIONAL.patch)
+
+__gitroot=git://boinc.berkeley.edu/boinc.git
+__gitname=boinc
+
+build() {
+  cd "${srcdir}"
+  msg "Connecting to GIT server...."
+  if [ -d $__gitname ] ; then
+    cd $__gitname && git pull origin
+    msg "The local files are updated."
+  else
+    git clone $__gitroot
+  fi
+
+  msg "GIT checkout done or server timeout"
+  msg "Starting make..."
+  
+  # Build boinc
+  rm -rf "$srcdir/$__gitname-build"
+  git clone "$srcdir/$__gitname" "$srcdir/$__gitname-build"
+  cd "$srcdir/$__gitname-build"
+  git checkout "$_tag"
+
+  patch -Np1 -i "${srcdir}/boinc-AM_CONDITIONAL.patch"
+
+  ./_autosetup
+
+  LDFLAGS='-lX11' ./configure \
+    --prefix=/usr \
+    --disable-server \
+    --enable-unicode \
+    --with-ssl \
+    --enable-dynamic-client-linkage \
+    --with-wxdir=/usr/lib \
+    --with-wx-config=$(which wx-config) \
+    --disable-static \
+    --enable-client \
+    --enable-manager \
+    --with-x
+  make
+
+  # Build boinc-nox
+  rm -rf "$srcdir/$__gitname-nox-build"
+  git clone "$srcdir/$__gitname" "$srcdir/$__gitname-nox-build"
+  cd "$srcdir/$__gitname-nox-build"
+  git checkout "$_tag"
+
+  patch -Np1 -i "${srcdir}/boinc-AM_CONDITIONAL.patch"
+
+  ./_autosetup
+
+  PKG_CONFIG="$(which pkg-config)" ./configure \
+    --prefix=/usr \
+    --disable-server \
+    --enable-unicode \
+    --with-ssl \
+    --enable-dynamic-client-linkage \
+    --disable-xss \
+    --disable-static \
+    --enable-client \
+    --disable-manager \
+    --without-wxdir \
+    --without-x
+  make
+}
+
+package_boinc() {
+  pkgdesc="Berkeley Open Infrastructure for Network Computing for desktop"
+  depends=("libxss" "libnotify" "wxgtk" "curl" "sqlite3")
+
+  cd "$srcdir/$__gitname-build"
+
+  make DESTDIR="$pkgdir" install
+
+#install rc-script
+  install -Dm755 "${srcdir}/$pkgbase.rc" "${pkgdir}/etc/rc.d/$pkgbase"
+
+#install systemd unit
+  install -Dm644 "${srcdir}/$pkgbase.service" "${pkgdir}/usr/lib/systemd/system/$pkgbase.service"
+
+#install bash-completion
+  install -Dm644 "${srcdir}/$pkgbase.bash" "${pkgdir}/usr/share/bash-completion/completions/$pkgbase"
+
+#install .desktop File
+  install -Dm644 "${srcdir}/${pkgbase}.desktop" "${pkgdir}/usr/share/applications/${pkgbase}.desktop"
+
+#install icons
+  install -Dm644 "${srcdir}/${pkgbase}-build/clientgui/res/boincmgr.48x48.png" "${pkgdir}/usr/share/pixmaps/$pkgbase.png"
+
+#killing /etc/init.d directory
+  rm -rf ${pkgdir}/etc/init.d
+}
+
+package_boinc-nox() {
+  pkgdesc="Berkeley Open Infrastructure for Network Computing for desktop without Xorg dependencies"
+  depends=("curl")
+  provides=("boinc")
+  conflicts=("boinc")
+
+  cd "$srcdir/$__gitname-nox-build"
+
+  make DESTDIR="$pkgdir" install
+
+#install rc-script
+  install -Dm755 "${srcdir}/$pkgbase.rc" "${pkgdir}/etc/rc.d/$pkgbase"
+
+#install systemd unit
+  install -Dm644 "${srcdir}/$pkgbase.service" "${pkgdir}/usr/lib/systemd/system/$pkgbase.service"
+
+#install bash-completion
+  install -Dm644 "${srcdir}/$pkgbase.bash" "${pkgdir}/usr/share/bash-completion/completions/$pkgbase"
+
+#killing /etc/init.d directory
+  rm -rf ${pkgdir}/etc/init.d
+}
+
+md5sums=('c6dadc333f982ea7b548602a70bd1e93'
+         '4d00e1aa4090a3f51feb20f5a541b9ee'
+         'db62de2f08117e6379a3c613b58fa7ff'
+         '3d5cbab785cc8b004661b17c65883fd5'
+         'e27047518dec54d4db38816487a28661')

Copied: boinc/repos/community-testing-i686/boinc-AM_CONDITIONAL.patch (from rev 82834, boinc/trunk/boinc-AM_CONDITIONAL.patch)
===================================================================
--- community-testing-i686/boinc-AM_CONDITIONAL.patch	                        (rev 0)
+++ community-testing-i686/boinc-AM_CONDITIONAL.patch	2013-01-24 16:47:45 UTC (rev 82835)
@@ -0,0 +1,19 @@
+--- A/configure.ac
++++ B/configure.ac
+@@ -39,6 +39,7 @@ AC_PROG_CC
+ AC_PROG_CXX
+ AC_PROG_F77
+ AC_PROG_CPP
++AC_PROG_OBJCXX
+ AC_PROG_MAKE_SET
+ SAH_LINKS
+ AC_LANG_PUSH(C)
+@@ -744,6 +745,8 @@ AM_CONDITIONAL(ENABLE_LIBRARIES, [test "
+ AM_CONDITIONAL(INSTALL_HEADERS, [test "${enable_install_headers}" = yes])
+ AM_CONDITIONAL(HAVE_CUDA_LIB, [test "${enable_client}" = yes -a -f ./coprocs/CUDA/posix/${boinc_platform}/libcudart.so])
+ 
++PKG_CHECK_MODULES([GTK2], [gtk+-2.0])
++
+ dnl ======================================================================
+ dnl some more vodoo required for building portable client-binary (client, clientgui)
+ dnl ======================================================================

Deleted: community-testing-i686/boinc.bash
===================================================================
--- community-testing-i686/boinc.bash	2013-01-24 16:39:36 UTC (rev 82834)
+++ community-testing-i686/boinc.bash	2013-01-24 16:47:45 UTC (rev 82835)
@@ -1,99 +0,0 @@
-# Source this file in BASH to get command completion (using tab) for
-# boinc and boinccmd. Written by Frank S. Thomas <fst at debian.org>.
-# See also: http://boinc.berkeley.edu/trac/wiki/BashCommandCompletion
-
-_boinc()
-{
-    local cur prev opts
-    COMPREPLY=()
-    cur="${COMP_WORDS[COMP_CWORD]}"
-    prev="${COMP_WORDS[COMP_CWORD-1]}"
-
-    opts="$(boinc_client --help | \
-        sed -n -r 's/^[[:space:]]*(--[a-z_]*).*/\1/p')"
-
-    # Handle options that require one or more arguments.
-    case "$prev" in
-        --attach_project|--detach_project|--reset_project|--update_prefs|\
-        --gui_rpc_port)
-            return 0
-        ;;
-    esac
-
-    # Handle options that require two arguments.
-    if [[ COMP_CWORD -gt 1 ]]; then
-        pprev="${COMP_WORDS[COMP_CWORD-2]}"
-
-        case "$pprev" in
-            --attach_project)
-                return 0
-            ;;
-        esac
-    fi
-
-    if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $(compgen -W "$opts" -- "$cur") )
-        return 0
-    fi
-}
-complete -F _boinc -o default boinc_client
-
-_boinccmd()
-{
-    local cur prev opts cmds
-    COMPREPLY=()
-    cur="${COMP_WORDS[COMP_CWORD]}"
-    prev="${COMP_WORDS[COMP_CWORD-1]}"
-
-    opts="--host --passwd -h --help -V --version"
-    cmds="$(boinc_cmd --help 2>&1 | \
-        sed -n -r 's/^[[:space:]]*(--[a-z_]*).*/\1/p')"
-
-    # The following construct assures that:
-    # - no command follows if one of $opts or $cmds was given
-    # - after --host follows only one command or --passwd and one command
-    # - after --passwd follows only one command
-    if [[ $COMP_CWORD -eq 1 ]]; then
-        COMPREPLY=( $(compgen -W "$opts $cmds" -- "$cur") )
-        return 0
-    else
-        if [[ "${COMP_WORDS[@]}" =~ ".* --host .* --passwd .*" ]]; then
-            if [[ $COMP_CWORD -eq 5 ]]; then
-                COMPREPLY=( $(compgen -W "$cmds" -- "$cur") )
-            fi
-        elif [[ "${COMP_WORDS[@]}" =~ ".* --passwd .*" ]]; then
-            if [[ $COMP_CWORD -eq 3 ]]; then
-                COMPREPLY=( $(compgen -W "$cmds" -- "$cur") )
-            fi
-        elif [[ "${COMP_WORDS[@]}" =~ ".* --host .*" ]]; then
-            if [[ $COMP_CWORD -eq 3 ]]; then
-                COMPREPLY=( $(compgen -W "--passwd $cmds" -- "$cur") )
-            fi
-       fi
-    fi
-
-    # Handle options/commands that require one or more arguments.
-    case "$prev" in
-        --get_messages|--passwd)
-            return 0
-        ;;
-
-        --host)
-            _known_hosts
-            return 0
-        ;;
-
-        --set_run_mode|--set_network_mode)
-            COMPREPLY=( $(compgen -W "always auto never" -- "$cur") )
-            return 0
-        ;;
-
-        --set_screensaver_mode)
-            COMPREPLY=( $(compgen -W "on off" -- "$cur") )
-            return 0
-        ;;
-    esac
-}
-complete -F _boinccmd boinc_cmd
-
-# vim: syntax=sh
\ No newline at end of file

Copied: boinc/repos/community-testing-i686/boinc.bash (from rev 82834, boinc/trunk/boinc.bash)
===================================================================
--- community-testing-i686/boinc.bash	                        (rev 0)
+++ community-testing-i686/boinc.bash	2013-01-24 16:47:45 UTC (rev 82835)
@@ -0,0 +1,99 @@
+# Source this file in BASH to get command completion (using tab) for
+# boinc and boinccmd. Written by Frank S. Thomas <fst at debian.org>.
+# See also: http://boinc.berkeley.edu/trac/wiki/BashCommandCompletion
+
+_boinc()
+{
+    local cur prev opts
+    COMPREPLY=()
+    cur="${COMP_WORDS[COMP_CWORD]}"
+    prev="${COMP_WORDS[COMP_CWORD-1]}"
+
+    opts="$(boinc_client --help | \
+        sed -n -r 's/^[[:space:]]*(--[a-z_]*).*/\1/p')"
+
+    # Handle options that require one or more arguments.
+    case "$prev" in
+        --attach_project|--detach_project|--reset_project|--update_prefs|\
+        --gui_rpc_port)
+            return 0
+        ;;
+    esac
+
+    # Handle options that require two arguments.
+    if [[ COMP_CWORD -gt 1 ]]; then
+        pprev="${COMP_WORDS[COMP_CWORD-2]}"
+
+        case "$pprev" in
+            --attach_project)
+                return 0
+            ;;
+        esac
+    fi
+
+    if [[ "$cur" == -* ]]; then
+        COMPREPLY=( $(compgen -W "$opts" -- "$cur") )
+        return 0
+    fi
+}
+complete -F _boinc -o default boinc_client
+
+_boinccmd()
+{
+    local cur prev opts cmds
+    COMPREPLY=()
+    cur="${COMP_WORDS[COMP_CWORD]}"
+    prev="${COMP_WORDS[COMP_CWORD-1]}"
+
+    opts="--host --passwd -h --help -V --version"
+    cmds="$(boinc_cmd --help 2>&1 | \
+        sed -n -r 's/^[[:space:]]*(--[a-z_]*).*/\1/p')"
+
+    # The following construct assures that:
+    # - no command follows if one of $opts or $cmds was given
+    # - after --host follows only one command or --passwd and one command
+    # - after --passwd follows only one command
+    if [[ $COMP_CWORD -eq 1 ]]; then
+        COMPREPLY=( $(compgen -W "$opts $cmds" -- "$cur") )
+        return 0
+    else
+        if [[ "${COMP_WORDS[@]}" =~ ".* --host .* --passwd .*" ]]; then
+            if [[ $COMP_CWORD -eq 5 ]]; then
+                COMPREPLY=( $(compgen -W "$cmds" -- "$cur") )
+            fi
+        elif [[ "${COMP_WORDS[@]}" =~ ".* --passwd .*" ]]; then
+            if [[ $COMP_CWORD -eq 3 ]]; then
+                COMPREPLY=( $(compgen -W "$cmds" -- "$cur") )
+            fi
+        elif [[ "${COMP_WORDS[@]}" =~ ".* --host .*" ]]; then
+            if [[ $COMP_CWORD -eq 3 ]]; then
+                COMPREPLY=( $(compgen -W "--passwd $cmds" -- "$cur") )
+            fi
+       fi
+    fi
+
+    # Handle options/commands that require one or more arguments.
+    case "$prev" in
+        --get_messages|--passwd)
+            return 0
+        ;;
+
+        --host)
+            _known_hosts
+            return 0
+        ;;
+
+        --set_run_mode|--set_network_mode)
+            COMPREPLY=( $(compgen -W "always auto never" -- "$cur") )
+            return 0
+        ;;
+
+        --set_screensaver_mode)
+            COMPREPLY=( $(compgen -W "on off" -- "$cur") )
+            return 0
+        ;;
+    esac
+}
+complete -F _boinccmd boinc_cmd
+
+# vim: syntax=sh
\ No newline at end of file

Deleted: community-testing-i686/boinc.desktop
===================================================================
--- community-testing-i686/boinc.desktop	2013-01-24 16:39:36 UTC (rev 82834)
+++ community-testing-i686/boinc.desktop	2013-01-24 16:47:45 UTC (rev 82835)
@@ -1,16 +0,0 @@
-[Desktop Entry]
-Type=Application
-Version=1.0
-Exec=/usr/bin/boincmgr
-Path=/var/lib/boinc
-Icon=boinc
-Categories=System;Monitor;GTK;
-Name=BOINC Manager
-GenericName=BOINC monitor and control utility
-GenericName[cs]=Monitorovací a ovládací nástroj pro BOINC
-GenericName[de]=BOINC Überwachungs- und Kontrollprogramm
-GenericName[pt]=Monitorização BOINC e utilitário de controlo
-Comment=Configure or monitor a BOINC core client
-Comment[cs]=Monitoruje a nastavuje klienta BOINC
-Comment[de]=BOINC Basis Client konfigurieren oder überwachen
-Comment[pt]=Configurar ou monitorizar o cliente básico do BOINC

Copied: boinc/repos/community-testing-i686/boinc.desktop (from rev 82834, boinc/trunk/boinc.desktop)
===================================================================
--- community-testing-i686/boinc.desktop	                        (rev 0)
+++ community-testing-i686/boinc.desktop	2013-01-24 16:47:45 UTC (rev 82835)
@@ -0,0 +1,16 @@
+[Desktop Entry]
+Type=Application
+Version=1.0
+Exec=/usr/bin/boincmgr
+Path=/var/lib/boinc
+Icon=boinc
+Categories=System;Monitor;GTK;
+Name=BOINC Manager
+GenericName=BOINC monitor and control utility
+GenericName[cs]=Monitorovací a ovládací nástroj pro BOINC
+GenericName[de]=BOINC Überwachungs- und Kontrollprogramm
+GenericName[pt]=Monitorização BOINC e utilitário de controlo
+Comment=Configure or monitor a BOINC core client
+Comment[cs]=Monitoruje a nastavuje klienta BOINC
+Comment[de]=BOINC Basis Client konfigurieren oder überwachen
+Comment[pt]=Configurar ou monitorizar o cliente básico do BOINC

Deleted: community-testing-i686/boinc.install
===================================================================
--- community-testing-i686/boinc.install	2013-01-24 16:39:36 UTC (rev 82834)
+++ community-testing-i686/boinc.install	2013-01-24 16:47:45 UTC (rev 82835)
@@ -1,23 +0,0 @@
-# arg 1:  the new package version
-post_install() {
-  /usr/sbin/groupadd boinc 2>/dev/null || true
-  /usr/sbin/useradd -s /bin/bash -g boinc -d /var/lib/boinc boinc 2>/dev/null || true
-
-  if [ ! -d /var/lib/boinc ]; then
-    install -d /var/lib/boinc
-  fi
-  chown -R boinc:boinc /var/lib/boinc
-
-  echo '>>> Client RPC password can be found in /var/lib/boinc/gui_rpc_auth.cfg'
-  echo '>>> (this file is generated after first run of /etc/rc.d/boinc start).'
-  echo '>>> Remove it from gui_rpc_auth.cfg if you do not want to use password.'
-  echo '>>> See more details on the Arch Linux BOINC wiki page.'
-}
-
-# arg 1:  the old package version
-post_remove() {
-  /usr/sbin/userdel boinc
-  /usr/sbin/groupdel boinc
-
-  echo '>>> If you really do not want to run Boinc in the future, you may completely remove the directory "/var/lib/boinc".'
-}

Copied: boinc/repos/community-testing-i686/boinc.install (from rev 82834, boinc/trunk/boinc.install)
===================================================================
--- community-testing-i686/boinc.install	                        (rev 0)
+++ community-testing-i686/boinc.install	2013-01-24 16:47:45 UTC (rev 82835)
@@ -0,0 +1,23 @@
+# arg 1:  the new package version
+post_install() {
+  /usr/sbin/groupadd boinc 2>/dev/null || true
+  /usr/sbin/useradd -s /bin/bash -g boinc -d /var/lib/boinc boinc 2>/dev/null || true
+
+  if [ ! -d /var/lib/boinc ]; then
+    install -d /var/lib/boinc
+  fi
+  chown -R boinc:boinc /var/lib/boinc
+
+  echo '>>> Client RPC password can be found in /var/lib/boinc/gui_rpc_auth.cfg'
+  echo '>>> (this file is generated after first run of /etc/rc.d/boinc start).'
+  echo '>>> Remove it from gui_rpc_auth.cfg if you do not want to use password.'
+  echo '>>> See more details on the Arch Linux BOINC wiki page.'
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /usr/sbin/userdel boinc
+  /usr/sbin/groupdel boinc
+
+  echo '>>> If you really do not want to run Boinc in the future, you may completely remove the directory "/var/lib/boinc".'
+}

Deleted: community-testing-i686/boinc.rc
===================================================================
--- community-testing-i686/boinc.rc	2013-01-24 16:39:36 UTC (rev 82834)
+++ community-testing-i686/boinc.rc	2013-01-24 16:47:45 UTC (rev 82835)
@@ -1,52 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-
-BOINCUSER="boinc"
-BOINCDIR="/var/lib/boinc"
-PID=`pidof -o %PPID /usr/bin/boinc_client`
-case "$1" in
-  attach)
-    echo "Enter the Project URL: "
-    read url
-    echo "Enter your Account Key: "
-    read key
-    echo "Attaching to project"
-    cd $BOINCDIR
-    su $BOINCUSER -c "boinccmd --project_attach $url $key"
-;;
-  start)
-    stat_busy "Starting boinc"
-    if [ -z "$PID" ]; then
-      su $BOINCUSER -c "nice -n 19 /usr/bin/boinc_client --daemon --dir ${BOINCDIR} --redirectio"
-    else
-      false
-    fi
-    if [ $? -gt 0 ]; then
-      stat_fail
-    else
-      add_daemon boinc
-      stat_done
-    fi
-    ;;
-  stop)
-    stat_busy "Stopping boinc"
-    [ ! -z "$PID" ] && kill $PID &> /dev/null
-    if [ $? -gt 0 ]; then
-      stat_fail
-    else
-      rm_daemon boinc
-      stat_done
-    fi
-    ;;
-  restart)
-    $0 stop
-    sleep 2
-    $0 start
-    ;;
-  *)
-    echo "usage: $0 {attach|start|stop|restart}"
-esac
-exit 0

Copied: boinc/repos/community-testing-i686/boinc.rc (from rev 82834, boinc/trunk/boinc.rc)
===================================================================
--- community-testing-i686/boinc.rc	                        (rev 0)
+++ community-testing-i686/boinc.rc	2013-01-24 16:47:45 UTC (rev 82835)
@@ -0,0 +1,52 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+
+BOINCUSER="boinc"
+BOINCDIR="/var/lib/boinc"
+PID=`pidof -o %PPID /usr/bin/boinc_client`
+case "$1" in
+  attach)
+    echo "Enter the Project URL: "
+    read url
+    echo "Enter your Account Key: "
+    read key
+    echo "Attaching to project"
+    cd $BOINCDIR
+    su $BOINCUSER -c "boinccmd --project_attach $url $key"
+;;
+  start)
+    stat_busy "Starting boinc"
+    if [ -z "$PID" ]; then
+      su $BOINCUSER -c "nice -n 19 /usr/bin/boinc_client --daemon --dir ${BOINCDIR} --redirectio"
+    else
+      false
+    fi
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      add_daemon boinc
+      stat_done
+    fi
+    ;;
+  stop)
+    stat_busy "Stopping boinc"
+    [ ! -z "$PID" ] && kill $PID &> /dev/null
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      rm_daemon boinc
+      stat_done
+    fi
+    ;;
+  restart)
+    $0 stop
+    sleep 2
+    $0 start
+    ;;
+  *)
+    echo "usage: $0 {attach|start|stop|restart}"
+esac
+exit 0

Deleted: community-testing-i686/boinc.service
===================================================================
--- community-testing-i686/boinc.service	2013-01-24 16:39:36 UTC (rev 82834)
+++ community-testing-i686/boinc.service	2013-01-24 16:47:45 UTC (rev 82835)
@@ -1,10 +0,0 @@
-[Unit]
-Description=BOINC Daemon
-
-[Service]
-User=boinc
-Nice=19
-ExecStart=/usr/bin/boinc_client --dir /var/lib/boinc --redirectio
-
-[Install]
-WantedBy=multi-user.target

Copied: boinc/repos/community-testing-i686/boinc.service (from rev 82834, boinc/trunk/boinc.service)
===================================================================
--- community-testing-i686/boinc.service	                        (rev 0)
+++ community-testing-i686/boinc.service	2013-01-24 16:47:45 UTC (rev 82835)
@@ -0,0 +1,10 @@
+[Unit]
+Description=BOINC Daemon
+
+[Service]
+User=boinc
+Nice=19
+ExecStart=/usr/bin/boinc_client --dir /var/lib/boinc --redirectio
+
+[Install]
+WantedBy=multi-user.target

Copied: boinc/repos/community-testing-x86_64/PKGBUILD (from rev 82834, boinc/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2013-01-24 16:47:45 UTC (rev 82835)
@@ -0,0 +1,142 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Contributor: Jaroslav Lichtblau <dragonlord at aur.archlinux.org>
+# Contributor: Michal Krenek <mikos at sg1.cz>
+
+pkgbase=boinc
+pkgname=(boinc boinc-nox)
+pkgver=7.0.45
+_tag=client_release_$pkgver
+pkgrel=1
+arch=('i686' 'x86_64')
+url="http://boinc.berkeley.edu/"
+license=('LGPL')
+makedepends=('libxslt' 'perl-xml-sax' 'git' 'libxss' 'libnotify' 'wxgtk' 'sqlite3' 'curl')
+options=('!libtool')
+install=$pkgbase.install
+source=(boinc.rc
+	boinc.bash
+	boinc.desktop
+	boinc.service
+	boinc-AM_CONDITIONAL.patch)
+
+__gitroot=git://boinc.berkeley.edu/boinc.git
+__gitname=boinc
+
+build() {
+  cd "${srcdir}"
+  msg "Connecting to GIT server...."
+  if [ -d $__gitname ] ; then
+    cd $__gitname && git pull origin
+    msg "The local files are updated."
+  else
+    git clone $__gitroot
+  fi
+
+  msg "GIT checkout done or server timeout"
+  msg "Starting make..."
+  
+  # Build boinc
+  rm -rf "$srcdir/$__gitname-build"
+  git clone "$srcdir/$__gitname" "$srcdir/$__gitname-build"
+  cd "$srcdir/$__gitname-build"
+  git checkout "$_tag"
+
+  patch -Np1 -i "${srcdir}/boinc-AM_CONDITIONAL.patch"
+
+  ./_autosetup
+
+  LDFLAGS='-lX11' ./configure \
+    --prefix=/usr \
+    --disable-server \
+    --enable-unicode \
+    --with-ssl \
+    --enable-dynamic-client-linkage \
+    --with-wxdir=/usr/lib \
+    --with-wx-config=$(which wx-config) \
+    --disable-static \
+    --enable-client \
+    --enable-manager \
+    --with-x
+  make
+
+  # Build boinc-nox
+  rm -rf "$srcdir/$__gitname-nox-build"
+  git clone "$srcdir/$__gitname" "$srcdir/$__gitname-nox-build"
+  cd "$srcdir/$__gitname-nox-build"
+  git checkout "$_tag"
+
+  patch -Np1 -i "${srcdir}/boinc-AM_CONDITIONAL.patch"
+
+  ./_autosetup
+
+  PKG_CONFIG="$(which pkg-config)" ./configure \
+    --prefix=/usr \
+    --disable-server \
+    --enable-unicode \
+    --with-ssl \
+    --enable-dynamic-client-linkage \
+    --disable-xss \
+    --disable-static \
+    --enable-client \
+    --disable-manager \
+    --without-wxdir \
+    --without-x
+  make
+}
+
+package_boinc() {
+  pkgdesc="Berkeley Open Infrastructure for Network Computing for desktop"
+  depends=("libxss" "libnotify" "wxgtk" "curl" "sqlite3")
+
+  cd "$srcdir/$__gitname-build"
+
+  make DESTDIR="$pkgdir" install
+
+#install rc-script
+  install -Dm755 "${srcdir}/$pkgbase.rc" "${pkgdir}/etc/rc.d/$pkgbase"
+
+#install systemd unit
+  install -Dm644 "${srcdir}/$pkgbase.service" "${pkgdir}/usr/lib/systemd/system/$pkgbase.service"
+
+#install bash-completion
+  install -Dm644 "${srcdir}/$pkgbase.bash" "${pkgdir}/usr/share/bash-completion/completions/$pkgbase"
+
+#install .desktop File
+  install -Dm644 "${srcdir}/${pkgbase}.desktop" "${pkgdir}/usr/share/applications/${pkgbase}.desktop"
+
+#install icons
+  install -Dm644 "${srcdir}/${pkgbase}-build/clientgui/res/boincmgr.48x48.png" "${pkgdir}/usr/share/pixmaps/$pkgbase.png"
+
+#killing /etc/init.d directory
+  rm -rf ${pkgdir}/etc/init.d
+}
+
+package_boinc-nox() {
+  pkgdesc="Berkeley Open Infrastructure for Network Computing for desktop without Xorg dependencies"
+  depends=("curl")
+  provides=("boinc")
+  conflicts=("boinc")
+
+  cd "$srcdir/$__gitname-nox-build"
+
+  make DESTDIR="$pkgdir" install
+
+#install rc-script
+  install -Dm755 "${srcdir}/$pkgbase.rc" "${pkgdir}/etc/rc.d/$pkgbase"
+
+#install systemd unit
+  install -Dm644 "${srcdir}/$pkgbase.service" "${pkgdir}/usr/lib/systemd/system/$pkgbase.service"
+
+#install bash-completion
+  install -Dm644 "${srcdir}/$pkgbase.bash" "${pkgdir}/usr/share/bash-completion/completions/$pkgbase"
+
+#killing /etc/init.d directory
+  rm -rf ${pkgdir}/etc/init.d
+}
+
+md5sums=('c6dadc333f982ea7b548602a70bd1e93'
+         '4d00e1aa4090a3f51feb20f5a541b9ee'
+         'db62de2f08117e6379a3c613b58fa7ff'
+         '3d5cbab785cc8b004661b17c65883fd5'
+         'e27047518dec54d4db38816487a28661')

Copied: boinc/repos/community-testing-x86_64/boinc-AM_CONDITIONAL.patch (from rev 82834, boinc/trunk/boinc-AM_CONDITIONAL.patch)
===================================================================
--- community-testing-x86_64/boinc-AM_CONDITIONAL.patch	                        (rev 0)
+++ community-testing-x86_64/boinc-AM_CONDITIONAL.patch	2013-01-24 16:47:45 UTC (rev 82835)
@@ -0,0 +1,19 @@
+--- A/configure.ac
++++ B/configure.ac
+@@ -39,6 +39,7 @@ AC_PROG_CC
+ AC_PROG_CXX
+ AC_PROG_F77
+ AC_PROG_CPP
++AC_PROG_OBJCXX
+ AC_PROG_MAKE_SET
+ SAH_LINKS
+ AC_LANG_PUSH(C)
+@@ -744,6 +745,8 @@ AM_CONDITIONAL(ENABLE_LIBRARIES, [test "
+ AM_CONDITIONAL(INSTALL_HEADERS, [test "${enable_install_headers}" = yes])
+ AM_CONDITIONAL(HAVE_CUDA_LIB, [test "${enable_client}" = yes -a -f ./coprocs/CUDA/posix/${boinc_platform}/libcudart.so])
+ 
++PKG_CHECK_MODULES([GTK2], [gtk+-2.0])
++
+ dnl ======================================================================
+ dnl some more vodoo required for building portable client-binary (client, clientgui)
+ dnl ======================================================================

Deleted: community-testing-x86_64/boinc.bash
===================================================================
--- community-testing-x86_64/boinc.bash	2013-01-24 16:39:36 UTC (rev 82834)
+++ community-testing-x86_64/boinc.bash	2013-01-24 16:47:45 UTC (rev 82835)
@@ -1,99 +0,0 @@
-# Source this file in BASH to get command completion (using tab) for
-# boinc and boinccmd. Written by Frank S. Thomas <fst at debian.org>.
-# See also: http://boinc.berkeley.edu/trac/wiki/BashCommandCompletion
-
-_boinc()
-{
-    local cur prev opts
-    COMPREPLY=()
-    cur="${COMP_WORDS[COMP_CWORD]}"
-    prev="${COMP_WORDS[COMP_CWORD-1]}"
-
-    opts="$(boinc_client --help | \
-        sed -n -r 's/^[[:space:]]*(--[a-z_]*).*/\1/p')"
-
-    # Handle options that require one or more arguments.
-    case "$prev" in
-        --attach_project|--detach_project|--reset_project|--update_prefs|\
-        --gui_rpc_port)
-            return 0
-        ;;
-    esac
-
-    # Handle options that require two arguments.
-    if [[ COMP_CWORD -gt 1 ]]; then
-        pprev="${COMP_WORDS[COMP_CWORD-2]}"
-
-        case "$pprev" in
-            --attach_project)
-                return 0
-            ;;
-        esac
-    fi
-
-    if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $(compgen -W "$opts" -- "$cur") )
-        return 0
-    fi
-}
-complete -F _boinc -o default boinc_client
-
-_boinccmd()
-{
-    local cur prev opts cmds
-    COMPREPLY=()
-    cur="${COMP_WORDS[COMP_CWORD]}"
-    prev="${COMP_WORDS[COMP_CWORD-1]}"
-
-    opts="--host --passwd -h --help -V --version"
-    cmds="$(boinc_cmd --help 2>&1 | \
-        sed -n -r 's/^[[:space:]]*(--[a-z_]*).*/\1/p')"
-
-    # The following construct assures that:
-    # - no command follows if one of $opts or $cmds was given
-    # - after --host follows only one command or --passwd and one command
-    # - after --passwd follows only one command
-    if [[ $COMP_CWORD -eq 1 ]]; then
-        COMPREPLY=( $(compgen -W "$opts $cmds" -- "$cur") )
-        return 0
-    else
-        if [[ "${COMP_WORDS[@]}" =~ ".* --host .* --passwd .*" ]]; then
-            if [[ $COMP_CWORD -eq 5 ]]; then
-                COMPREPLY=( $(compgen -W "$cmds" -- "$cur") )
-            fi
-        elif [[ "${COMP_WORDS[@]}" =~ ".* --passwd .*" ]]; then
-            if [[ $COMP_CWORD -eq 3 ]]; then
-                COMPREPLY=( $(compgen -W "$cmds" -- "$cur") )
-            fi
-        elif [[ "${COMP_WORDS[@]}" =~ ".* --host .*" ]]; then
-            if [[ $COMP_CWORD -eq 3 ]]; then
-                COMPREPLY=( $(compgen -W "--passwd $cmds" -- "$cur") )
-            fi
-       fi
-    fi
-
-    # Handle options/commands that require one or more arguments.
-    case "$prev" in
-        --get_messages|--passwd)
-            return 0
-        ;;
-
-        --host)
-            _known_hosts
-            return 0
-        ;;
-
-        --set_run_mode|--set_network_mode)
-            COMPREPLY=( $(compgen -W "always auto never" -- "$cur") )
-            return 0
-        ;;
-
-        --set_screensaver_mode)
-            COMPREPLY=( $(compgen -W "on off" -- "$cur") )
-            return 0
-        ;;
-    esac
-}
-complete -F _boinccmd boinc_cmd
-
-# vim: syntax=sh
\ No newline at end of file

Copied: boinc/repos/community-testing-x86_64/boinc.bash (from rev 82834, boinc/trunk/boinc.bash)
===================================================================
--- community-testing-x86_64/boinc.bash	                        (rev 0)
+++ community-testing-x86_64/boinc.bash	2013-01-24 16:47:45 UTC (rev 82835)
@@ -0,0 +1,99 @@
+# Source this file in BASH to get command completion (using tab) for
+# boinc and boinccmd. Written by Frank S. Thomas <fst at debian.org>.
+# See also: http://boinc.berkeley.edu/trac/wiki/BashCommandCompletion
+
+_boinc()
+{
+    local cur prev opts
+    COMPREPLY=()
+    cur="${COMP_WORDS[COMP_CWORD]}"
+    prev="${COMP_WORDS[COMP_CWORD-1]}"
+
+    opts="$(boinc_client --help | \
+        sed -n -r 's/^[[:space:]]*(--[a-z_]*).*/\1/p')"
+
+    # Handle options that require one or more arguments.
+    case "$prev" in
+        --attach_project|--detach_project|--reset_project|--update_prefs|\
+        --gui_rpc_port)
+            return 0
+        ;;
+    esac
+
+    # Handle options that require two arguments.
+    if [[ COMP_CWORD -gt 1 ]]; then
+        pprev="${COMP_WORDS[COMP_CWORD-2]}"
+
+        case "$pprev" in
+            --attach_project)
+                return 0
+            ;;
+        esac
+    fi
+
+    if [[ "$cur" == -* ]]; then
+        COMPREPLY=( $(compgen -W "$opts" -- "$cur") )
+        return 0
+    fi
+}
+complete -F _boinc -o default boinc_client
+
+_boinccmd()
+{
+    local cur prev opts cmds
+    COMPREPLY=()
+    cur="${COMP_WORDS[COMP_CWORD]}"
+    prev="${COMP_WORDS[COMP_CWORD-1]}"
+
+    opts="--host --passwd -h --help -V --version"
+    cmds="$(boinc_cmd --help 2>&1 | \
+        sed -n -r 's/^[[:space:]]*(--[a-z_]*).*/\1/p')"
+
+    # The following construct assures that:
+    # - no command follows if one of $opts or $cmds was given
+    # - after --host follows only one command or --passwd and one command
+    # - after --passwd follows only one command
+    if [[ $COMP_CWORD -eq 1 ]]; then
+        COMPREPLY=( $(compgen -W "$opts $cmds" -- "$cur") )
+        return 0
+    else
+        if [[ "${COMP_WORDS[@]}" =~ ".* --host .* --passwd .*" ]]; then
+            if [[ $COMP_CWORD -eq 5 ]]; then
+                COMPREPLY=( $(compgen -W "$cmds" -- "$cur") )
+            fi
+        elif [[ "${COMP_WORDS[@]}" =~ ".* --passwd .*" ]]; then
+            if [[ $COMP_CWORD -eq 3 ]]; then
+                COMPREPLY=( $(compgen -W "$cmds" -- "$cur") )
+            fi
+        elif [[ "${COMP_WORDS[@]}" =~ ".* --host .*" ]]; then
+            if [[ $COMP_CWORD -eq 3 ]]; then
+                COMPREPLY=( $(compgen -W "--passwd $cmds" -- "$cur") )
+            fi
+       fi
+    fi
+
+    # Handle options/commands that require one or more arguments.
+    case "$prev" in
+        --get_messages|--passwd)
+            return 0
+        ;;
+
+        --host)
+            _known_hosts
+            return 0
+        ;;
+
+        --set_run_mode|--set_network_mode)
+            COMPREPLY=( $(compgen -W "always auto never" -- "$cur") )
+            return 0
+        ;;
+
+        --set_screensaver_mode)
+            COMPREPLY=( $(compgen -W "on off" -- "$cur") )
+            return 0
+        ;;
+    esac
+}
+complete -F _boinccmd boinc_cmd
+
+# vim: syntax=sh
\ No newline at end of file

Deleted: community-testing-x86_64/boinc.desktop
===================================================================
--- community-testing-x86_64/boinc.desktop	2013-01-24 16:39:36 UTC (rev 82834)
+++ community-testing-x86_64/boinc.desktop	2013-01-24 16:47:45 UTC (rev 82835)
@@ -1,16 +0,0 @@
-[Desktop Entry]
-Type=Application
-Version=1.0
-Exec=/usr/bin/boincmgr
-Path=/var/lib/boinc
-Icon=boinc
-Categories=System;Monitor;GTK;
-Name=BOINC Manager
-GenericName=BOINC monitor and control utility
-GenericName[cs]=Monitorovací a ovládací nástroj pro BOINC
-GenericName[de]=BOINC Überwachungs- und Kontrollprogramm
-GenericName[pt]=Monitorização BOINC e utilitário de controlo
-Comment=Configure or monitor a BOINC core client
-Comment[cs]=Monitoruje a nastavuje klienta BOINC
-Comment[de]=BOINC Basis Client konfigurieren oder überwachen
-Comment[pt]=Configurar ou monitorizar o cliente básico do BOINC

Copied: boinc/repos/community-testing-x86_64/boinc.desktop (from rev 82834, boinc/trunk/boinc.desktop)
===================================================================
--- community-testing-x86_64/boinc.desktop	                        (rev 0)
+++ community-testing-x86_64/boinc.desktop	2013-01-24 16:47:45 UTC (rev 82835)
@@ -0,0 +1,16 @@
+[Desktop Entry]
+Type=Application
+Version=1.0
+Exec=/usr/bin/boincmgr
+Path=/var/lib/boinc
+Icon=boinc
+Categories=System;Monitor;GTK;
+Name=BOINC Manager
+GenericName=BOINC monitor and control utility
+GenericName[cs]=Monitorovací a ovládací nástroj pro BOINC
+GenericName[de]=BOINC Überwachungs- und Kontrollprogramm
+GenericName[pt]=Monitorização BOINC e utilitário de controlo
+Comment=Configure or monitor a BOINC core client
+Comment[cs]=Monitoruje a nastavuje klienta BOINC
+Comment[de]=BOINC Basis Client konfigurieren oder überwachen
+Comment[pt]=Configurar ou monitorizar o cliente básico do BOINC

Deleted: community-testing-x86_64/boinc.install
===================================================================
--- community-testing-x86_64/boinc.install	2013-01-24 16:39:36 UTC (rev 82834)
+++ community-testing-x86_64/boinc.install	2013-01-24 16:47:45 UTC (rev 82835)
@@ -1,23 +0,0 @@
-# arg 1:  the new package version
-post_install() {
-  /usr/sbin/groupadd boinc 2>/dev/null || true
-  /usr/sbin/useradd -s /bin/bash -g boinc -d /var/lib/boinc boinc 2>/dev/null || true
-
-  if [ ! -d /var/lib/boinc ]; then
-    install -d /var/lib/boinc
-  fi
-  chown -R boinc:boinc /var/lib/boinc
-
-  echo '>>> Client RPC password can be found in /var/lib/boinc/gui_rpc_auth.cfg'
-  echo '>>> (this file is generated after first run of /etc/rc.d/boinc start).'
-  echo '>>> Remove it from gui_rpc_auth.cfg if you do not want to use password.'
-  echo '>>> See more details on the Arch Linux BOINC wiki page.'
-}
-
-# arg 1:  the old package version
-post_remove() {
-  /usr/sbin/userdel boinc
-  /usr/sbin/groupdel boinc
-
-  echo '>>> If you really do not want to run Boinc in the future, you may completely remove the directory "/var/lib/boinc".'
-}

Copied: boinc/repos/community-testing-x86_64/boinc.install (from rev 82834, boinc/trunk/boinc.install)
===================================================================
--- community-testing-x86_64/boinc.install	                        (rev 0)
+++ community-testing-x86_64/boinc.install	2013-01-24 16:47:45 UTC (rev 82835)
@@ -0,0 +1,23 @@
+# arg 1:  the new package version
+post_install() {
+  /usr/sbin/groupadd boinc 2>/dev/null || true
+  /usr/sbin/useradd -s /bin/bash -g boinc -d /var/lib/boinc boinc 2>/dev/null || true
+
+  if [ ! -d /var/lib/boinc ]; then
+    install -d /var/lib/boinc
+  fi
+  chown -R boinc:boinc /var/lib/boinc
+
+  echo '>>> Client RPC password can be found in /var/lib/boinc/gui_rpc_auth.cfg'
+  echo '>>> (this file is generated after first run of /etc/rc.d/boinc start).'
+  echo '>>> Remove it from gui_rpc_auth.cfg if you do not want to use password.'
+  echo '>>> See more details on the Arch Linux BOINC wiki page.'
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /usr/sbin/userdel boinc
+  /usr/sbin/groupdel boinc
+
+  echo '>>> If you really do not want to run Boinc in the future, you may completely remove the directory "/var/lib/boinc".'
+}

Deleted: community-testing-x86_64/boinc.rc
===================================================================
--- community-testing-x86_64/boinc.rc	2013-01-24 16:39:36 UTC (rev 82834)
+++ community-testing-x86_64/boinc.rc	2013-01-24 16:47:45 UTC (rev 82835)
@@ -1,52 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-
-BOINCUSER="boinc"
-BOINCDIR="/var/lib/boinc"
-PID=`pidof -o %PPID /usr/bin/boinc_client`
-case "$1" in
-  attach)
-    echo "Enter the Project URL: "
-    read url
-    echo "Enter your Account Key: "
-    read key
-    echo "Attaching to project"
-    cd $BOINCDIR
-    su $BOINCUSER -c "boinccmd --project_attach $url $key"
-;;
-  start)
-    stat_busy "Starting boinc"
-    if [ -z "$PID" ]; then
-      su $BOINCUSER -c "nice -n 19 /usr/bin/boinc_client --daemon --dir ${BOINCDIR} --redirectio"
-    else
-      false
-    fi
-    if [ $? -gt 0 ]; then
-      stat_fail
-    else
-      add_daemon boinc
-      stat_done
-    fi
-    ;;
-  stop)
-    stat_busy "Stopping boinc"
-    [ ! -z "$PID" ] && kill $PID &> /dev/null
-    if [ $? -gt 0 ]; then
-      stat_fail
-    else
-      rm_daemon boinc
-      stat_done
-    fi
-    ;;
-  restart)
-    $0 stop
-    sleep 2
-    $0 start
-    ;;
-  *)
-    echo "usage: $0 {attach|start|stop|restart}"
-esac
-exit 0

Copied: boinc/repos/community-testing-x86_64/boinc.rc (from rev 82834, boinc/trunk/boinc.rc)
===================================================================
--- community-testing-x86_64/boinc.rc	                        (rev 0)
+++ community-testing-x86_64/boinc.rc	2013-01-24 16:47:45 UTC (rev 82835)
@@ -0,0 +1,52 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+
+BOINCUSER="boinc"
+BOINCDIR="/var/lib/boinc"
+PID=`pidof -o %PPID /usr/bin/boinc_client`
+case "$1" in
+  attach)
+    echo "Enter the Project URL: "
+    read url
+    echo "Enter your Account Key: "
+    read key
+    echo "Attaching to project"
+    cd $BOINCDIR
+    su $BOINCUSER -c "boinccmd --project_attach $url $key"
+;;
+  start)
+    stat_busy "Starting boinc"
+    if [ -z "$PID" ]; then
+      su $BOINCUSER -c "nice -n 19 /usr/bin/boinc_client --daemon --dir ${BOINCDIR} --redirectio"
+    else
+      false
+    fi
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      add_daemon boinc
+      stat_done
+    fi
+    ;;
+  stop)
+    stat_busy "Stopping boinc"
+    [ ! -z "$PID" ] && kill $PID &> /dev/null
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      rm_daemon boinc
+      stat_done
+    fi
+    ;;
+  restart)
+    $0 stop
+    sleep 2
+    $0 start
+    ;;
+  *)
+    echo "usage: $0 {attach|start|stop|restart}"
+esac
+exit 0

Deleted: community-testing-x86_64/boinc.service
===================================================================
--- community-testing-x86_64/boinc.service	2013-01-24 16:39:36 UTC (rev 82834)
+++ community-testing-x86_64/boinc.service	2013-01-24 16:47:45 UTC (rev 82835)
@@ -1,10 +0,0 @@
-[Unit]
-Description=BOINC Daemon
-
-[Service]
-User=boinc
-Nice=19
-ExecStart=/usr/bin/boinc_client --dir /var/lib/boinc --redirectio
-
-[Install]
-WantedBy=multi-user.target

Copied: boinc/repos/community-testing-x86_64/boinc.service (from rev 82834, boinc/trunk/boinc.service)
===================================================================
--- community-testing-x86_64/boinc.service	                        (rev 0)
+++ community-testing-x86_64/boinc.service	2013-01-24 16:47:45 UTC (rev 82835)
@@ -0,0 +1,10 @@
+[Unit]
+Description=BOINC Daemon
+
+[Service]
+User=boinc
+Nice=19
+ExecStart=/usr/bin/boinc_client --dir /var/lib/boinc --redirectio
+
+[Install]
+WantedBy=multi-user.target




More information about the arch-commits mailing list