wok-next view boinc/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents 835b3b8ce6ac
children 21ff09eaddac
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="devel@slitaz.org"
9 LICENSE="GPL3"
10 WEB_SITE="https://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="$PACKAGE-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 fix libtool &&
29 make &&
30 make install || return 1
32 chmod 0644 $install/etc/boinc-client.conf
34 install -Dm644 $install/usr/share/boinc/boincmgr.48x48.png \
35 $install/usr/share/pixmaps/boincmgr.png
37 rm $install/etc/init.d/boinc-client
38 install -Dm755 $stuff/boinc-client $install/etc/init.d/boinc-client
39 }
41 genpkg_rules() {
42 case $PACKAGE in
43 boinc)
44 copy @std
45 # The init script requires bash.
46 DEPENDS="openssl libcurl wxWidgets28 libnotify bash"
47 ;;
48 *-dev)
49 copy @dev
50 ;;
51 esac
52 }
54 post_install_boinc() {
55 echo
56 # Check if boinc user already exists
57 if grep -q "^$BOINCUSER:" "$1/etc/passwd"; then
58 chroot "$1/" adduser -g "BOINC User" -h /var/lib/boinc -s /bin/bash -S -H -D boinc
59 else
60 # In case boinc was previously installed:
61 chroot "$1/" chown -R boinc /var/lib/boinc
62 fi
64 echo 'Start the boinc client with "# /etc/init.d/boinc-client start"'
65 }
67 post_remove_boinc() {
68 echo
69 echo -n "Delete user boinc and /var/lib/boinc (yes/No) ? : "
70 read -t 30 answer
71 if [ "$answer" == "yes" ]; then
72 chroot "$1/" deluser boinc
73 rm -r "$1/var/lib/boinc"
74 else
75 echo ""
76 echo "Leaving user boinc and /var/lib/boinc"
77 fi
78 }