wok-6.x annotate boinc/receipt @ rev 18944
Up: vlc (2.2.1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 03 16:53:03 2016 +0100 (2016-03-03) |
parents | affba9aecc73 |
children | 8e17dd3d81ee |
rev | line source |
---|---|
pankso@9330 | 1 # SliTaz package receipt. |
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" |
pankso@9330 | 7 SHORT_DESC="Open-source software for volunteer computing and grid computing." |
pankso@9330 | 8 MAINTAINER="pankso@slitaz.org" |
pascal@15201 | 9 LICENSE="GPL3" |
pankso@9800 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@9800 | 11 WEB_SITE="http://boinc.berkeley.edu/" |
pankso@9800 | 12 WGET_URL="svn|http://boinc.berkeley.edu/svn/tags/boinc_core_release_${SVN_TAG}" |
pascal@14999 | 13 |
samuel_trassare@11974 | 14 # The init script requires bash. |
al@18521 | 15 DEPENDS="openssl libcurl wxWidgets28 libnotify bash" |
samuel_trassare@11974 | 16 BUILD_DEPENDS="subversion openssl-dev autoconf automake curl-dev libidn-dev \ |
al@18521 | 17 wxWidgets28-dev libnotify-dev sqlite-dev file" |
pankso@9330 | 18 |
pankso@9330 | 19 # Rules to configure and make the package. |
pankso@9330 | 20 compile_rules() |
pankso@9330 | 21 { |
pascal@15332 | 22 sed -i 's/AC_PROG_CPP/&\nAC_PROG_OBJCXX/' configure.ac |
pascal@15333 | 23 automake --add-missing |
pankso@9330 | 24 ./_autosetup |
pankso@9330 | 25 ./configure \ |
pankso@9330 | 26 --disable-server \ |
pankso@9330 | 27 --enable-unicode \ |
gokhlayeh@11573 | 28 --enable-optimize \ |
gokhlayeh@11573 | 29 $CONFIGURE_ARGS && |
pankso@9330 | 30 make && make install |
pankso@9330 | 31 } |
pankso@9330 | 32 |
pankso@9330 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@9330 | 34 genpkg_rules() |
pankso@9330 | 35 { |
pankso@9330 | 36 mkdir -p \ |
pankso@9330 | 37 $fs/usr/lib \ |
pankso@9330 | 38 $fs/var/lib/boinc \ |
pankso@9330 | 39 $fs/usr/share/pixmaps |
pascal@14999 | 40 cp -a $install/etc $fs |
pankso@9330 | 41 chmod 0644 $fs/etc/boinc-client.conf |
pascal@14999 | 42 cp -a $install/usr/bin $fs/usr |
pascal@14999 | 43 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@14999 | 44 cp $install/usr/share/boinc/boincmgr.48x48.png \ |
pankso@9330 | 45 $fs/usr/share/pixmaps/boincmgr.png |
samuel_trassare@11974 | 46 rm $fs/etc/init.d/boinc-client |
samuel_trassare@11974 | 47 cp $stuff/boinc-client $fs/etc/init.d/boinc-client |
pankso@9330 | 48 } |
pankso@9330 | 49 |
pankso@9330 | 50 post_install() |
pankso@9330 | 51 { |
al@18521 | 52 echo |
samuel_trassare@11974 | 53 # Check if boinc user already exists |
pascal@18730 | 54 if grep -q ^${BOINCUSER}: "$1/etc/passwd"; then |
pascal@17552 | 55 chroot "$1/" adduser -g "BOINC User" -h /var/lib/boinc -s /bin/bash -S -H -D boinc |
samuel_trassare@11974 | 56 else |
samuel_trassare@11974 | 57 # In case boinc was previously installed: |
pascal@17552 | 58 chroot "$1/" chown -R boinc /var/lib/boinc |
al@18521 | 59 fi |
al@18521 | 60 |
al@18521 | 61 echo 'Start the boinc client with "# /etc/init.d/boinc-client start"' |
pankso@9330 | 62 } |
pankso@9330 | 63 |
pankso@9330 | 64 post_remove() |
pankso@9330 | 65 { |
al@18521 | 66 echo |
samuel_trassare@11974 | 67 echo -n "Delete user boinc and /var/lib/boinc (yes/No) ? : " |
samuel_trassare@11974 | 68 read -t 30 answer |
samuel_trassare@11974 | 69 if [ "$answer" == "yes" ]; then |
pascal@17552 | 70 chroot "$1/" deluser boinc |
pascal@18730 | 71 rm -r "$1/var/lib/boinc" |
samuel_trassare@11974 | 72 else |
samuel_trassare@11974 | 73 echo "" |
samuel_trassare@11974 | 74 echo "Leaving user boinc and /var/lib/boinc" |
samuel_trassare@11974 | 75 fi |
pankso@9330 | 76 } |