wok-4.x rev 11974
boinc: edit init script
author | Samuel Trassare <samuel_trassare@yahoo.com> |
---|---|
date | Fri Mar 02 11:53:04 2012 -0800 (2012-03-02) |
parents | 65b49d06c6b1 |
children | af8ffb10039b |
files | boinc/receipt boinc/stuff/applications/boincmgr.desktop osmo/stuff/osmo.desktop |
line diff
1.1 --- a/boinc/receipt Thu Mar 01 22:08:36 2012 +0100 1.2 +++ b/boinc/receipt Fri Mar 02 11:53:04 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 }
2.1 --- a/boinc/stuff/applications/boincmgr.desktop Thu Mar 01 22:08:36 2012 +0100 2.2 +++ b/boinc/stuff/applications/boincmgr.desktop Fri Mar 02 11:53:04 2012 -0800 2.3 @@ -1,7 +1,7 @@ 2.4 [Desktop Entry] 2.5 Encoding=UTF-8 2.6 Name=BOINC Manager 2.7 -Exec=subox boincmgr -e /usr/bin -d /var/lib/boinc 2.8 +Exec=subox boincmgr --clientdir=/usr/bin --datadir=/var/lib/boinc 2.9 Icon=boincmgr 2.10 Type=Application 2.11 Categories=System;Application;
3.1 --- a/osmo/stuff/osmo.desktop Thu Mar 01 22:08:36 2012 +0100 3.2 +++ b/osmo/stuff/osmo.desktop Fri Mar 02 11:53:04 2012 -0800 3.3 @@ -4,6 +4,6 @@ 3.4 Name[fr]=Osmo Organisateur 3.5 Name[pt]=Osmo Organizador Pessoal 3.6 Exec=osmo 3.7 -Icon=osmo.png 3.8 +Icon=osmo 3.9 Type=Application 3.10 Categories=Office;