1 # Copyright (C) 2006 OpenWrt.org
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
13 PKG_MD5SUM:=377371c28ee3c21a76f7024920649ea8
15 PKG_SOURCE_URL:=ftp://iptraf.seul.org/pub/iptraf/ \
16 ftp://the.wiretapped.net/pub/security/network-monitoring/iptraf/
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23 include $(INCLUDE_DIR)/package.mk
29 TITLE:=A console-based network monitoring program
30 DESCRIPTION:=IPTraf is a console-based network statistics utility for Linux. It gathers\\\
31 a variety of figures such as TCP connection packet and byte counts,\\\
32 interface statistics and activity indicators, TCP/UDP traffic breakdowns,\\\
33 and LAN station packet and byte counts.\\\
34 URL:=http://iptraf.seul.org/
39 $(MAKE) -C $(PKG_BUILD_DIR)/src \
40 $(TARGET_CONFIGURE_OPTS) \
41 CFLAGS="$(TARGET_CFLAGS)" \
43 INCLUDEDIR="-I../support -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
44 LDOPTS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
45 PLATFORM="-DPLATFORM=\\\"Linux/$(ARCH)\\\"" \
47 WORKDIR="/var/lib/iptraf" \
51 define Package/iptraf/install
52 install -d -m0755 $(1)/usr/bin \
55 install -m0755 $(PKG_BUILD_DIR)/src/iptraf $(1)/usr/bin/
58 $(eval $(call BuildPackage,iptraf))