DESCRIPTION:= is obselete
[openwrt/svn-archive/archive.git] / net / iptraf / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=iptraf
12 PKG_VERSION:=3.0.0
13 PKG_RELEASE:=1
14
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
19 PKG_CAT:=zcat
20
21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/iptraf
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+libncurses
29 TITLE:=A console-based network monitoring program
30 URL:=http://iptraf.seul.org/
31 endef
32
33 define Package/iptraf/description
34 IPTraf is a console-based network statistics utility for Linux. It gathers
35 a variety of figures such as TCP connection packet and byte counts,
36 interface statistics and activity indicators, TCP/UDP traffic breakdowns,
37 and LAN station packet and byte counts.
38 endef
39
40 define Build/Compile
41 $(MAKE) -C $(PKG_BUILD_DIR)/src \
42 $(TARGET_CONFIGURE_OPTS) \
43 CFLAGS="$(TARGET_CFLAGS)" \
44 DEBUG="" \
45 INCLUDEDIR="-I../support -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
46 LDOPTS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
47 PLATFORM="-DPLATFORM=\\\"Linux/$(ARCH)\\\"" \
48 TARGET="/usr/bin" \
49 WORKDIR="/var/lib/iptraf" \
50 all
51 endef
52
53 define Package/iptraf/install
54 $(INSTALL_DIR) $(1)/usr/bin
55 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/iptraf $(1)/usr/bin/
56 $(INSTALL_DIR) $(1)/var/lib/iptraf/
57 echo "$(PKG_VERSION)" > $(1)/var/lib/iptraf/version
58 $(INSTALL_DIR) $(1)/var/log/iptraf $(1)/var/run/iptraf
59 endef
60
61 $(eval $(call BuildPackage,iptraf))