wok-4.x rev 9330

Add boinc (user request)
author Christophe Lincoln <pankso@slitaz.org>
date Fri Mar 18 13:14:14 2011 +0100 (2011-03-18)
parents c2be6df62e6b
children 484050e8db80
files boinc-dev/receipt boinc/receipt boinc/stuff/applications/boincmgr.desktop
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/boinc-dev/receipt	Fri Mar 18 13:14:14 2011 +0100
     1.3 @@ -0,0 +1,18 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="boinc-dev"
     1.7 +VERSION="6.10.58"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="BOINC devel files."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +DEPENDS="boinc"
    1.12 +WANTED="$DEPENDS"
    1.13 +WEB_SITE="http://boinc.berkeley.edu/"
    1.14 +
    1.15 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.16 +genpkg_rules()
    1.17 +{
    1.18 +	mkdir -p $fs/usr/lib
    1.19 +	cp -a $_pkg/usr/include $fs/usr
    1.20 +	cp -a $_pkg/usr/lib/*.*a $fs/usr/lib
    1.21 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/boinc/receipt	Fri Mar 18 13:14:14 2011 +0100
     2.3 @@ -0,0 +1,52 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="boinc"
     2.7 +VERSION="6.10.58"
     2.8 +SVN_TAG="6_10_58"
     2.9 +CATEGORY="network"
    2.10 +SHORT_DESC="Open-source software for volunteer computing and grid computing."
    2.11 +MAINTAINER="pankso@slitaz.org"
    2.12 +DEPENDS="openssl libcurl wxWidgets"
    2.13 +BUILD_DEPENDS="$DEPENDS subversion openssl-dev autoconf automake curl-dev \
    2.14 +wxWidgets-dev"
    2.15 +WEB_SITE="http://boinc.berkeley.edu/"
    2.16 +
    2.17 +# Rules to configure and make the package.
    2.18 +compile_rules()
    2.19 +{
    2.20 +	[ ! -d $PACKAGE-$VERSION ] && svn co \
    2.21 +		http://boinc.berkeley.edu/svn/tags/boinc_core_release_${SVN_TAG} \
    2.22 +		$PACKAGE-$VERSION
    2.23 +	cd $src
    2.24 +	./_autosetup
    2.25 +	./configure \
    2.26 +		--disable-server \
    2.27 +		--enable-unicode \
    2.28 +		--enable-optimize &&
    2.29 +		make && make install
    2.30 +}
    2.31 +
    2.32 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.33 +genpkg_rules()
    2.34 +{
    2.35 +	mkdir -p \
    2.36 +		$fs/usr/lib \
    2.37 +		$fs/var/lib/boinc \
    2.38 +		$fs/usr/share/pixmaps
    2.39 +	cp -a $_pkg/etc $fs
    2.40 +	chmod 0644 $fs/etc/boinc-client.conf
    2.41 +	cp -a $_pkg/usr/bin $fs/usr
    2.42 +	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    2.43 +	cp $_pkg/usr/share/boinc/boincmgr.48x48.png \
    2.44 +		$fs/usr/share/pixmaps/boincmgr.png
    2.45 +}
    2.46 +
    2.47 +post_install()
    2.48 +{
    2.49 +	adduser -g "BOINC User" -h /var/lib/boinc -s /bin/false -S -H -D boinc
    2.50 +}
    2.51 +
    2.52 +post_remove()
    2.53 +{
    2.54 +	deluser boinc
    2.55 +}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/boinc/stuff/applications/boincmgr.desktop	Fri Mar 18 13:14:14 2011 +0100
     3.3 @@ -0,0 +1,7 @@
     3.4 +[Desktop Entry]
     3.5 +Encoding=UTF-8
     3.6 +Name=BOINC Manager
     3.7 +Exec=subox boincmgr -e /usr/bin -d /var/lib/boinc
     3.8 +Icon=boincmgr
     3.9 +Type=Application
    3.10 +Categories=System;Application;