wok annotate etherape/receipt @ rev 19644
dev86: update post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jan 21 15:22:15 2017 +0100 (2017-01-21) |
parents | |
children | 174738f4e9f9 |
rev | line source |
---|---|
hackdorte@19194 | 1 # SliTaz package receipt. |
hackdorte@19194 | 2 |
hackdorte@19194 | 3 PACKAGE="etherape" |
hackdorte@19194 | 4 VERSION="0.9.14" |
hackdorte@19194 | 5 CATEGORY="network" |
hackdorte@19194 | 6 SHORT_DESC="A graphical network monitor and visualization tool." |
hackdorte@19194 | 7 MAINTAINER="hackdorte@sapo.pt" |
hackdorte@19194 | 8 LICENSE="GPL2" |
hackdorte@19194 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
hackdorte@19194 | 10 WEB_SITE="http://etherape.sourceforge.net" |
hackdorte@19194 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
hackdorte@19194 | 12 TAGS="ip monitoring network tcp vlan wlan" |
hackdorte@19194 | 13 |
hackdorte@19194 | 14 DEPENDS="gtk+ libglade libgnome libpcap libgnomeui libtool \ |
hackdorte@19194 | 15 libcrypto libxslt libgnome-keyring ossp-uuid" |
hackdorte@19194 | 16 |
hackdorte@19194 | 17 BUILD_DEPENDS="gcc glib-dev glibc-dev libglade-dev libgnome-dev gtk+-dev \ |
hackdorte@19194 | 18 libgnomeui-dev libpcap-dev gnome-doc-utils-dev libcrypto-dev libxslt-dev \ |
hackdorte@19194 | 19 ossp-uuid-dev" |
hackdorte@19194 | 20 |
hackdorte@19194 | 21 # Rules to configure and make the package. |
hackdorte@19194 | 22 compile_rules() |
hackdorte@19194 | 23 { |
hackdorte@19194 | 24 ./configure \ |
hackdorte@19194 | 25 --prefix=/usr \ |
hackdorte@19194 | 26 --libdir=/usr/lib \ |
hackdorte@19194 | 27 --sysconfdir=/etc \ |
hackdorte@19194 | 28 --localstatedir=/var/state/$PACKAGE-$VERSION \ |
hackdorte@19194 | 29 --mandir=/usr/share/man \ |
hackdorte@19194 | 30 --docdir=/usr/share/doc/$PACKAGE-$VERSION \ |
hackdorte@19194 | 31 --build=$ARCH-slitaz-linux \ |
hackdorte@19194 | 32 --disable-scrollkeeper |
hackdorte@19194 | 33 make && make DESTDIR=$DESTDIR install |
hackdorte@19194 | 34 } |
hackdorte@19194 | 35 |
hackdorte@19194 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
hackdorte@19194 | 37 genpkg_rules() |
hackdorte@19194 | 38 { |
hackdorte@19194 | 39 mkdir -p $fs/usr/bin |
hackdorte@19194 | 40 cp -a $install/usr/bin/* $fs/usr/bin |
hackdorte@19194 | 41 |
hackdorte@19194 | 42 mkdir -p $fs/usr/share |
hackdorte@19194 | 43 cp -a $install/usr/share/* $fs/usr/share |
hackdorte@19194 | 44 } |
hackdorte@19194 | 45 |
hackdorte@19194 | 46 post_install() |
hackdorte@19194 | 47 { |
hackdorte@19194 | 48 # The SliTaz use Tazbox. |
hackdorte@19194 | 49 sed -i 's/^Exec=.*/Exec=tazbox su dbus-launch etherape/' \ |
hackdorte@19194 | 50 $1/usr/share/applications/etherape.desktop |
hackdorte@19194 | 51 } |