# HG changeset patch
# User Leonardo Laporte <hackdorte@sapo.pt>
# Date 1465214885 10800
# Node ID ead2e76bcde5d791220d9faff9055d8738440231
# Parent  2638f54b93f147191b106f19e49ade12e2c5dc0a
Add: EtherApe. A graphical network monitor for SliTaz.

diff -r 2638f54b93f1 -r ead2e76bcde5 etherape/description.txt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/etherape/description.txt	Mon Jun 06 09:08:05 2016 -0300
@@ -0,0 +1,8 @@
+EtherApe
+
+EtherApe is a graphical network monitor modeled after etherman. Featuring 
+Ethernet, IP, TCP, FDDI, Token Ring and wireless modes, it displays 
+network activity graphically. Hosts and links change in size with traffic. 
+Color coded protocols display.
+
+http://etherape.sourceforge.net
diff -r 2638f54b93f1 -r ead2e76bcde5 etherape/receipt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/etherape/receipt	Mon Jun 06 09:08:05 2016 -0300
@@ -0,0 +1,51 @@
+# SliTaz package receipt.
+
+PACKAGE="etherape"
+VERSION="0.9.14"
+CATEGORY="network"
+SHORT_DESC="A graphical network monitor and visualization tool."
+MAINTAINER="hackdorte@sapo.pt"
+LICENSE="GPL2"
+TARBALL="$PACKAGE-$VERSION.tar.gz"
+WEB_SITE="http://etherape.sourceforge.net"
+WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
+TAGS="ip monitoring network tcp vlan wlan"
+
+DEPENDS="gtk+ libglade libgnome libpcap libgnomeui libtool \
+libcrypto libxslt libgnome-keyring ossp-uuid"
+
+BUILD_DEPENDS="gcc glib-dev glibc-dev libglade-dev libgnome-dev gtk+-dev \
+libgnomeui-dev libpcap-dev gnome-doc-utils-dev libcrypto-dev libxslt-dev \
+ossp-uuid-dev"
+
+# Rules to configure and make the package.
+compile_rules()
+{
+./configure \
+  --prefix=/usr \
+  --libdir=/usr/lib \
+  --sysconfdir=/etc \
+  --localstatedir=/var/state/$PACKAGE-$VERSION \
+  --mandir=/usr/share/man \
+  --docdir=/usr/share/doc/$PACKAGE-$VERSION \
+  --build=$ARCH-slitaz-linux \
+  --disable-scrollkeeper
+  make && make DESTDIR=$DESTDIR install
+}
+
+# Rules to gen a SliTaz package suitable for Tazpkg.
+genpkg_rules()
+{
+  mkdir -p $fs/usr/bin
+  cp -a $install/usr/bin/* $fs/usr/bin
+
+  mkdir -p $fs/usr/share
+  cp -a $install/usr/share/* $fs/usr/share
+}
+
+post_install() 
+{
+  # The SliTaz use Tazbox.
+  sed -i 's/^Exec=.*/Exec=tazbox su dbus-launch etherape/' \
+  $1/usr/share/applications/etherape.desktop
+}