[packages] add hiawatha web server (closes: #4356, thanks to Raphael Huck)
[openwrt/svn-archive/archive.git] / net / conntrack-tools / Makefile
1 #
2 # Copyright (C) 2009 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:=conntrack-tools
12 PKG_VERSION:=0.9.10
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://www.netfilter.org/projects/conntrack-tools/files/
17 PKG_MD5SUM:=cd46ed2d5cd4797add0cd444a209c1e7
18
19 PKG_FIXUP:=libtool
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/conntrack-tools
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=+libnetfilter-conntrack
27 TITLE:=Connection tracking userspace tools
28 URL:=http://conntrack-tools.netfilter.org/
29 endef
30
31 define Package/conntrack-tools/description
32 The conntrack-tools are a set of free software userspace tools for Linux
33 that allow system administrators interact with the Connection Tracking
34 System, which is the module that provides stateful packet inspection for
35 iptables. The conntrack-tools are the userspace daemon conntrackd and the
36 command line interface conntrack.
37 endef
38
39 define Package/conntrack-tools/conffiles
40 /etc/conntrackd/conntrackd.conf
41 endef
42
43
44 # uses GNU configure
45
46 define Build/Compile
47 $(MAKE) -C $(PKG_BUILD_DIR) \
48 DESTDIR="$(PKG_INSTALL_DIR)" \
49 all install
50 endef
51
52 define Package/conntrack-tools/install
53 $(INSTALL_DIR) $(1)/etc/conntrackd
54 $(CP) \
55 $(PKG_BUILD_DIR)/doc/stats/conntrackd.conf \
56 $(1)/etc/conntrackd
57 $(INSTALL_DIR) $(1)/usr/sbin
58 $(CP) \
59 $(PKG_INSTALL_DIR)/usr/sbin/conntrack \
60 $(PKG_INSTALL_DIR)/usr/sbin/conntrackd \
61 $(1)/usr/sbin/
62 endef
63
64 $(eval $(call BuildPackage,conntrack-tools))