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.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://www.linuxkungfu.org
/ipkungfu
16 PKG_MD5SUM
:=89f6bc0df356dd4ee650882c54ec9074
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/ipkungfu
25 TITLE
:=IPKungFu is an iptables-based Linux firewall
26 URL
:=http
://www.linuxkungfu.org
/
31 define Package
/ipkungfu
/description
32 IPKungFu is an iptables-based Linux firewall.
33 It aims to simplify the configuration of Internet
34 connection sharing
, port forwarding
, and packet filtering.
37 define Package
/ipkungfu
/conffiles
38 /etc
/ipkungfu
/accept_hosts.conf
39 /etc
/ipkungfu
/custom.conf
40 /etc
/ipkungfu
/forward.conf
41 /etc
/ipkungfu
/log.conf
42 /etc
/ipkungfu
/pre.conf
43 /etc
/ipkungfu
/services.conf
44 /etc
/ipkungfu
/advanced.conf
45 /etc
/ipkungfu
/deny_hosts.conf
46 /etc
/ipkungfu
/ipkungfu.conf
47 /etc
/ipkungfu
/post.conf
48 /etc
/ipkungfu
/redirect.conf
49 /etc
/ipkungfu
/vhosts.conf
52 define Package
/ipkungfu
/postrm
54 rm -rf
/etc
/ipkungfu
/cache
55 rmdir
/etc
/ipkungfu
2>/dev
/null || true
60 ac_cv_path_IPTABLES
="/usr/sbin/iptables" \
61 ac_cv_path_MD5SUM
="/usr/bin/md5sum" \
62 ac_cv_path_MODPROBE
="/sbin/insmod" \
63 ac_cv_path_RMMOD
="/sbin/rmmode" \
64 ac_cv_path_DEPMOD
="/bin/true" \
65 ac_cv_path_LSMOD
="/sbin/lsmod" \
66 ac_cv_path_CUT
="/usr/bincut" \
67 ac_cv_path_TR
="/usr/bintr" \
68 ac_cv_path_GREP
="/bin/grep" \
69 ac_cv_path_SED
="/bin/sed" \
70 ac_cv_path_AWK
="/usr/bin/awk" \
72 define Package
/ipkungfu
/install
73 $(INSTALL_DIR
) $(1)/usr
/sbin
74 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/dummy_server
$(1)/usr
/sbin
/
75 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ipkungfu
$(1)/usr
/sbin
/
76 $(INSTALL_DIR
) $(1)/etc
/ipkungfu
/
77 $(CP
) $(PKG_BUILD_DIR
)/files
/conf
/* $(1)/etc
/ipkungfu
/
80 $(eval
$(call BuildPackage
,ipkungfu
))