wok-current view boinc/receipt @ rev 24444

updated cups packages (2.3.1 -> 2.4.1)
author Hans-G?nter Theisgen
date Mon Feb 14 10:09:02 2022 +0100 (2022-02-14)
parents 21797bd5599c
children
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 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 sed -i 's/AC_PROG_CPP/&\nAC_PROG_OBJCXX/' configure.ac
30 # automake --add-missing
32 ./_autosetup &&
33 ./configure \
34 --disable-server \
35 --enable-unicode \
36 --enable-optimize \
37 $CONFIGURE_ARGS &&
38 make &&
39 for i in locale/*/*.mo
40 do
41 [ -s $(dirname $i)/$(basename ${i%mo})po ] &&
42 rm $i && msgfmt -o $i $(dirname $i)/$(basename ${i%mo})po
43 done &&
44 make install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p \
51 $fs/usr/lib \
52 $fs/var/lib/boinc \
53 $fs/usr/share/pixmaps
55 cp -a $install/usr/etc $fs
56 chmod 0644 $fs/etc/boinc-client.conf
57 cp -a $install/usr/bin $fs/usr
58 cp -a $install/usr/lib/*.so* $fs/usr/lib
59 cp $src/packages/generic/sea/boincmgr.48x48.png \
60 $fs/usr/share/pixmaps/boincmgr.png
61 rm $fs/etc/init.d/boinc-client
62 cp $stuff/boinc-client $fs/etc/init.d/boinc-client
63 }
65 post_install()
66 {
67 echo
68 # Check if boinc user already exists
69 if grep -q ^${BOINCUSER}: "$1/etc/passwd"
70 then
71 chroot "$1/" adduser -g "BOINC User" -h /var/lib/boinc -s /bin/bash -S -H -D boinc
72 else
73 # In case boinc was previously installed:
74 chroot "$1/" chown -R boinc /var/lib/boinc
75 fi
77 echo 'Start the boinc client with "# /etc/init.d/boinc-client start"'
78 }
80 post_remove()
81 {
82 echo
83 echo -n "Delete user boinc and /var/lib/boinc (yes/No) ? : "
84 read -t 30 answer
85 if [ "$answer" = "yes" ]
86 then
87 chroot "$1/" deluser boinc
88 rm -r "$1/var/lib/boinc"
89 else
90 echo ""
91 echo "Leaving user boinc and /var/lib/boinc"
92 fi
93 }