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