wok-current view boinc/receipt @ rev 15187
slitaz-base-files: up 5.4.2
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Aug 24 15:12:52 2013 +0300 (2013-08-24) |
parents | 76ebba84ee21 |
children | f4c22f009037 |
line source
1 # SliTaz package receipt.
3 PACKAGE="boinc"
4 VERSION="6.10.58"
5 SVN_TAG="6_10_58"
6 CATEGORY="network"
7 SHORT_DESC="Open-source software for volunteer computing and grid computing."
8 MAINTAINER="pankso@slitaz.org"
9 LICENCE="GPL3"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://boinc.berkeley.edu/"
12 WGET_URL="svn|http://boinc.berkeley.edu/svn/tags/boinc_core_release_${SVN_TAG}"
14 # The init script requires bash.
15 DEPENDS="openssl libcurl wxWidgets libnotify bash"
16 BUILD_DEPENDS="subversion openssl-dev autoconf automake curl-dev libidn-dev \
17 wxWidgets-dev libnotify-dev sqlite-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 ./_autosetup
24 ./configure \
25 --disable-server \
26 --enable-unicode \
27 --enable-optimize \
28 $CONFIGURE_ARGS &&
29 make && make install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p \
36 $fs/usr/lib \
37 $fs/var/lib/boinc \
38 $fs/usr/share/pixmaps
39 cp -a $install/etc $fs
40 chmod 0644 $fs/etc/boinc-client.conf
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/usr/lib/*.so* $fs/usr/lib
43 cp $install/usr/share/boinc/boincmgr.48x48.png \
44 $fs/usr/share/pixmaps/boincmgr.png
45 rm $fs/etc/init.d/boinc-client
46 cp $stuff/boinc-client $fs/etc/init.d/boinc-client
47 }
49 post_install()
50 {
51 # Check if boinc user already exists
52 if [ -n "`grep ^${BOINCUSER}: /etc/passwd`" ] ; then
53 adduser -g "BOINC User" -h /var/lib/boinc -s /bin/bash -S -H -D boinc
54 else
55 # In case boinc was previously installed:
56 chown -R boinc /var/lib/boinc
57 fi
59 echo -n "Start the boinc client with \"# /etc/init.d/boinc-client start\""
60 echo ""
61 }
63 post_remove()
64 {
65 echo -n "Delete user boinc and /var/lib/boinc (yes/No) ? : "
66 read -t 30 answer
67 if [ "$answer" == "yes" ]; then
68 deluser boinc
69 rm -r /var/lib/boinc
70 else
71 echo ""
72 echo "Leaving user boinc and /var/lib/boinc"
73 fi
74 }