wok view boinc/receipt @ rev 21394

updated lxsession (0.4.6.1 -> 0.5.4)
author Hans-G?nter Theisgen
date Mon Apr 22 17:12:31 2019 +0100 (2019-04-22)
parents a78610b2eb47
children 21797bd5599c
line source
1 # SliTaz package receipt.
3 PACKAGE="boinc"
4 VERSION="6.10.58"
5 CATEGORY="network"
6 SHORT_DESC="Open-source software for volunteer computing and grid computing."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://boinc.berkeley.edu/"
11 WGET_URL="svn|https://boinc.berkeley.edu/svn/tags/boinc_core_release_${VERSION//./_}"
13 # The init script requires bash.
14 DEPENDS="openssl libcurl wxWidgets28 libnotify bash"
15 BUILD_DEPENDS="subversion openssl-dev autoconf automake curl-dev libidn-dev \
16 wxWidgets28-dev libnotify-dev sqlite-dev file"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 sed -i 's/AC_PROG_CPP/&\nAC_PROG_OBJCXX/' configure.ac
22 automake --add-missing
23 ./_autosetup
24 ./configure \
25 --disable-server \
26 --enable-unicode \
27 --enable-optimize \
28 $CONFIGURE_ARGS &&
29 make
30 for i in locale/*/*.mo; do
31 [ -s $(dirname $i)/$(basename ${i%mo})po ] &&
32 rm $i && msgfmt -o $i $(dirname $i)/$(basename ${i%mo})po
33 done
34 make install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p \
41 $fs/usr/lib \
42 $fs/var/lib/boinc \
43 $fs/usr/share/pixmaps
44 cp -a $install/etc $fs
45 chmod 0644 $fs/etc/boinc-client.conf
46 cp -a $install/usr/bin $fs/usr
47 cp -a $install/usr/lib/*.so* $fs/usr/lib
48 cp $install/usr/share/boinc/boincmgr.48x48.png \
49 $fs/usr/share/pixmaps/boincmgr.png
50 rm $fs/etc/init.d/boinc-client
51 cp $stuff/boinc-client $fs/etc/init.d/boinc-client
52 }
54 post_install()
55 {
56 echo
57 # Check if boinc user already exists
58 if grep -q ^${BOINCUSER}: "$1/etc/passwd"; then
59 chroot "$1/" adduser -g "BOINC User" -h /var/lib/boinc -s /bin/bash -S -H -D boinc
60 else
61 # In case boinc was previously installed:
62 chroot "$1/" chown -R boinc /var/lib/boinc
63 fi
65 echo 'Start the boinc client with "# /etc/init.d/boinc-client start"'
66 }
68 post_remove()
69 {
70 echo
71 echo -n "Delete user boinc and /var/lib/boinc (yes/No) ? : "
72 read -t 30 answer
73 if [ "$answer" = "yes" ]; then
74 chroot "$1/" deluser boinc
75 rm -r "$1/var/lib/boinc"
76 else
77 echo ""
78 echo "Leaving user boinc and /var/lib/boinc"
79 fi
80 }