[net] Firewall: Renamed firewall submenu to Firewall.
[openwrt/svn-archive/archive.git] / net / shorewall-lite / Makefile
1 #
2 # Copyright (C) 2008-2011 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:=shorewall-lite
11 PKG_VERSION:=4.4.12.2
12 PKG_DIRECTORY:=4.4.12
13 PKG_RELEASE:=2
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:=b030e988c36fc1ef8c0e27447faef2a6
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/shorewall-lite
28 SECTION:=net
29 CATEGORY:=Network
30 DEPENDS:=+ip +iptables +iptables-utils
31 TITLE:=Shorewall Lite
32 URL:=http://www.shorewall.net/
33 SUBMENU:=Firewall
34 endef
35
36 define Package/shorewall-lite/description
37 Shoreline Firewall Lite is an iptables-based firewall for Linux systems.
38 endef
39
40 define Package/shorewall-lite/conffiles
41 /etc/shorewall-lite/shorewall-lite.conf
42 /etc/shorewall-lite/vardir
43 endef
44
45 define Build/Compile
46 PREFIX=$(PKG_INSTALL_DIR) $(PKG_BUILD_DIR)/install.sh
47 endef
48
49 define Package/shorewall-lite/install
50 $(INSTALL_DIR) $(1)/sbin
51 $(INSTALL_DIR) $(1)/etc/init.d
52 $(INSTALL_DIR) $(1)/etc/lsm/script.d
53 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
54 $(INSTALL_DIR) $(1)/etc/shorewall-lite
55 $(INSTALL_DIR) $(1)/usr/share
56 $(INSTALL_BIN) ./files/shorewall-lite.init $(1)/etc/init.d/shorewall-lite
57 $(INSTALL_BIN) ./files/hotplug_iface $(1)/etc/hotplug.d/iface/05-shorewall-lite
58 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/shorewall-lite $(1)/sbin
59 $(CP) $(PKG_INSTALL_DIR)/usr/share/shorewall-lite $(1)/usr/share
60 $(INSTALL_BIN) ./files/hostname $(1)/usr/share/shorewall-lite
61 $(INSTALL_BIN) ./files/lsm_script $(1)/etc/lsm/script.d/45_shorewall-lite
62 $(CP) $(PKG_INSTALL_DIR)/etc/shorewall-lite $(1)/etc
63 $(CP) ./files/vardir $(1)/etc/shorewall-lite
64 endef
65
66 $(eval $(call BuildPackage,shorewall-lite))