wok-next view iptraf/receipt @ rev 21017

Some maintenance
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 16 16:46:05 2018 +0300 (2018-10-16)
parents 466bca9334ef
children d5aab818505e
line source
1 # SliTaz package receipt v2.
3 PACKAGE="iptraf"
4 VERSION="3.0.0"
5 CATEGORY="network"
6 SHORT_DESC="IP Network Monitoring Software"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://$PACKAGE.seul.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="ftp://iptraf.seul.org/pub/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="ncurses-dev"
16 compile_rules() {
17 cd $src/src
18 mkdir -p $DESTDIR/usr/bin 2> /dev/null
19 sed -i 's/ARPHRD_PPP:$/& case ARPHRD_NONE:/' packet.c
20 sed -i 's|/local/|/|' Makefile
22 make clean &&
23 make &&
24 cp rvnamed rawtime iptraf $DESTDIR/usr/bin
25 }
27 genpkg_rules() {
28 mkdir -p $fs/var/iptraf $fs/var/log/iptraf
29 cp -a $install/* $fs
30 DEPENDS="ncurses"
31 CONFIG_FILES="/var/iptraf/iptraf.cfg"
32 }
34 post_install() {
35 mkdir -p "$1/var/run/iptraf"
36 }
38 post_remove() {
39 rm -r "$1/var/run/iptraf"
40 }