wok-current view iptraf/receipt @ rev 18937
iptraf, iptraf-ng: add missing dirs, specify config_files
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Mar 01 13:06:45 2016 +0200 (2016-03-01) |
parents | c7c3567bd8d4 |
children | dab2061f6f23 |
line source
1 # SliTaz package receipt.
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 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://$PACKAGE.seul.org/"
11 WGET_URL="ftp://$PACKAGE.seul.org/pub/$PACKAGE/$TARBALL"
12 CONFIG_FILES="/var/iptraf/iptraf.cfg"
14 DEPENDS="ncurses"
15 BUILD_DEPENDS="ncurses-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src/src
21 sed -i 's/lncurses/& -ltinfo/' Makefile
22 mkdir -p $DESTDIR/usr/bin 2> /dev/null
23 sed -i 's/ARPHRD_PPP:$/& case ARPHRD_NONE:/' packet.c
24 sed -i 's|/local/|/|' Makefile
25 make clean &&
26 make &&
27 cp rvnamed rawtime iptraf $DESTDIR/usr/bin
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/var/iptraf $fs/var/log/iptraf $fs/var/run/iptraf
34 cp -a $install/* $fs
35 }