Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=b1acdeab283f813c13dd8c970153719121c9bd29

commit b1acdeab283f813c13dd8c970153719121c9bd29
Author: James Buren <[email protected]>
Date:   Mon Jul 23 00:12:09 2012 -0500

boinc-6.12.34-2-x86_64
* convert to systemd schema

diff --git a/source/network-extra/boinc/FrugalBuild 
b/source/network-extra/boinc/FrugalBuild
index 5d4a695..bcfdd25 100644
--- a/source/network-extra/boinc/FrugalBuild
+++ b/source/network-extra/boinc/FrugalBuild
@@ -3,22 +3,26 @@

pkgname=boinc
pkgver=6.12.34
-pkgrel=1
+pkgrel=2
pkgdesc="Open-source software for volunteer computing and grid computing"
archs=('i686' 'x86_64')
url="http://boinc.berkeley.edu/";
-backup=(etc/boinc-client.conf)
+backup=(etc/sysconfig/boinc-client)
groups=('network-extra')
depends=('curl')
# mirror the source from svn repo because boinc do not provide source file on 
releases
source=(http://ftp.frugalware.org/pub/other/people/elentir/$pkgname/$pkgname-$pkgver.tar.bz2
 \
-        boinc-client.conf \
-        rc.boinc)
+       boinc-client.conf \
+       rc.boinc \
+       boinc.service \
+       fixes.patch)
up2date="lynx -dump http://boinc.berkeley.edu/download.php | grep 
pc-linux-gnu.sh \
| head -1 | sed 's/.*boinc_\(.*\)_.*pc-linux-gnu.sh/\1/'"
sha1sums=('e7332187daa66e1b7f8734117ea76ff14a345afc' \
-          'cdb64cf69fab6533158d8b59ae1f10efedfc5c24' \
-          'fc5a4243255e9ee7b833685220c0e6ac064bce94')
+          'f20cbbe7003da32ca18b34c57b9aefd5e1320051' \
+          'fc5a4243255e9ee7b833685220c0e6ac064bce94' \
+          'cf5725391c837c335d96297451aca02f1197a275' \
+          '5fd029b3f6467c1114336a86b2fcbf60d6f25001')
Fconfopts="$Fconfopts --disable-server --enable-unicode --with-ssl"

subpkgs=('boincmgr')
@@ -31,10 +35,14 @@ _F_desktop_icon="boincmgr.32x32.png"
_F_desktop_exec="/usr/bin/boincmgr -e /var/lib/boinc"
_F_desktop_name="boincmgr"

+_F_sysvinit_units=(boinc)
+_F_systemd_units=(boinc=)
+Finclude systemd
+
build() {
Fbuild
Frm etc/{init.d,sysconfig}
-    Finstall 644 boinc-client.conf etc/
+    Finstall 644 boinc-client.conf etc/sysconfig/boinc-client
Frcd2
Fmkdir var/lib/boinc
Fdirschown var/lib/boinc nobody nogroup
@@ -44,6 +52,8 @@ build() {
Fsplit boincmgr usr/share/boinc
Fsplit boincmgr usr/share/applications
Fsplit boincmgr usr/share/pixmaps
+    Ffile /lib/systemd/system/boinc.service
+    Fgenscriptlet
}

# optimization OK
diff --git a/source/network-extra/boinc/boinc-client.conf 
b/source/network-extra/boinc/boinc-client.conf
index 3dfce12..10fa2c6 100644
--- a/source/network-extra/boinc/boinc-client.conf
+++ b/source/network-extra/boinc/boinc-client.conf
@@ -1,27 +1,6 @@
#
-# Default variable values for the boinc-client /etc/rc.d script
+# Default variable values for the boinc-client systemd service
#

-# The userid under which boinc_client is run
-BOINCUSER=nobody
-
-# The priority (niceness) of the client
-BOINCNICE=19
-
-# The directory in which boinc_client is run
-BOINCDIR=/var/lib/boinc
-
-# BOINC options: for the command line when running the client.
-
-# The default is no options.
+# The default is no options. Run "boinc_client --help" for more options.
BOINCOPTS=""
-# Add this option if you want to allow boinc manager connections from remote
-# machines
-# Be aware that --allow_remote_gui_rpc opens up your machine to the world!
-#BOINCOPTS+=" --allow_remote_gui_rpc "
-# Add this option if you want to redirect logging to the files stderrdae.txt
-# and stdoutdae.txt in BOINCDIR rather than LOGFILE and ERRORLOG
-BOINCOPTS+=" --redirectio "
-# Add this option if you want to run only when no logins from anywhere are
-# active
-#BOINCOPTS+=" --check_all_logins "
diff --git a/source/network-extra/boinc/boinc.service 
b/source/network-extra/boinc/boinc.service
new file mode 100644
index 0000000..4a2f383
--- /dev/null
+++ b/source/network-extra/boinc/boinc.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Boinc Client
+After=network.target
+
+[Service]
+EnvironmentFile=/etc/sysconfig/boinc-client
+User=nobody
+Group=nogroup
+ExecStart=/usr/bin/boinc_client --daemon --dir /var/lib/boinc $BOINCOPTS
+Type=forking
+Nice=20
+
+[Install]
+WantedBy=multi-user.target
diff --git a/source/network-extra/boinc/fixes.patch 
b/source/network-extra/boinc/fixes.patch
new file mode 100644
index 0000000..9a97d6e
--- /dev/null
+++ b/source/network-extra/boinc/fixes.patch
@@ -0,0 +1,13 @@
+diff -ur a/clientgui/gtk/taskbarex.cpp b/clientgui/gtk/taskbarex.cpp
+--- a/clientgui/gtk/taskbarex.cpp      2012-07-22 23:50:13.738921066 -0500
++++ b/clientgui/gtk/taskbarex.cpp      2012-07-22 23:51:17.424346623 -0500
+@@ -25,8 +25,7 @@
+ #include <libnotify/notify.h>
+ #endif
+
+-#include <glib/gtypes.h>
+-#include <glib-object.h>
++#include <glib.h>
+
+ #include "BOINCGUIApp.h"
+ #include "gtk/taskbarex.h"
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to