[packages_10.03.1] collectd: backport r29404
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ipkungfu
11 PKG_VERSION:=0.6.1
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.linuxkungfu.org/ipkungfu
16 PKG_MD5SUM:=89f6bc0df356dd4ee650882c54ec9074
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/ipkungfu
23 SECTION:=net
24 CATEGORY:=Network
25 TITLE:=IPKungFu is an iptables-based Linux firewall
26 URL:=http://www.linuxkungfu.org/
27 SUBMENU:=Firewall
28 DEPENDS:=+bash
29 endef
30
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.
35 endef
36
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
50 endef
51
52 define Package/ipkungfu/postrm
53 #!/bin/sh
54 rm -rf /etc/ipkungfu/cache
55 rmdir /etc/ipkungfu 2>/dev/null || true
56 endef
57
58 # uses GNU configure
59 CONFIGURE_VARS+= \
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" \
71
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/
78 endef
79
80 $(eval $(call BuildPackage,ipkungfu))