Update ipkungfu to 0.6.1 (#3626)
[openwrt/svn-archive/archive.git] / net / ipkungfu / 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:=ipkungfu
12 PKG_VERSION:=0.6.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.linuxkungfu.org/ipkungfu
17 PKG_MD5SUM:=89f6bc0df356dd4ee650882c54ec9074
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/ipkungfu
22 SECTION:=net
23 CATEGORY:=Network
24 TITLE:=IPKungFu is an iptables-based Linux firewall
25 URL:=http://www.linuxkungfu.org/
26 SUBMENU:=firewall
27 endef
28
29 define Package/ipkungfu/description
30 IPKungFu is an iptables-based Linux firewall.
31 It aims to simplify the configuration of Internet
32 connection sharing, port forwarding, and packet filtering.
33 endef
34
35 define Package/ipkungfu/conffiles
36 /etc/ipkungfu/accept_hosts.conf
37 /etc/ipkungfu/custom.conf
38 /etc/ipkungfu/forward.conf
39 /etc/ipkungfu/log.conf
40 /etc/ipkungfu/pre.conf
41 /etc/ipkungfu/services.conf
42 /etc/ipkungfu/advanced.conf
43 /etc/ipkungfu/deny_hosts.conf
44 /etc/ipkungfu/ipkungfu.conf
45 /etc/ipkungfu/post.conf
46 /etc/ipkungfu/redirect.conf
47 /etc/ipkungfu/vhosts.conf
48 endef
49
50 # uses GNU configure
51
52 define Build/Compile
53 $(MAKE) -C $(PKG_BUILD_DIR) \
54 DESTDIR="$(PKG_INSTALL_DIR)" \
55 all install
56 endef
57
58 define Package/ipkungfu/install
59 $(INSTALL_DIR) $(1)/usr/sbin
60 $(CP) $(PKG_BUILD_DIR)/dummy_server $(1)/usr/sbin/
61 $(CP) $(PKG_BUILD_DIR)/ipkungfu $(1)/usr/sbin/
62 $(INSTALL_DIR) $(1)/etc/ipkungfu/
63 $(CP) $(PKG_BUILD_DIR)/files/conf/* $(1)/etc/ipkungfu/
64 endef
65
66 $(eval $(call BuildPackage,ipkungfu))