wok-next annotate boinc/receipt @ rev 20644
Up clutter-gtk (1.8.4), clutter, add clutter-gst, colord-gtk.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 01 17:41:04 2018 +0300 (2018-05-01) |
parents | 4396aed7eb01 |
children | d5aab818505e |
rev | line source |
---|---|
al@20464 | 1 # SliTaz package receipt v2. |
pankso@9330 | 2 |
pankso@9330 | 3 PACKAGE="boinc" |
pankso@9330 | 4 VERSION="6.10.58" |
samuel_trassare@11777 | 5 SVN_TAG="6_10_58" |
pankso@9330 | 6 CATEGORY="network" |
al@20464 | 7 SHORT_DESC="Open-source software for volunteer computing and grid computing" |
pankso@9330 | 8 MAINTAINER="pankso@slitaz.org" |
pascal@15201 | 9 LICENSE="GPL3" |
al@20464 | 10 WEB_SITE="http://boinc.berkeley.edu/" |
al@20464 | 11 |
pankso@9800 | 12 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@9800 | 13 WGET_URL="svn|http://boinc.berkeley.edu/svn/tags/boinc_core_release_${SVN_TAG}" |
pascal@14999 | 14 |
samuel_trassare@11974 | 15 BUILD_DEPENDS="subversion openssl-dev autoconf automake curl-dev libidn-dev \ |
pascal@20098 | 16 wxWidgets28-dev libnotify-dev sqlite3-dev file" |
al@20464 | 17 SPLIT="boinc-dev" |
pankso@9330 | 18 |
al@20464 | 19 compile_rules() { |
pascal@15332 | 20 sed -i 's/AC_PROG_CPP/&\nAC_PROG_OBJCXX/' configure.ac |
pascal@15333 | 21 automake --add-missing |
pankso@9330 | 22 ./_autosetup |
pankso@9330 | 23 ./configure \ |
pankso@9330 | 24 --disable-server \ |
pankso@9330 | 25 --enable-unicode \ |
gokhlayeh@11573 | 26 --enable-optimize \ |
gokhlayeh@11573 | 27 $CONFIGURE_ARGS && |
al@20569 | 28 fix libtool && |
al@20569 | 29 make && |
al@20569 | 30 make install || return 1 |
al@20569 | 31 |
al@20569 | 32 chmod 0644 $install/etc/boinc-client.conf |
al@20569 | 33 |
al@20569 | 34 install -Dm644 $install/usr/share/boinc/boincmgr.48x48.png \ |
al@20569 | 35 $install/usr/share/pixmaps/boincmgr.png |
al@20569 | 36 |
al@20569 | 37 rm $install/etc/init.d/boinc-client |
al@20569 | 38 install -Dm755 $stuff/boinc-client $install/etc/init.d/boinc-client |
pankso@9330 | 39 } |
pankso@9330 | 40 |
al@20464 | 41 genpkg_rules() { |
al@20464 | 42 case $PACKAGE in |
al@20464 | 43 boinc) |
al@20569 | 44 copy @std |
al@20464 | 45 # The init script requires bash. |
al@20464 | 46 DEPENDS="openssl libcurl wxWidgets28 libnotify bash" |
al@20464 | 47 ;; |
al@20464 | 48 *-dev) |
al@20569 | 49 copy @dev |
al@20464 | 50 ;; |
al@20464 | 51 esac |
pankso@9330 | 52 } |
pankso@9330 | 53 |
al@20464 | 54 post_install_boinc() { |
al@18521 | 55 echo |
samuel_trassare@11974 | 56 # Check if boinc user already exists |
pascal@18730 | 57 if grep -q ^${BOINCUSER}: "$1/etc/passwd"; then |
pascal@17552 | 58 chroot "$1/" adduser -g "BOINC User" -h /var/lib/boinc -s /bin/bash -S -H -D boinc |
samuel_trassare@11974 | 59 else |
samuel_trassare@11974 | 60 # In case boinc was previously installed: |
pascal@17552 | 61 chroot "$1/" chown -R boinc /var/lib/boinc |
al@18521 | 62 fi |
al@18521 | 63 |
al@18521 | 64 echo 'Start the boinc client with "# /etc/init.d/boinc-client start"' |
pankso@9330 | 65 } |
pankso@9330 | 66 |
al@20464 | 67 post_remove_boinc() { |
al@18521 | 68 echo |
samuel_trassare@11974 | 69 echo -n "Delete user boinc and /var/lib/boinc (yes/No) ? : " |
samuel_trassare@11974 | 70 read -t 30 answer |
samuel_trassare@11974 | 71 if [ "$answer" == "yes" ]; then |
pascal@17552 | 72 chroot "$1/" deluser boinc |
pascal@18730 | 73 rm -r "$1/var/lib/boinc" |
samuel_trassare@11974 | 74 else |
samuel_trassare@11974 | 75 echo "" |
samuel_trassare@11974 | 76 echo "Leaving user boinc and /var/lib/boinc" |
samuel_trassare@11974 | 77 fi |
pankso@9330 | 78 } |