wok-next annotate iptraf/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents f48456621a9d
children 32f49bd14509
rev   line source
al@21017 1 # SliTaz package receipt v2.
pascal@10906 2
pascal@10906 3 PACKAGE="iptraf"
pascal@10906 4 VERSION="3.0.0"
pascal@10906 5 CATEGORY="network"
al@21017 6 SHORT_DESC="IP Network Monitoring Software"
pascal@10906 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15600 8 LICENSE="GPL2"
al@21020 9 WEB_SITE="http://iptraf.seul.org/"
al@21017 10
pascal@10906 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@21017 12 WGET_URL="ftp://iptraf.seul.org/pub/$PACKAGE/$TARBALL"
pascal@15600 13
pascal@10906 14 BUILD_DEPENDS="ncurses-dev"
pascal@10906 15
al@21017 16 compile_rules() {
pascal@10906 17 cd $src/src
al@21020 18 mkdir -p $install/usr/bin 2> /dev/null
pascal@10906 19 sed -i 's/ARPHRD_PPP:$/& case ARPHRD_NONE:/' packet.c
pascal@10906 20 sed -i 's|/local/|/|' Makefile
al@21017 21
pascal@10906 22 make clean &&
pascal@10906 23 make &&
al@21020 24 cp rvnamed rawtime iptraf $install/usr/bin
pascal@10906 25 }
pascal@10906 26
al@21017 27 genpkg_rules() {
al@18943 28 mkdir -p $fs/var/iptraf $fs/var/log/iptraf
mojo@14993 29 cp -a $install/* $fs
al@21017 30 DEPENDS="ncurses"
al@21017 31 CONFIG_FILES="/var/iptraf/iptraf.cfg"
pascal@10906 32 }
al@18943 33
al@21017 34 post_install() {
al@18943 35 mkdir -p "$1/var/run/iptraf"
al@18943 36 }
al@18943 37
al@21017 38 post_remove() {
al@18943 39 rm -r "$1/var/run/iptraf"
al@18943 40 }