2 # Copyright (C) 2006-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=ftp
://iptraf.seul.org
/pub
/iptraf
/ \
16 ftp
://the.wiretapped.net
/pub
/security
/network-monitoring
/iptraf
/
17 PKG_MD5SUM
:=004c2c005a1b78739e22bc49d33e244d
19 include $(INCLUDE_DIR
)/package.mk
25 TITLE
:=A console-based network monitoring program
26 URL
:=http
://iptraf.seul.org
/
29 define Package
/iptraf
/description
30 IPTraf is a console-based network statistics utility for Linux. It gathers a
31 variety of figures such
as TCP connection packet and byte counts
, interface
32 statistics and activity indicators
, TCP
/UDP traffic breakdowns
, and LAN
33 station packet and byte counts.
36 define Package
/iptraf
/postinst
38 if
[ -z
"$${IPKG_INSTROOT}" ]; then
39 mkdir
-p
$${IPKG_INSTROOT}/var
/log
/iptraf \
40 $${IPKG_INSTROOT}/var
/run
/iptraf \
41 $${IPKG_INSTROOT}/var
/lib
/iptraf
46 $(MAKE
) -C
$(PKG_BUILD_DIR
)/src \
47 $(TARGET_CONFIGURE_OPTS
) \
48 CFLAGS
="$(TARGET_CFLAGS)" \
50 INCLUDEDIR
="-I../support $(TARGET_CPPFLAGS)" \
51 LDOPTS
="$(TARGET_LDFLAGS)" \
52 PLATFORM
="-DPLATFORM=\\\"Linux/$(ARCH)\\\"" \
54 WORKDIR
="/var/lib/iptraf" \
58 define Package
/iptraf
/install
59 $(INSTALL_DIR
) $(1)/usr
/bin
60 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/iptraf
$(1)/usr
/bin
/
63 $(eval
$(call BuildPackage
,iptraf
))