wok annotate boinc/receipt @ rev 22255

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