wok annotate boinc/receipt @ rev 13556
gtkdialog: up 0.8.2
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Nov 03 04:36:44 2012 +0000 (2012-11-03) |
parents | f72c28df3f6c |
children | 2b9f96603415 |
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" |
pankso@9800 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@9800 | 10 WEB_SITE="http://boinc.berkeley.edu/" |
pankso@9800 | 11 WGET_URL="svn|http://boinc.berkeley.edu/svn/tags/boinc_core_release_${SVN_TAG}" |
samuel_trassare@11974 | 12 # The init script requires bash. |
samuel_trassare@11974 | 13 DEPENDS="openssl libcurl wxWidgets libnotify bash" |
samuel_trassare@11974 | 14 BUILD_DEPENDS="subversion openssl-dev autoconf automake curl-dev libidn-dev \ |
pascal@12401 | 15 wxWidgets-dev libnotify-dev sqlite-dev" |
pankso@9330 | 16 |
pankso@9330 | 17 # Rules to configure and make the package. |
pankso@9330 | 18 compile_rules() |
pankso@9330 | 19 { |
pankso@9330 | 20 cd $src |
pankso@9330 | 21 ./_autosetup |
pankso@9330 | 22 ./configure \ |
pankso@9330 | 23 --disable-server \ |
pankso@9330 | 24 --enable-unicode \ |
gokhlayeh@11573 | 25 --enable-optimize \ |
gokhlayeh@11573 | 26 $CONFIGURE_ARGS && |
pankso@9330 | 27 make && make install |
pankso@9330 | 28 } |
pankso@9330 | 29 |
pankso@9330 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@9330 | 31 genpkg_rules() |
pankso@9330 | 32 { |
pankso@9330 | 33 mkdir -p \ |
pankso@9330 | 34 $fs/usr/lib \ |
pankso@9330 | 35 $fs/var/lib/boinc \ |
pankso@9330 | 36 $fs/usr/share/pixmaps |
pankso@9330 | 37 cp -a $_pkg/etc $fs |
pankso@9330 | 38 chmod 0644 $fs/etc/boinc-client.conf |
pankso@9330 | 39 cp -a $_pkg/usr/bin $fs/usr |
pankso@9330 | 40 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
pankso@9330 | 41 cp $_pkg/usr/share/boinc/boincmgr.48x48.png \ |
pankso@9330 | 42 $fs/usr/share/pixmaps/boincmgr.png |
samuel_trassare@11974 | 43 rm $fs/etc/init.d/boinc-client |
samuel_trassare@11974 | 44 cp $stuff/boinc-client $fs/etc/init.d/boinc-client |
pankso@9330 | 45 } |
pankso@9330 | 46 |
pankso@9330 | 47 post_install() |
pankso@9330 | 48 { |
samuel_trassare@11974 | 49 # Check if boinc user already exists |
samuel_trassare@11974 | 50 if [ -n "`grep ^${BOINCUSER}: /etc/passwd`" ] ; then |
samuel_trassare@11974 | 51 adduser -g "BOINC User" -h /var/lib/boinc -s /bin/bash -S -H -D boinc |
samuel_trassare@11974 | 52 else |
samuel_trassare@11974 | 53 # In case boinc was previously installed: |
samuel_trassare@11974 | 54 chown -R boinc /var/lib/boinc |
samuel_trassare@11974 | 55 fi |
samuel_trassare@11974 | 56 |
samuel_trassare@11974 | 57 echo -n "Start the boinc client with \"# /etc/init.d/boinc-client start\"" |
samuel_trassare@11974 | 58 echo "" |
pankso@9330 | 59 } |
pankso@9330 | 60 |
pankso@9330 | 61 post_remove() |
pankso@9330 | 62 { |
samuel_trassare@11974 | 63 echo -n "Delete user boinc and /var/lib/boinc (yes/No) ? : " |
samuel_trassare@11974 | 64 read -t 30 answer |
samuel_trassare@11974 | 65 if [ "$answer" == "yes" ]; then |
samuel_trassare@11974 | 66 deluser boinc |
samuel_trassare@11974 | 67 rm -r /var/lib/boinc |
samuel_trassare@11974 | 68 else |
samuel_trassare@11974 | 69 echo "" |
samuel_trassare@11974 | 70 echo "Leaving user boinc and /var/lib/boinc" |
samuel_trassare@11974 | 71 fi |
pankso@9330 | 72 } |