wok-6.x view boinc/receipt @ rev 16672
ARM: remove libxml2-python and volumeicon
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu May 15 19:59:59 2014 +0200 (2014-05-15) |
parents | d727b81b04d6 |
children | dfef8de3d270 |
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 LICENSE="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 file"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 sed -i 's/AC_PROG_CPP/&\nAC_PROG_OBJCXX/' configure.ac
24 automake --add-missing
25 ./_autosetup
26 ./configure \
27 --disable-server \
28 --enable-unicode \
29 --enable-optimize \
30 $CONFIGURE_ARGS &&
31 make && make install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p \
38 $fs/usr/lib \
39 $fs/var/lib/boinc \
40 $fs/usr/share/pixmaps
41 cp -a $install/etc $fs
42 chmod 0644 $fs/etc/boinc-client.conf
43 cp -a $install/usr/bin $fs/usr
44 cp -a $install/usr/lib/*.so* $fs/usr/lib
45 cp $install/usr/share/boinc/boincmgr.48x48.png \
46 $fs/usr/share/pixmaps/boincmgr.png
47 rm $fs/etc/init.d/boinc-client
48 cp $stuff/boinc-client $fs/etc/init.d/boinc-client
49 }
51 post_install()
52 {
53 # Check if boinc user already exists
54 if [ -n "`grep ^${BOINCUSER}: /etc/passwd`" ] ; then
55 adduser -g "BOINC User" -h /var/lib/boinc -s /bin/bash -S -H -D boinc
56 else
57 # In case boinc was previously installed:
58 chown -R boinc /var/lib/boinc
59 fi
61 echo -n "Start the boinc client with \"# /etc/init.d/boinc-client start\""
62 echo ""
63 }
65 post_remove()
66 {
67 echo -n "Delete user boinc and /var/lib/boinc (yes/No) ? : "
68 read -t 30 answer
69 if [ "$answer" == "yes" ]; then
70 deluser boinc
71 rm -r /var/lib/boinc
72 else
73 echo ""
74 echo "Leaving user boinc and /var/lib/boinc"
75 fi
76 }