wok-next view boinc/receipt @ rev 20567

xfe: update receipt; qt5: undo `fix math`
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Apr 11 01:07:35 2018 +0300 (2018-04-11)
parents 2809ecb8c754
children 835b3b8ce6ac
line source
1 # SliTaz package receipt v2.
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 WEB_SITE="http://boinc.berkeley.edu/"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="svn|http://boinc.berkeley.edu/svn/tags/boinc_core_release_${SVN_TAG}"
15 BUILD_DEPENDS="subversion openssl-dev autoconf automake curl-dev libidn-dev \
16 wxWidgets28-dev libnotify-dev sqlite3-dev file"
17 SPLIT="boinc-dev"
19 compile_rules() {
20 sed -i 's/AC_PROG_CPP/&\nAC_PROG_OBJCXX/' configure.ac
21 automake --add-missing
22 ./_autosetup
23 ./configure \
24 --disable-server \
25 --enable-unicode \
26 --enable-optimize \
27 $CONFIGURE_ARGS &&
28 make && make install
29 }
31 genpkg_rules() {
32 case $PACKAGE in
33 boinc)
34 mkdir -p \
35 $fs/usr/lib \
36 $fs/var/lib/boinc \
37 $fs/usr/share/pixmaps
38 cp -a $install/etc $fs
39 chmod 0644 $fs/etc/boinc-client.conf
40 cp -a $install/usr/bin $fs/usr
41 cp -a $install/usr/lib/*.so* $fs/usr/lib
42 cp $install/usr/share/boinc/boincmgr.48x48.png \
43 $fs/usr/share/pixmaps/boincmgr.png
44 rm $fs/etc/init.d/boinc-client
45 cp $stuff/boinc-client $fs/etc/init.d/boinc-client
46 # The init script requires bash.
47 DEPENDS="openssl libcurl wxWidgets28 libnotify bash"
48 ;;
49 *-dev)
50 mkdir -p $fs/usr/lib
51 cp -a $install/usr/include $fs/usr
52 cp -a $install/usr/lib/*.*a $fs/usr/lib
53 ;;
54 esac
55 }
57 post_install_boinc() {
58 echo
59 # Check if boinc user already exists
60 if grep -q ^${BOINCUSER}: "$1/etc/passwd"; then
61 chroot "$1/" adduser -g "BOINC User" -h /var/lib/boinc -s /bin/bash -S -H -D boinc
62 else
63 # In case boinc was previously installed:
64 chroot "$1/" chown -R boinc /var/lib/boinc
65 fi
67 echo 'Start the boinc client with "# /etc/init.d/boinc-client start"'
68 }
70 post_remove_boinc() {
71 echo
72 echo -n "Delete user boinc and /var/lib/boinc (yes/No) ? : "
73 read -t 30 answer
74 if [ "$answer" == "yes" ]; then
75 chroot "$1/" deluser boinc
76 rm -r "$1/var/lib/boinc"
77 else
78 echo ""
79 echo "Leaving user boinc and /var/lib/boinc"
80 fi
81 }