wok annotate jnettop/receipt @ rev 24789

grep: add post_install (install)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 21 09:36:52 2022 +0000 (2022-03-21)
parents e3f377fbc5f0
children 00e3b45c063b
rev   line source
pascal@11223 1 # SliTaz package receipt.
pascal@11223 2
pascal@11223 3 PACKAGE="jnettop"
pascal@11223 4 VERSION="0.13.0"
pascal@11223 5 CATEGORY="network"
pascal@11223 6 SHORT_DESC="Network online traffic visualizer."
pascal@11223 7 MAINTAINER="paul@slitaz.org"
pascal@15002 8 LICENSE="GPL2"
pascal@11223 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20673 10 WEB_SITE="https://web.archive.org/web/20161127214942/http://jnettop.kubs.info/wiki/"
pascal@11223 11 WGET_URL="http://jnettop.kubs.info/dist/$TARBALL"
pascal@11223 12
pascal@15002 13 DEPENDS="ncurses libpcap libdb"
pascal@15002 14 BUILD_DEPENDS="ncurses-dev libpcap-dev pkg-config glib-dev"
pascal@15002 15
pascal@24545 16 # What is the latest version available today?
pascal@24545 17 current_version()
pascal@24545 18 {
pascal@24545 19 wget -O - https://sourceforge.net/projects/jnettop/files/jnettop/ 2>/dev/null | \
pascal@24545 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24545 21 sed '/scope="row/!d;/tar.gz/!d;s|.*/jnettop-||;s|.tar.*||;q'
pascal@24545 22 }
pascal@24545 23
pascal@11223 24 # Rules to configure and make the package.
pascal@11223 25 compile_rules()
pascal@11223 26 {
pascal@17628 27 export LDFLAGS="$LDFLAGS -ltinfo"
pascal@11223 28 ./configure \
pascal@11223 29 --prefix=/usr \
pascal@11223 30 --infodir=/usr/share/info \
pascal@11223 31 --mandir=/usr/share/man \
pascal@11223 32 $CONFIGURE_ARGS &&
pascal@15002 33 make && make DESTDIR=$DESTDIR install
pascal@11223 34 }
pascal@11223 35
pascal@11223 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11223 37 genpkg_rules()
pascal@11223 38 {
pascal@11223 39 mkdir -p $fs/usr/share $fs/root
pascal@15002 40 cp -a $install/usr/bin $fs/usr
pascal@15002 41 cp -a $install/usr/share/jnettop $fs/usr/share
pascal@11223 42 # config file
pascal@11223 43 cp -a $src/.jnettop $fs/root/.jnettop
pascal@11223 44 }