wok-next view iptraf/receipt @ rev 21315
updated iptraf (3.0.0 -> 3.0.1)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Dec 10 16:53:07 2019 +0100 (2019-12-10) |
parents | d5aab818505e |
children | a25d9e7fb5d1 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="iptraf"
4 VERSION="3.0.1"
5 CATEGORY="network"
6 SHORT_DESC="IP Network Monitoring Software"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://iptraf.seul.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="ftp://iptraf.seul.org/pub/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="glibc-dev ncurses-dev"
16 compile_rules()
17 {
18 cd $src/src
19 mkdir -p $install/usr/bin 2> /dev/null
20 sed -i 's/ARPHRD_PPP:$/& case ARPHRD_NONE:/' packet.c
21 sed -i 's|/local/|/|' Makefile
23 make clean &&
24 make &&
25 cp rvnamed rawtime iptraf $install/usr/bin
26 }
28 genpkg_rules()
29 {
30 mkdir -p $fs/var/iptraf
31 mkdir -p $fs/var/log/iptraf
33 cp -a $install/* $fs
35 DEPENDS="ncurses"
36 CONFIG_FILES="/var/iptraf/iptraf.cfg"
37 }
39 post_install()
40 {
41 mkdir -p "$1/var/run/iptraf"
42 }
44 post_remove()
45 {
46 rm -r "$1/var/run/iptraf"
47 }