2007-05-14 21:27:03 +00:00
|
|
|
#
|
2007-09-04 19:58:11 +00:00
|
|
|
# Copyright (C) 2007 OpenWrt.org
|
2007-05-14 21:27:03 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2007-07-01 23:09:45 +00:00
|
|
|
# $Id$
|
2007-05-14 21:27:03 +00:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=shorewall
|
2007-09-04 19:58:11 +00:00
|
|
|
PKG_VERSION:=3.4.6
|
|
|
|
PKG_RELEASE:=2
|
2007-05-14 21:27:03 +00:00
|
|
|
|
2007-05-27 17:27:48 +00:00
|
|
|
PKG_SOURCE_URL:=http://www1.shorewall.net/pub/$(PKG_NAME)/3.4/$(PKG_NAME)-$(PKG_VERSION)/
|
2007-05-14 21:27:03 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
|
2007-09-04 19:58:11 +00:00
|
|
|
PKG_MD5SUM:=ec6a8bd3d6d0468b6302a7725851c39b
|
2007-05-14 21:27:03 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/shorewall
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2008-03-27 19:34:14 +00:00
|
|
|
DEPENDS:=+iptables +iptables-mod-extra
|
2007-05-14 21:27:03 +00:00
|
|
|
TITLE:=Shorewall firewall
|
|
|
|
URL:=http://www.shorewall.net/
|
2007-10-18 18:37:22 +00:00
|
|
|
SUBMENU:=firewall
|
2007-05-14 21:27:03 +00:00
|
|
|
endef
|
|
|
|
|
2007-09-04 19:58:11 +00:00
|
|
|
define define Package/shorewall/description
|
|
|
|
Shorewall Firewall is an iptables-based firewall for Linux.
|
|
|
|
endef
|
2007-05-14 21:27:03 +00:00
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
rm -rf $(PKG_INSTALL_DIR)
|
|
|
|
mkdir -p $(PKG_INSTALL_DIR)
|
|
|
|
PREFIX=$(PKG_INSTALL_DIR) $(PKG_BUILD_DIR)/install.sh
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/shorewall/install
|
|
|
|
$(INSTALL_DIR) $(1)/sbin
|
2007-09-04 19:58:11 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/$(PKG_NAME) $(1)/sbin
|
2007-05-14 21:27:03 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
2007-09-04 19:58:11 +00:00
|
|
|
$(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
|
2007-05-14 21:27:03 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/share
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/shorewall $(1)/usr/share
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/etc/shorewall $(1)/etc
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,shorewall))
|