[PATCH] Shorewall-lite and shorewall6-lite upgraded to 4.4
[openwrt/svn-archive/archive.git] / ipv6 / shorewall6-lite / Makefile
1 #
2 # Copyright (C) 2008 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:=shorewall6-lite
11 PKG_VERSION:=4.4.5.4
12 PKG_DIRECTORY:=4.4.5
13 PKG_RELEASE:=1
14
15 PKG_SOURCE_URL:=http://www.shorewall.net/pub/shorewall/4.4/shorewall-$(PKG_DIRECTORY)/ \
16 http://www1.shorewall.net/pub/shorewall/4.4/shorewall-$(PKG_DIRECTORY)/ \
17 http://slovakia.shorewall.net/pub/shorewall/4.4/shorewall-$(PKG_DIRECTORY)/ \
18 http://shorewall.de/pub/shorewall/4.4/shorewall-$(PKG_DIRECTORY)/ \
19 http://www.shorewall.com.au/4.4/shorewall-$(PKG_DIRECTORY)/ \
20 http://shorewall.infohiiway.com/pub/shorewall/4.4/shorewall-$(PKG_DIRECTORY)/ \
21 http://www.shorewall.com.ar/pub/shorewall/shorewall/4.4/shorewall-$(PKG_DIRECTORY)/
22 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
23 PKG_MD5SUM:=498f622be657df38beec256876adabb6
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/shorewall6-lite
28 SECTION:=ipv6
29 CATEGORY:=IPv6
30 DEPENDS:=+ip +ip6tables +ip6tables-utils
31 TITLE:=Shorewall6 Lite
32 URL:=http://www.shorewall.net/
33 SUBMENU:=firewall
34 endef
35
36 define Package/shorewall6-lite/description
37 Shoreline Firewall 6 Lite is an iptables-based firewall for Linux systems.
38 endef
39
40 define Package/shorewall6-lite/conffiles
41 /etc/shorewall6-lite/shorewall6-lite.conf
42 /etc/shorewall6-lite/vardir
43 endef
44
45 define Build/Compile
46 rm -rf $(PKG_INSTALL_DIR)
47 mkdir -p $(PKG_INSTALL_DIR)
48 PREFIX=$(PKG_INSTALL_DIR) $(PKG_BUILD_DIR)/install.sh
49 endef
50
51 define Package/shorewall6-lite/install
52 $(INSTALL_DIR) $(1)/sbin
53 $(INSTALL_DIR) $(1)/etc/init.d
54 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
55 $(INSTALL_DIR) $(1)/etc/shorewall6-lite
56 $(INSTALL_DIR) $(1)/usr/share
57 $(INSTALL_BIN) ./files/shorewall-lite.init $(1)/etc/init.d/shorewall6-lite
58 $(INSTALL_BIN) ./files/hotplug_iface $(1)/etc/hotplug.d/iface/05-shorewall6-lite
59 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/shorewall6-lite $(1)/sbin
60 $(CP) $(PKG_INSTALL_DIR)/usr/share/shorewall6-lite $(1)/usr/share
61 $(INSTALL_BIN) ./files/hostname $(1)/usr/share/shorewall6-lite
62 $(CP) $(PKG_INSTALL_DIR)/etc/shorewall6-lite $(1)/etc
63 $(CP) ./files/vardir $(1)/etc/shorewall6-lite
64 endef
65
66 $(eval $(call BuildPackage,shorewall6-lite))