wok-next view iptraf/receipt @ rev 21208

asterisk: added build dependencies
author Hans-G?nter Theisgen
date Mon Dec 02 10:21:51 2019 +0100 (2019-12-02)
parents f48456621a9d
children 32f49bd14509
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://iptraf.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 $install/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 $install/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 }