2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.linuxkungfu.org/ipkungfu
17 PKG_MD5SUM:=a65b5e629a7e9ef00aaf20587d918e5f
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23 include $(INCLUDE_DIR)/package.mk
25 define Package/ipkungfu
28 TITLE:=IPKungFu is an iptables-based Linux firewall
29 URL:=http://www.linuxkungfu.org/
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.
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
57 $(MAKE) -C $(PKG_BUILD_DIR) \
58 DESTDIR="$(PKG_INSTALL_DIR)" \
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/
70 $(eval $(call BuildPackage,ipkungfu))