wok annotate boinc/receipt @ rev 24461

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