wok-current annotate trafshow/receipt @ rev 25601

use gcc49-lib-base for openldap-dev
author Stanislas Leduc <shann@slitaz.org>
date Fri Sep 01 12:04:33 2023 +0000 (16 months ago)
parents bd7510903310
children
rev   line source
pascal@14377 1 # SliTaz package receipt.
pascal@14377 2
pascal@14377 3 PACKAGE="trafshow"
pascal@14377 4 VERSION="5.2.3"
pascal@14377 5 CATEGORY="network"
pascal@14377 6 SHORT_DESC="Full screen network traffic monitor."
pascal@14377 7 MAINTAINER="paul@slitaz.org"
pascal@15601 8 LICENSE="BSD"
pascal@14377 9 TARBALL="$PACKAGE-$VERSION.tgz"
pascal@20679 10 WEB_SITE="https://web.archive.org/web/20130707021442/soft.risp.ru/trafshow/index_en.shtml"
pascal@25073 11 WGET_URL="https://fossies.org/linux/misc/old/$TARBALL"
pascal@14377 12
pascal@15601 13 DEPENDS="ncurses libpcap"
pascal@15601 14 BUILD_DEPENDS="ncurses-dev libpcap-dev"
pascal@15601 15
pascal@24713 16 # What is the latest version available today?
pascal@24713 17 current_version()
pascal@24713 18 {
pascal@24713 19 wget -O - https://fossies.org/linux/misc/old/ 2>/dev/null | \
pascal@24713 20 sed '/trafshow-/!d;s|.*trafshow-||;s|.t.*||;q'
pascal@24713 21 }
pascal@24713 22
pascal@14377 23 # Rules to configure and make the package.
pascal@14377 24 compile_rules()
pascal@14377 25 {
pascal@17672 26 export LDFLAGS="$LDFLAGS -ltinfo"
pascal@14377 27
pascal@14377 28 # fix session.c bug
pascal@14377 29 sed -i '43d' session.c
pascal@14377 30
pascal@24890 31 # libpcap 1.10 has its own pcap_init
pascal@24890 32 sed -i 's|pcap_init|&2|' trafshow.c
pascal@24890 33
pascal@14377 34 ./configure \
pascal@14377 35 --prefix=/usr \
pascal@14377 36 $CONFIGURE_ARGS && make
pascal@14377 37 }
pascal@14377 38
pascal@14377 39 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@14377 40 genpkg_rules()
pascal@14377 41 {
pascal@14377 42 mkdir -p $fs/usr/bin $fs/etc
pascal@14377 43 cp -a $src/$PACKAGE $fs/usr/bin
pascal@14377 44 cp -a $src/.trafshow $fs/etc/trafshow
pascal@14377 45
pascal@14377 46 # tidy config file and change perms
pascal@14377 47 chown root:root $fs/etc/trafshow
pascal@14377 48 sed -i 's|*/icmp|#*/icmp|' $fs/etc/trafshow
pascal@14377 49 sed -i 's|nfs|#nfs|' $fs/etc/trafshow
pascal@14377 50 sed -i 's|513|#513|' $fs/etc/trafshow
pascal@14377 51 sed -i 's|514|#514|' $fs/etc/trafshow
pascal@14377 52 }