[package] update netstat-nat to 1.4.9 (#5713)
[openwrt/svn-archive/archive.git] / net / netstat-nat / 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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=netstat-nat
11 PKG_VERSION:=1.4.9
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://tweegy.nl/download
16 PKG_MD5SUM:=45e8d0f47623f619c22a6b894cd03cbc
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/netstat-nat
21 SECTION:=net
22 CATEGORY:=Network
23 TITLE:=A netstat variant for NAT connections
24 URL:=http://tweegy.nl/projects/netstat-nat/
25 endef
26
27 define Package/netstat-nat/description
28 Netstat-nat is a small program written in C.
29 It displays NAT connections, managed by netfilter/iptables which comes
30 with the > 2.4.x linux kernels.
31 The program reads its information from '/proc/net/ip_conntrack', which
32 is the temporary conntrack-storage of netfilter.
33 endef
34
35 # uses GNU configure
36
37 define Build/Compile
38 $(MAKE) -C $(PKG_BUILD_DIR) \
39 DESTDIR="$(PKG_INSTALL_DIR)" \
40 all install
41 endef
42
43 define Package/netstat-nat/install
44 $(INSTALL_DIR) $(1)/usr/bin
45 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/netstat-nat $(1)/usr/bin/
46 endef
47
48 $(eval $(call BuildPackage,netstat-nat))