wok view iptraf/receipt @ rev 22404
updated grub2 packages (2.02 -> 2.04)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Dec 09 16:05:14 2019 +0100 (2019-12-09) |
parents | 3705d68ed8f3 |
children | af8d823a3077 |
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|linux/if_tr|netinet/if_tr|' tcptable.h *.c
22 sed -i 's|uname -m|echo i486|' Makefile
23 sed -i 's/lncurses/& -ltinfo/' Makefile
24 mkdir -p $DESTDIR/usr/bin 2> /dev/null
25 sed -i 's/ARPHRD_PPP:$/& case ARPHRD_NONE:/' packet.c
26 sed -i 's|/local/|/|' Makefile
27 make clean &&
28 make &&
29 cp rvnamed rawtime iptraf $DESTDIR/usr/bin
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/var/iptraf $fs/var/log/iptraf
36 cp -a $install/* $fs
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 }