wok-current view boinc/receipt @ rev 24009
linux-zram: typo (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 29 17:07:10 2021 +0000 (2021-01-29) |
parents | 02c70d036ea0 |
children | 5ea0ce1cecc0 |
line source
1 # SliTaz package receipt.
3 PACKAGE="boinc"
4 VERSION="7.16.3"
5 CATEGORY="network"
6 SHORT_DESC="Open-source software for volunteer computing and grid computing."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://boinc.berkeley.edu/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/BOINC/$PACKAGE/archive/client_release/${VERSION%.*}/$VERSION.tar.gz"
14 # The init script requires bash.
15 DEPENDS="bash libcurl libnotify openssl wxWidgets"
16 BUILD_DEPENDS="autoconf automake curl-dev file libidn-dev
17 libnotify-dev libtool openssl-dev sqlite-dev wxWidgets-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 sed -i 's/AC_PROG_CPP/&\nAC_PROG_OBJCXX/' configure.ac
24 # automake --add-missing
26 ./_autosetup &&
27 ./configure \
28 --disable-server \
29 --enable-unicode \
30 --enable-optimize \
31 $CONFIGURE_ARGS &&
32 make &&
33 for i in locale/*/*.mo
34 do
35 [ -s $(dirname $i)/$(basename ${i%mo})po ] &&
36 rm $i && msgfmt -o $i $(dirname $i)/$(basename ${i%mo})po
37 done &&
38 make install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p \
45 $fs/usr/lib \
46 $fs/var/lib/boinc \
47 $fs/usr/share/pixmaps
49 cp -a $install/usr/etc $fs
50 chmod 0644 $fs/etc/boinc-client.conf
51 cp -a $install/usr/bin $fs/usr
52 cp -a $install/usr/lib/*.so* $fs/usr/lib
53 cp $src/packages/generic/sea/boincmgr.48x48.png \
54 $fs/usr/share/pixmaps/boincmgr.png
55 rm $fs/etc/init.d/boinc-client
56 cp $stuff/boinc-client $fs/etc/init.d/boinc-client
57 }
59 post_install()
60 {
61 echo
62 # Check if boinc user already exists
63 if grep -q ^${BOINCUSER}: "$1/etc/passwd"
64 then
65 chroot "$1/" adduser -g "BOINC User" -h /var/lib/boinc -s /bin/bash -S -H -D boinc
66 else
67 # In case boinc was previously installed:
68 chroot "$1/" chown -R boinc /var/lib/boinc
69 fi
71 echo 'Start the boinc client with "# /etc/init.d/boinc-client start"'
72 }
74 post_remove()
75 {
76 echo
77 echo -n "Delete user boinc and /var/lib/boinc (yes/No) ? : "
78 read -t 30 answer
79 if [ "$answer" = "yes" ]
80 then
81 chroot "$1/" deluser boinc
82 rm -r "$1/var/lib/boinc"
83 else
84 echo ""
85 echo "Leaving user boinc and /var/lib/boinc"
86 fi
87 }