wok-4.x diff boinc/receipt @ rev 11982
no extensions in desktop files
author | Samuel Trassare <samuel_trassare@yahoo.com> |
---|---|
date | Fri Mar 02 15:57:49 2012 -0800 (2012-03-02) |
parents | ae02cb50791b |
children |
line diff
1.1 --- a/boinc/receipt Thu Feb 23 13:32:06 2012 -0800 1.2 +++ b/boinc/receipt Fri Mar 02 15:57:49 2012 -0800 1.3 @@ -9,9 +9,9 @@ 1.4 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.5 WEB_SITE="http://boinc.berkeley.edu/" 1.6 WGET_URL="svn|http://boinc.berkeley.edu/svn/tags/boinc_core_release_${SVN_TAG}" 1.7 - 1.8 -DEPENDS="openssl libcurl wxWidgets libnotify" 1.9 -BUILD_DEPENDS="subversion openssl-dev autoconf automake curl-dev \ 1.10 +# The init script requires bash. 1.11 +DEPENDS="openssl libcurl wxWidgets libnotify bash" 1.12 +BUILD_DEPENDS="subversion openssl-dev autoconf automake curl-dev libidn-dev \ 1.13 wxWidgets-dev libnotify-dev" 1.14 1.15 # Rules to configure and make the package. 1.16 @@ -40,14 +40,33 @@ 1.17 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib 1.18 cp $_pkg/usr/share/boinc/boincmgr.48x48.png \ 1.19 $fs/usr/share/pixmaps/boincmgr.png 1.20 + rm $fs/etc/init.d/boinc-client 1.21 + cp $stuff/boinc-client $fs/etc/init.d/boinc-client 1.22 } 1.23 1.24 post_install() 1.25 { 1.26 - adduser -g "BOINC User" -h /var/lib/boinc -s /bin/false -S -H -D boinc 1.27 + # Check if boinc user already exists 1.28 + if [ -n "`grep ^${BOINCUSER}: /etc/passwd`" ] ; then 1.29 + adduser -g "BOINC User" -h /var/lib/boinc -s /bin/bash -S -H -D boinc 1.30 + else 1.31 + # In case boinc was previously installed: 1.32 + chown -R boinc /var/lib/boinc 1.33 + fi 1.34 + 1.35 + echo -n "Start the boinc client with \"# /etc/init.d/boinc-client start\"" 1.36 + echo "" 1.37 } 1.38 1.39 post_remove() 1.40 { 1.41 - deluser boinc 1.42 + echo -n "Delete user boinc and /var/lib/boinc (yes/No) ? : " 1.43 + read -t 30 answer 1.44 + if [ "$answer" == "yes" ]; then 1.45 + deluser boinc 1.46 + rm -r /var/lib/boinc 1.47 + else 1.48 + echo "" 1.49 + echo "Leaving user boinc and /var/lib/boinc" 1.50 + fi 1.51 }