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