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
30 IPKungFu is an iptables-based Linux firewall.
\\\
31 It aims to simplify the configuration of Internet
\\\
32 connection sharing
, port forwarding
, and packet filtering.
33 URL
:=http
://www.linuxkungfu.org
/
36 define Package
/ipkungfu
/conffiles
37 /etc
/ipkungfu
/accept_hosts.conf
38 /etc
/ipkungfu
/custom.conf
39 /etc
/ipkungfu
/forward.conf
40 /etc
/ipkungfu
/log.conf
41 /etc
/ipkungfu
/pre.conf
42 /etc
/ipkungfu
/services.conf
43 /etc
/ipkungfu
/advanced.conf
44 /etc
/ipkungfu
/deny_hosts.conf
45 /etc
/ipkungfu
/ipkungfu.conf
46 /etc
/ipkungfu
/post.conf
47 /etc
/ipkungfu
/redirect.conf
48 /etc
/ipkungfu
/vhosts.conf
54 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
55 DESTDIR
="$(PKG_INSTALL_DIR)" \
59 define Package
/ipkungfu
/install
60 $(INSTALL_DIR
) $(1)/usr
/sbin
61 $(CP
) $(PKG_BUILD_DIR
)/dummy_server
$(1)/usr
/sbin
/
62 $(CP
) $(PKG_BUILD_DIR
)/ipkungfu
$(1)/usr
/sbin
/
63 $(INSTALL_DIR
) $(1)/etc
/ipkungfu
/
64 $(CP
) $(PKG_BUILD_DIR
)/files
/conf
/* $(1)/etc
/ipkungfu
/
67 $(eval
$(call BuildPackage
,ipkungfu
))