wok annotate pybootchartgui/receipt @ rev 25064
openvas-libraries, openvas-client: update gnutls calls
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jun 08 16:46:37 2022 +0000 (2022-06-08) |
parents | 1805f71c5d9f |
children | c965782a38e0 |
rev | line source |
---|---|
jozee@3218 | 1 # SliTaz package receipt. |
jozee@3218 | 2 |
jozee@3218 | 3 PACKAGE="pybootchartgui" |
jozee@3218 | 4 VERSION="r124" |
jozee@3218 | 5 CATEGORY="misc" |
jozee@3218 | 6 SHORT_DESC="bootchart GUI in python" |
jozee@3218 | 7 MAINTAINER="jozee@slitaz.org" |
pascal@15376 | 8 LICENSE="GPL3" |
jozee@3218 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20683 | 10 WEB_SITE="https://github.com/kraj/poky/tree/master/scripts/pybootchartgui" |
pascal@24979 | 11 WGET_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/$PACKAGE/$TARBALL" |
jozee@3218 | 12 |
pascal@15376 | 13 DEPENDS="python pygtk bootchart" |
jozee@3218 | 14 |
pascal@24497 | 15 # What is the latest version available today? |
pascal@24497 | 16 current_version() |
pascal@24497 | 17 { |
pascal@24497 | 18 wget -O - https://github.com/kraj/poky/commits/master 2>/dev/null | \ |
pascal@24974 | 19 sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d |
pascal@24497 | 20 } |
pascal@24497 | 21 |
jozee@3218 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@3218 | 23 genpkg_rules() |
jozee@3218 | 24 { |
jozee@3218 | 25 PY_VERSION=`cat /var/lib/tazpkg/installed/python/receipt | grep "VERSION="|cut -d \" -f 2 | cut -d . -f 1,2` |
jozee@3218 | 26 mkdir -p $fs/usr/lib/python$PY_VERSION $fs/usr/bin |
jozee@3218 | 27 cp -a $src/pybootchartgui.py $fs/usr/lib/python$PY_VERSION |
jozee@3218 | 28 cp -a $src/pybootchartgui $fs/usr/lib/python$PY_VERSION |
jozee@3218 | 29 |
jozee@3218 | 30 |
jozee@3218 | 31 } |
jozee@3218 | 32 |
jozee@3218 | 33 post_install() |
jozee@3218 | 34 { |
pascal@18730 | 35 PY_VERSION=$(cat "$1/var/lib/tazpkg/installed/python/receipt" | grep "VERSION="|cut -d \" -f 2 | cut -d . -f 1,2) |
pascal@18730 | 36 if [ -f "$1/usr/bin/pybootchartgui" ] ; then rm "$1/usr/bin/pybootchartgui" ; fi |
pascal@18732 | 37 ln -s /usr/lib/python$PY_VERSION/pybootchartgui.py "$1/usr/bin/pybootchartgui" |
pascal@18730 | 38 if [ -f "$1/etc/bootchartd.conf" ] ; then |
pascal@18730 | 39 sed -i s/'AUTO_RENDER="no"'/'AUTO_RENDER="yes"'/ "$1/etc/bootchartd.conf" |
jozee@4964 | 40 fi |
jozee@3218 | 41 } |
jozee@3218 | 42 |
jozee@3218 | 43 post_remove() |
jozee@3218 | 44 { |
pascal@18730 | 45 rm "$1/usr/bin/pybootchartgui" |
pascal@18730 | 46 if [ -f "$1/etc/bootchartd.conf" ] ; then |
pascal@18730 | 47 sed -i s/'AUTO_RENDER="yes"'/'AUTO_RENDER="no"'/ "$1/etc/bootchartd.conf" |
pascal@18730 | 48 fi |
jozee@3218 | 49 } |