2008-07-06 10:39:10 +00:00
|
|
|
#
|
2011-02-20 16:03:59 +00:00
|
|
|
# Copyright (C) 2008-2011 OpenWrt.org
|
2008-07-06 10:39:10 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
2008-02-02 18:12:21 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=shorewall-lite
|
2010-10-24 13:20:25 +00:00
|
|
|
PKG_VERSION:=4.4.12.2
|
|
|
|
PKG_DIRECTORY:=4.4.12
|
2011-02-20 16:03:59 +00:00
|
|
|
PKG_RELEASE:=2
|
2008-02-02 18:12:21 +00:00
|
|
|
|
2010-01-17 17:33:30 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.shorewall.net/pub/shorewall/4.4/shorewall-$(PKG_DIRECTORY)/ \
|
|
|
|
http://www1.shorewall.net/pub/shorewall/4.4/shorewall-$(PKG_DIRECTORY)/ \
|
|
|
|
http://slovakia.shorewall.net/pub/shorewall/4.4/shorewall-$(PKG_DIRECTORY)/ \
|
|
|
|
http://shorewall.de/pub/shorewall/4.4/shorewall-$(PKG_DIRECTORY)/ \
|
|
|
|
http://www.shorewall.com.au/4.4/shorewall-$(PKG_DIRECTORY)/ \
|
|
|
|
http://shorewall.infohiiway.com/pub/shorewall/4.4/shorewall-$(PKG_DIRECTORY)/ \
|
|
|
|
http://www.shorewall.com.ar/pub/shorewall/shorewall/4.4/shorewall-$(PKG_DIRECTORY)/
|
2008-02-02 18:12:21 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2010-10-24 13:20:25 +00:00
|
|
|
PKG_MD5SUM:=b030e988c36fc1ef8c0e27447faef2a6
|
2008-02-02 18:12:21 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/shorewall-lite
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEPENDS:=+ip +iptables +iptables-utils
|
|
|
|
TITLE:=Shorewall Lite
|
|
|
|
URL:=http://www.shorewall.net/
|
|
|
|
SUBMENU:=firewall
|
|
|
|
endef
|
|
|
|
|
2008-02-02 18:19:14 +00:00
|
|
|
define Package/shorewall-lite/description
|
|
|
|
Shoreline Firewall Lite is an iptables-based firewall for Linux systems.
|
|
|
|
endef
|
2008-02-02 18:12:21 +00:00
|
|
|
|
|
|
|
define Package/shorewall-lite/conffiles
|
|
|
|
/etc/shorewall-lite/shorewall-lite.conf
|
|
|
|
/etc/shorewall-lite/vardir
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
PREFIX=$(PKG_INSTALL_DIR) $(PKG_BUILD_DIR)/install.sh
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/shorewall-lite/install
|
|
|
|
$(INSTALL_DIR) $(1)/sbin
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
2010-10-24 13:20:25 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/lsm/script.d
|
2009-12-11 02:09:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/hotplug.d/iface
|
2008-02-02 18:12:21 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/shorewall-lite
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share
|
|
|
|
$(INSTALL_BIN) ./files/shorewall-lite.init $(1)/etc/init.d/shorewall-lite
|
2009-12-11 02:09:19 +00:00
|
|
|
$(INSTALL_BIN) ./files/hotplug_iface $(1)/etc/hotplug.d/iface/05-shorewall-lite
|
2008-02-02 18:12:21 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/shorewall-lite $(1)/sbin
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/shorewall-lite $(1)/usr/share
|
|
|
|
$(INSTALL_BIN) ./files/hostname $(1)/usr/share/shorewall-lite
|
2011-02-20 16:03:59 +00:00
|
|
|
$(INSTALL_BIN) ./files/lsm_script $(1)/etc/lsm/script.d/45_shorewall-lite
|
2008-02-02 18:12:21 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/etc/shorewall-lite $(1)/etc
|
|
|
|
$(CP) ./files/vardir $(1)/etc/shorewall-lite
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,shorewall-lite))
|