wok view boinc/receipt @ rev 18967

Up mapserver (6.4.3)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 11 12:19:47 2016 +0100 (2016-03-11)
parents affba9aecc73
children 8e17dd3d81ee
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 wxWidgets28 libnotify bash"
16 BUILD_DEPENDS="subversion openssl-dev autoconf automake curl-dev libidn-dev \
17 wxWidgets28-dev libnotify-dev sqlite-dev file"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 sed -i 's/AC_PROG_CPP/&\nAC_PROG_OBJCXX/' configure.ac
23 automake --add-missing
24 ./_autosetup
25 ./configure \
26 --disable-server \
27 --enable-unicode \
28 --enable-optimize \
29 $CONFIGURE_ARGS &&
30 make && make install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p \
37 $fs/usr/lib \
38 $fs/var/lib/boinc \
39 $fs/usr/share/pixmaps
40 cp -a $install/etc $fs
41 chmod 0644 $fs/etc/boinc-client.conf
42 cp -a $install/usr/bin $fs/usr
43 cp -a $install/usr/lib/*.so* $fs/usr/lib
44 cp $install/usr/share/boinc/boincmgr.48x48.png \
45 $fs/usr/share/pixmaps/boincmgr.png
46 rm $fs/etc/init.d/boinc-client
47 cp $stuff/boinc-client $fs/etc/init.d/boinc-client
48 }
50 post_install()
51 {
52 echo
53 # Check if boinc user already exists
54 if grep -q ^${BOINCUSER}: "$1/etc/passwd"; then
55 chroot "$1/" 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 chroot "$1/" chown -R boinc /var/lib/boinc
59 fi
61 echo 'Start the boinc client with "# /etc/init.d/boinc-client start"'
62 }
64 post_remove()
65 {
66 echo
67 echo -n "Delete user boinc and /var/lib/boinc (yes/No) ? : "
68 read -t 30 answer
69 if [ "$answer" == "yes" ]; then
70 chroot "$1/" deluser boinc
71 rm -r "$1/var/lib/boinc"
72 else
73 echo ""
74 echo "Leaving user boinc and /var/lib/boinc"
75 fi
76 }