wok-current view boinc/receipt @ rev 13581

Autofs: copy content to proper paths
author Claudinei Pereira <claudinei@slitaz.org>
date Tue Nov 06 01:33:15 2012 -0200 (2012-11-06)
parents f72c28df3f6c
children 2b9f96603415
line source
1 # SliTaz package receipt.
3 PACKAGE="boinc"
4 VERSION="6.10.58"
5 SVN_TAG="6_10_58"
6 CATEGORY="network"
7 SHORT_DESC="Open-source software for volunteer computing and grid computing."
8 MAINTAINER="pankso@slitaz.org"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://boinc.berkeley.edu/"
11 WGET_URL="svn|http://boinc.berkeley.edu/svn/tags/boinc_core_release_${SVN_TAG}"
12 # The init script requires bash.
13 DEPENDS="openssl libcurl wxWidgets libnotify bash"
14 BUILD_DEPENDS="subversion openssl-dev autoconf automake curl-dev libidn-dev \
15 wxWidgets-dev libnotify-dev sqlite-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./_autosetup
22 ./configure \
23 --disable-server \
24 --enable-unicode \
25 --enable-optimize \
26 $CONFIGURE_ARGS &&
27 make && make install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p \
34 $fs/usr/lib \
35 $fs/var/lib/boinc \
36 $fs/usr/share/pixmaps
37 cp -a $_pkg/etc $fs
38 chmod 0644 $fs/etc/boinc-client.conf
39 cp -a $_pkg/usr/bin $fs/usr
40 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
41 cp $_pkg/usr/share/boinc/boincmgr.48x48.png \
42 $fs/usr/share/pixmaps/boincmgr.png
43 rm $fs/etc/init.d/boinc-client
44 cp $stuff/boinc-client $fs/etc/init.d/boinc-client
45 }
47 post_install()
48 {
49 # Check if boinc user already exists
50 if [ -n "`grep ^${BOINCUSER}: /etc/passwd`" ] ; then
51 adduser -g "BOINC User" -h /var/lib/boinc -s /bin/bash -S -H -D boinc
52 else
53 # In case boinc was previously installed:
54 chown -R boinc /var/lib/boinc
55 fi
57 echo -n "Start the boinc client with \"# /etc/init.d/boinc-client start\""
58 echo ""
59 }
61 post_remove()
62 {
63 echo -n "Delete user boinc and /var/lib/boinc (yes/No) ? : "
64 read -t 30 answer
65 if [ "$answer" == "yes" ]; then
66 deluser boinc
67 rm -r /var/lib/boinc
68 else
69 echo ""
70 echo "Leaving user boinc and /var/lib/boinc"
71 fi
72 }