2006-10-28 13:30:56 +00:00
|
|
|
#
|
2006-08-03 09:01:32 +00:00
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=iptraf
|
|
|
|
PKG_VERSION:=3.0.0
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2006-10-28 13:30:56 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-08-03 09:01:32 +00:00
|
|
|
PKG_SOURCE_URL:=ftp://iptraf.seul.org/pub/iptraf/ \
|
|
|
|
ftp://the.wiretapped.net/pub/security/network-monitoring/iptraf/
|
2006-10-28 13:30:56 +00:00
|
|
|
PKG_MD5SUM:=377371c28ee3c21a76f7024920649ea8
|
2006-08-03 09:01:32 +00:00
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/iptraf
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEPENDS:=+libncurses
|
|
|
|
TITLE:=A console-based network monitoring program
|
|
|
|
URL:=http://iptraf.seul.org/
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/iptraf/description
|
|
|
|
IPTraf is a console-based network statistics utility for Linux. It gathers
|
|
|
|
a variety of figures such as TCP connection packet and byte counts,
|
|
|
|
interface statistics and activity indicators, TCP/UDP traffic breakdowns,
|
|
|
|
and LAN station packet and byte counts.
|
|
|
|
endef
|
|
|
|
|
2008-08-14 22:16:22 +00:00
|
|
|
define Package/iptraf/postinst
|
|
|
|
#!/bin/sh
|
|
|
|
if [ -z "$${IPKG_INSTROOT}" ]; then
|
|
|
|
mkdir -p $${IPKG_INSTROOT}/var/log/iptraf $${IPKG_INSTROOT}/var/run/iptraf $${IPKG_INSTROOT}/var/lib/iptraf/
|
|
|
|
fi
|
|
|
|
endef
|
|
|
|
|
2006-08-03 09:01:32 +00:00
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/src \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
DEBUG="" \
|
|
|
|
INCLUDEDIR="-I../support -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
|
|
|
|
LDOPTS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
|
|
|
|
PLATFORM="-DPLATFORM=\\\"Linux/$(ARCH)\\\"" \
|
|
|
|
TARGET="/usr/bin" \
|
|
|
|
WORKDIR="/var/lib/iptraf" \
|
|
|
|
all
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/iptraf/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/iptraf $(1)/usr/bin/
|
2006-08-03 09:01:32 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,iptraf))
|