2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=ftp
://iptraf.seul.org
/pub
/iptraf
/ \
17 ftp
://the.wiretapped.net
/pub
/security
/network-monitoring
/iptraf
/
18 PKG_MD5SUM
:=377371c28ee3c21a76f7024920649ea8
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
22 include $(INCLUDE_DIR
)/package.mk
28 TITLE
:=A console-based network monitoring program
29 URL
:=http
://iptraf.seul.org
/
32 define Package
/iptraf
/description
33 IPTraf is a console-based network statistics utility for Linux. It gathers
34 a variety of figures such
as TCP connection packet and byte counts
,
35 interface statistics and activity indicators
, TCP
/UDP traffic breakdowns
,
36 and LAN station packet and byte counts.
40 $(MAKE
) -C
$(PKG_BUILD_DIR
)/src \
41 $(TARGET_CONFIGURE_OPTS
) \
42 CFLAGS
="$(TARGET_CFLAGS)" \
44 INCLUDEDIR
="-I../support -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
45 LDOPTS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
46 PLATFORM
="-DPLATFORM=\\\"Linux/$(ARCH)\\\"" \
48 WORKDIR
="/var/lib/iptraf" \
52 define Package
/iptraf
/install
53 $(INSTALL_DIR
) $(1)/usr
/bin
54 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/iptraf
$(1)/usr
/bin
/
55 $(INSTALL_DIR
) $(1)/var
/lib
/iptraf
/
56 echo
"$(PKG_VERSION)" > $(1)/var
/lib
/iptraf
/version
57 $(INSTALL_DIR
) $(1)/var
/log
/iptraf
$(1)/var
/run
/iptraf
60 $(eval
$(call BuildPackage
,iptraf
))