# SliTaz package receipt. PACKAGE="boinc" VERSION="6.10.58" SVN_TAG="6_10_58" CATEGORY="network" SHORT_DESC="Open-source software for volunteer computing and grid computing." MAINTAINER="pankso@slitaz.org" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="http://boinc.berkeley.edu/" WGET_URL="svn|http://boinc.berkeley.edu/svn/tags/boinc_core_release_${SVN_TAG}" # The init script requires bash. DEPENDS="openssl libcurl wxWidgets libnotify bash" BUILD_DEPENDS="subversion openssl-dev autoconf automake curl-dev libidn-dev \ wxWidgets-dev libnotify-dev" # Rules to configure and make the package. compile_rules() { cd $src ./_autosetup ./configure \ --disable-server \ --enable-unicode \ --enable-optimize \ $CONFIGURE_ARGS && make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p \ $fs/usr/lib \ $fs/var/lib/boinc \ $fs/usr/share/pixmaps cp -a $_pkg/etc $fs chmod 0644 $fs/etc/boinc-client.conf cp -a $_pkg/usr/bin $fs/usr cp -a $_pkg/usr/lib/*.so* $fs/usr/lib cp $_pkg/usr/share/boinc/boincmgr.48x48.png \ $fs/usr/share/pixmaps/boincmgr.png rm $fs/etc/init.d/boinc-client cp $stuff/boinc-client $fs/etc/init.d/boinc-client } post_install() { # Check if boinc user already exists if [ -n "`grep ^${BOINCUSER}: /etc/passwd`" ] ; then adduser -g "BOINC User" -h /var/lib/boinc -s /bin/bash -S -H -D boinc else # In case boinc was previously installed: chown -R boinc /var/lib/boinc fi echo -n "Start the boinc client with \"# /etc/init.d/boinc-client start\"" echo "" } post_remove() { echo -n "Delete user boinc and /var/lib/boinc (yes/No) ? : " read -t 30 answer if [ "$answer" == "yes" ]; then deluser boinc rm -r /var/lib/boinc else echo "" echo "Leaving user boinc and /var/lib/boinc" fi }