SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "etherape"

# SliTaz package receipt.

PACKAGE="etherape"
VERSION="0.9.20"
CATEGORY="network"
TAGS="ip monitoring network tcp vlan wlan"
SHORT_DESC="A graphical network monitor and visualization tool."
MAINTAINER="hackdorte@sapo.pt"
LICENSE="GPL2"
WEB_SITE="https://etherape.sourceforge.io"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

SUGGESTED="etherape-lang"
DEPENDS="goocanvas gtk+3 libcrypto libglade libgnome libpcap
    libgnome-keyring libgnomeui libltdl libxml2 libxslt
    util-linux-uuid"
BUILD_DEPENDS="glib-dev glibc-dev gnome-doc-utils-dev goocanvas-dev
    gtk+3-dev itstool libcrypto-dev libglade-dev libgnome-dev
    libgnomeui-dev libpcap-dev libtool libxml2-dev libxslt-dev
    ossp-uuid-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/etherape/files/etherape/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;s|.*/etherape/||;s|/.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    # etherape should work with goocanvas-3.0 as well
    sed -i 's|goocanvas-2.0|goocanvas-3.0|'    configure &&

    ./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 install DESTDIR=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share

    cook_copy_folders    bin
    cp -a $install/usr/share/applications    $fs/usr/share
    cp -a $install/usr/share/etherape    $fs/usr/share
    cp -a $install/usr/share/pixmaps    $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
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)