2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
14 PKG_MD5SUM:=4ac779d02d4befc72a0ce1534fbb328d
16 PKG_SOURCE_URL:=http://www1.shorewall.net/pub/$(PKG_NAME)/3.4/$(PKG_NAME)-$(PKG_VERSION)/
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23 include $(INCLUDE_DIR)/package.mk
25 define Package/shorewall
29 TITLE:=Shorewall firewall
31 Shorewall Firewall is an iptables-based firewall for Linux.
32 URL:=http://www.shorewall.net/
37 rm -rf $(PKG_INSTALL_DIR)
38 mkdir -p $(PKG_INSTALL_DIR)
39 PREFIX=$(PKG_INSTALL_DIR) $(PKG_BUILD_DIR)/install.sh
42 define Package/shorewall/install
43 $(INSTALL_DIR) $(1)/sbin
44 $(INSTALL_DIR) $(1)/etc/init.d
45 $(INSTALL_DIR) $(1)/usr/share
46 $(INSTALL_BIN) ./files/shorewall.init $(1)/etc/init.d/shorewall
47 $(CP) $(PKG_INSTALL_DIR)/sbin/shorewall $(1)/sbin
48 $(CP) $(PKG_INSTALL_DIR)/usr/share/shorewall $(1)/usr/share
49 $(CP) $(PKG_INSTALL_DIR)/etc/shorewall $(1)/etc
52 $(eval $(call BuildPackage,shorewall))