wok annotate etherape/receipt @ rev 25459
cookutils: rework umount_aufs()
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 27 16:54:01 2022 +0000 (2022-09-27) |
parents | 69a08b0214f3 |
children | 6b33f9da53d4 |
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@24754 | 35 # etherape should work with goocanvas-3.0 as well |
Hans-G?nter@24754 | 36 sed -i 's|goocanvas-2.0|goocanvas-3.0|' configure && |
Hans-G?nter@24754 | 37 |
Hans-G?nter@22704 | 38 ./configure \ |
Hans-G?nter@22704 | 39 --prefix=/usr \ |
Hans-G?nter@22704 | 40 --libdir=/usr/lib \ |
Hans-G?nter@22704 | 41 --sysconfdir=/etc \ |
Hans-G?nter@22704 | 42 --localstatedir=/var/state/$PACKAGE-$VERSION \ |
Hans-G?nter@22704 | 43 --mandir=/usr/share/man \ |
Hans-G?nter@22704 | 44 --docdir=/usr/share/doc/$PACKAGE-$VERSION \ |
Hans-G?nter@22704 | 45 --build=$ARCH-slitaz-linux \ |
Hans-G?nter@22704 | 46 --disable-scrollkeeper |
Hans-G?nter@22704 | 47 make && |
Hans-G?nter@24519 | 48 make install DESTDIR=$DESTDIR |
hackdorte@19194 | 49 } |
hackdorte@19194 | 50 |
hackdorte@19194 | 51 # Rules to gen a SliTaz package suitable for Tazpkg. |
hackdorte@19194 | 52 genpkg_rules() |
hackdorte@19194 | 53 { |
Hans-G?nter@22704 | 54 mkdir -p $fs/usr/share |
hackdorte@19194 | 55 |
Hans-G?nter@24519 | 56 cook_copy_folders bin |
Hans-G?nter@24519 | 57 cp -a $install/usr/share/applications $fs/usr/share |
Hans-G?nter@24519 | 58 cp -a $install/usr/share/etherape $fs/usr/share |
Hans-G?nter@24519 | 59 cp -a $install/usr/share/pixmaps $fs/usr/share |
hackdorte@19194 | 60 } |
hackdorte@19194 | 61 |
hackdorte@19194 | 62 post_install() |
hackdorte@19194 | 63 { |
Hans-G?nter@22704 | 64 # The SliTaz use Tazbox. |
Hans-G?nter@24519 | 65 sed -i 's|^Exec=.*|Exec=tazbox su dbus-launch etherape|' \ |
Hans-G?nter@22704 | 66 $1/usr/share/applications/etherape.desktop |
hackdorte@19194 | 67 } |