massive Makefile cleanup, add missing 'svn:keywords' property
[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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=ipkungfu
12 PKG_VERSION:=0.6.0
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.linuxkungfu.org/ipkungfu
17 PKG_MD5SUM:=a65b5e629a7e9ef00aaf20587d918e5f
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/ipkungfu
26 SECTION:=net
27 CATEGORY:=Network
28 TITLE:=IPKungFu is an iptables-based Linux firewall
29 DESCRIPTION:=\
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
34 endef
35
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
49 endef
50
51 # uses GNU configure
52
53 define Build/Compile
54 $(MAKE) -C $(PKG_BUILD_DIR) \
55 DESTDIR="$(PKG_INSTALL_DIR)" \
56 all install
57 endef
58
59 define Package/ipkungfu/install
60 install -d -m0755 $(1)/usr/sbin
61 $(CP) $(PKG_BUILD_DIR)/dummy_server $(1)/usr/sbin/
62 $(CP) $(PKG_BUILD_DIR)/ipkungfu $(1)/usr/sbin/
63 install -d -m0755 $(1)/etc/ipkungfu/
64 $(CP) $(PKG_BUILD_DIR)/files/conf/* $(1)/etc/ipkungfu/
65 endef
66
67 $(eval $(call BuildPackage,ipkungfu))