Add ipkungfu (#510)
[openwrt/svn-archive/archive.git] / net / ipkungfu / Makefile
1 # Copyright (C) 2006 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5 #
6 # $Id: $
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ipkungfu
11 PKG_VERSION:=0.6.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_URL:=http://www.linuxkungfu.org/ipkungfu
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_MD5SUM:=a65b5e629a7e9ef00aaf20587d918e5f
17 PKG_CAT:=zcat
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/ipkungfu
24 SECTION:=net
25 CATEGORY:=Network
26 TITLE:=IPKungFu is an iptables-based Linux firewall
27 DESCRIPTION:=\
28 IPKungFu is an iptables-based Linux firewall.\\\
29 It aims to simplify the configuration of Internet\\\
30 connection sharing, port forwarding, and packet filtering.
31 URL:=http://www.linuxkungfu.org
32 endef
33
34 define Package/ipkungfu/conffiles
35 /etc/ipkungfu/accept_hosts.conf
36 /etc/ipkungfu/custom.conf
37 /etc/ipkungfu/forward.conf
38 /etc/ipkungfu/log.conf
39 /etc/ipkungfu/pre.conf
40 /etc/ipkungfu/services.conf
41 /etc/ipkungfu/advanced.conf
42 /etc/ipkungfu/deny_hosts.conf
43 /etc/ipkungfu/ipkungfu.conf
44 /etc/ipkungfu/post.conf
45 /etc/ipkungfu/redirect.conf
46 /etc/ipkungfu/vhosts.conf
47 endef
48
49 define Build/Configure
50 $(call Build/Configure/Default)
51 endef
52
53 define Build/Compile
54 $(call Build/Compile/Default,all)
55 endef
56
57 define Package/ipkungfu/install
58 mkdir -p $(1)/usr/sbin $(1)/etc/ipkungfu/
59 $(CP) $(PKG_BUILD_DIR)/dummy_server $(1)/usr/sbin
60 install -m0755 $(PKG_BUILD_DIR)/ipkungfu $(1)/usr/sbin/
61 $(CP) $(PKG_BUILD_DIR)/files/conf/* $(1)/etc/ipkungfu/
62 endef
63
64 $(eval $(call BuildPackage,ipkungfu))