2006-10-30 13:51:50 +00:00
|
|
|
#
|
2006-10-19 11:10:43 +00:00
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=ipkungfu
|
2008-07-06 14:14:38 +00:00
|
|
|
PKG_VERSION:=0.6.1
|
2008-08-03 22:25:03 +00:00
|
|
|
PKG_RELEASE:=2
|
2006-10-19 11:10:43 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.linuxkungfu.org/ipkungfu
|
2008-07-06 14:14:38 +00:00
|
|
|
PKG_MD5SUM:=89f6bc0df356dd4ee650882c54ec9074
|
2006-10-19 11:10:43 +00:00
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
2006-10-19 11:10:43 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/ipkungfu
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=IPKungFu is an iptables-based Linux firewall
|
2007-01-08 11:19:08 +00:00
|
|
|
URL:=http://www.linuxkungfu.org/
|
2011-03-12 01:13:55 +00:00
|
|
|
SUBMENU:=Firewall
|
2008-08-03 22:25:03 +00:00
|
|
|
DEPENDS:=+bash
|
2006-10-19 11:10:43 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/ipkungfu/description
|
|
|
|
IPKungFu is an iptables-based Linux firewall.
|
2008-07-06 14:14:38 +00:00
|
|
|
It aims to simplify the configuration of Internet
|
2007-10-14 04:32:56 +00:00
|
|
|
connection sharing, port forwarding, and packet filtering.
|
|
|
|
endef
|
|
|
|
|
2006-10-19 11:10:43 +00:00
|
|
|
define Package/ipkungfu/conffiles
|
|
|
|
/etc/ipkungfu/accept_hosts.conf
|
|
|
|
/etc/ipkungfu/custom.conf
|
|
|
|
/etc/ipkungfu/forward.conf
|
|
|
|
/etc/ipkungfu/log.conf
|
|
|
|
/etc/ipkungfu/pre.conf
|
|
|
|
/etc/ipkungfu/services.conf
|
|
|
|
/etc/ipkungfu/advanced.conf
|
|
|
|
/etc/ipkungfu/deny_hosts.conf
|
|
|
|
/etc/ipkungfu/ipkungfu.conf
|
|
|
|
/etc/ipkungfu/post.conf
|
|
|
|
/etc/ipkungfu/redirect.conf
|
|
|
|
/etc/ipkungfu/vhosts.conf
|
|
|
|
endef
|
|
|
|
|
2008-08-03 22:25:03 +00:00
|
|
|
define Package/ipkungfu/postrm
|
|
|
|
#!/bin/sh
|
|
|
|
rm -rf /etc/ipkungfu/cache
|
|
|
|
rmdir /etc/ipkungfu 2>/dev/null || true
|
|
|
|
endef
|
|
|
|
|
2006-10-30 13:51:50 +00:00
|
|
|
# uses GNU configure
|
2008-08-03 22:25:03 +00:00
|
|
|
CONFIGURE_VARS+= \
|
|
|
|
ac_cv_path_IPTABLES="/usr/sbin/iptables" \
|
|
|
|
ac_cv_path_MD5SUM="/usr/bin/md5sum" \
|
|
|
|
ac_cv_path_MODPROBE="/sbin/insmod" \
|
|
|
|
ac_cv_path_RMMOD="/sbin/rmmode" \
|
|
|
|
ac_cv_path_DEPMOD="/bin/true" \
|
|
|
|
ac_cv_path_LSMOD="/sbin/lsmod" \
|
|
|
|
ac_cv_path_CUT="/usr/bincut" \
|
|
|
|
ac_cv_path_TR="/usr/bintr" \
|
|
|
|
ac_cv_path_GREP="/bin/grep" \
|
|
|
|
ac_cv_path_SED="/bin/sed" \
|
|
|
|
ac_cv_path_AWK="/usr/bin/awk" \
|
2006-10-19 11:10:43 +00:00
|
|
|
|
2008-08-03 22:25:03 +00:00
|
|
|
define Package/ipkungfu/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2008-08-03 22:25:03 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dummy_server $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ipkungfu $(1)/usr/sbin/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/ipkungfu/
|
2006-10-19 11:10:43 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/files/conf/* $(1)/etc/ipkungfu/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,ipkungfu))
|