wok annotate etherape/receipt @ rev 24713
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 14 18:23:09 2022 +0000 (2022-03-14) |
parents | 640a2eba2511 |
children | aa66605526f6 |
rev | line source |
---|---|
hackdorte@19194 | 1 # SliTaz package receipt. |
hackdorte@19194 | 2 |
hackdorte@19194 | 3 PACKAGE="etherape" |
Hans-G?nter@24519 | 4 VERSION="0.9.20" |
hackdorte@19194 | 5 CATEGORY="network" |
Hans-G?nter@22704 | 6 TAGS="ip monitoring network tcp vlan wlan" |
hackdorte@19194 | 7 SHORT_DESC="A graphical network monitor and visualization tool." |
hackdorte@19194 | 8 MAINTAINER="hackdorte@sapo.pt" |
hackdorte@19194 | 9 LICENSE="GPL2" |
Hans-G?nter@22704 | 10 WEB_SITE="https://etherape.sourceforge.io" |
Hans-G?nter@22704 | 11 |
hackdorte@19194 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
hackdorte@19194 | 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
hackdorte@19194 | 14 |
Hans-G?nter@24519 | 15 SUGGESTED="etherape-lang" |
Hans-G?nter@24519 | 16 DEPENDS="goocanvas gtk+3 libcrypto libglade libgnome libpcap |
Hans-G?nter@24519 | 17 libgnome-keyring libgnomeui libltdl libxml2 libxslt |
Hans-G?nter@24519 | 18 util-linux-uuid" |
Hans-G?nter@24519 | 19 BUILD_DEPENDS="glib-dev glibc-dev gnome-doc-utils-dev goocanvas-dev |
Hans-G?nter@24519 | 20 gtk+3-dev itstool libcrypto-dev libglade-dev libgnome-dev |
Hans-G?nter@24519 | 21 libgnomeui-dev libpcap-dev libtool libxml2-dev libxslt-dev |
Hans-G?nter@22704 | 22 ossp-uuid-dev" |
hackdorte@19194 | 23 |
pascal@24385 | 24 # What is the latest version available today? |
pascal@24385 | 25 current_version() |
pascal@24385 | 26 { |
pascal@24385 | 27 wget -O - https://sourceforge.net/projects/etherape/files/etherape/ 2>/dev/null | \ |
pascal@24385 | 28 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24385 | 29 sed '/scope="row/!d;s|.*/etherape/||;s|/.*||;q' |
pascal@24385 | 30 } |
pascal@24385 | 31 |
hackdorte@19194 | 32 # Rules to configure and make the package. |
hackdorte@19194 | 33 compile_rules() |
hackdorte@19194 | 34 { |
Hans-G?nter@22704 | 35 ./configure \ |
Hans-G?nter@22704 | 36 --prefix=/usr \ |
Hans-G?nter@22704 | 37 --libdir=/usr/lib \ |
Hans-G?nter@22704 | 38 --sysconfdir=/etc \ |
Hans-G?nter@22704 | 39 --localstatedir=/var/state/$PACKAGE-$VERSION \ |
Hans-G?nter@22704 | 40 --mandir=/usr/share/man \ |
Hans-G?nter@22704 | 41 --docdir=/usr/share/doc/$PACKAGE-$VERSION \ |
Hans-G?nter@22704 | 42 --build=$ARCH-slitaz-linux \ |
Hans-G?nter@22704 | 43 --disable-scrollkeeper |
Hans-G?nter@22704 | 44 make && |
Hans-G?nter@24519 | 45 make install DESTDIR=$DESTDIR |
hackdorte@19194 | 46 } |
hackdorte@19194 | 47 |
hackdorte@19194 | 48 # Rules to gen a SliTaz package suitable for Tazpkg. |
hackdorte@19194 | 49 genpkg_rules() |
hackdorte@19194 | 50 { |
Hans-G?nter@22704 | 51 mkdir -p $fs/usr/share |
hackdorte@19194 | 52 |
Hans-G?nter@24519 | 53 cook_copy_folders bin |
Hans-G?nter@24519 | 54 cp -a $install/usr/share/applications $fs/usr/share |
Hans-G?nter@24519 | 55 cp -a $install/usr/share/etherape $fs/usr/share |
Hans-G?nter@24519 | 56 cp -a $install/usr/share/pixmaps $fs/usr/share |
hackdorte@19194 | 57 } |
hackdorte@19194 | 58 |
hackdorte@19194 | 59 post_install() |
hackdorte@19194 | 60 { |
Hans-G?nter@22704 | 61 # The SliTaz use Tazbox. |
Hans-G?nter@24519 | 62 sed -i 's|^Exec=.*|Exec=tazbox su dbus-launch etherape|' \ |
Hans-G?nter@22704 | 63 $1/usr/share/applications/etherape.desktop |
hackdorte@19194 | 64 } |