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:=http://tweegy.demon.nl/download/
17 PKG_MD5SUM:=ccf71a6cbd9a513ea3adec54b54ee770
19 include $(INCLUDE_DIR)/package.mk
21 define Package/netstat-nat
24 TITLE:=A netstat variant for NAT connections
25 URL:=http://tweegy.demon.nl/projects/netstat-nat/
28 define Package/netstat-nat/description
29 Netstat-nat is a small program written in C.
30 It displays NAT connections, managed by netfilter/iptables which comes
31 with the > 2.4.x linux kernels.
32 The program reads its information from '/proc/net/ip_conntrack', which
33 is the temporary conntrack-storage of netfilter.
39 $(MAKE) -C $(PKG_BUILD_DIR) \
40 DESTDIR="$(PKG_INSTALL_DIR)" \
44 define Package/netstat-nat/install
45 $(INSTALL_DIR) $(1)/usr/bin
46 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/netstat-nat $(1)/usr/bin/
49 $(eval $(call BuildPackage,netstat-nat))