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