You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
3.1 KiB

  1. #
  2. # Copyright (C) 2008-2012 OpenWrt.org
  3. # Copyright (C) 2017 Willem van den Akker <wvdakker@wilsoft.nl>
  4. #
  5. # This is free software, licensed under the GNU General Public License v2.
  6. # See /LICENSE for more information.
  7. #
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=shorewall
  10. PKG_MAJOR_MINOR_VERSION:=5.2
  11. PKG_BUGFIX_MAJOR_VERSION:=3
  12. PKG_BUGFIX_MINOR_VERSION:=.4
  13. PKG_VERSION:=$(PKG_MAJOR_MINOR_VERSION).$(PKG_BUGFIX_MAJOR_VERSION)$(PKG_BUGFIX_MINOR_VERSION)
  14. PKG_DIRECTORY:=$(PKG_MAJOR_MINOR_VERSION).$(PKG_BUGFIX_MAJOR_VERSION)
  15. PKG_RELEASE:=2
  16. PKG_SOURCE_URL:=http://www.shorewall.net/pub/shorewall/$(PKG_MAJOR_MINOR_VERSION)/shorewall-$(PKG_DIRECTORY)/ \
  17. http://www1.shorewall.net/pub/shorewall/$(PKG_MAJOR_MINOR_VERSION)/shorewall-$(PKG_DIRECTORY)/ \
  18. http://slovakia.shorewall.net/pub/shorewall/$(PKG_MAJOR_MINOR_VERSION)/shorewall-$(PKG_DIRECTORY)/ \
  19. http://shorewall.de/pub/shorewall/$(PKG_MAJOR_MINOR_VERSION)/shorewall-$(PKG_DIRECTORY)/ \
  20. http://www.shorewall.com.au/$(PKG_MAJOR_MINOR_VERSION)/shorewall-$(PKG_DIRECTORY)/
  21. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  22. PKG_HASH:=a6e1a1a6b20ea37695fe12d36233dacd461548ac67665664c8de3a99cf7aa23b
  23. PKG_MAINTAINER:=Willem van den Akker <wvdakker@wilsoft.nl>
  24. PKG_LICENSE:=GPL-2.0-or-later
  25. PKG_LICENSE_FILES:=COPYING
  26. include $(INCLUDE_DIR)/package.mk
  27. define Package/shorewall
  28. SECTION:=devel
  29. CATEGORY:=Network
  30. DEPENDS:=+ip +iptables +kmod-ipt-hashlimit +kmod-ipt-raw +iptables-mod-hashlimit +shorewall-core \
  31. +perl +perlbase-autoloader +perlbase-autouse +perlbase-dynaloader +perlbase-digest \
  32. +perlbase-findbin +perlbase-getopt +perlbase-hash
  33. TITLE:=Shorewall Central Administration System
  34. URL:=http://www.shorewall.net/
  35. SUBMENU:=Firewall
  36. endef
  37. define Package/shorewall/description
  38. The Shoreline Firewall, is high-level tool for configuring Netfilter.
  39. Shorewall allows for central administration of multiple IPv4 firewalls.
  40. This is the full Shorewall product which will compile Shorewall scripts.
  41. It is not recommended to run it on a low memory system.
  42. Note: This is the IPv4 implementation of Shorewall.
  43. This full Shorewal packages also installs Perl which can make the image big (about +2M).
  44. endef
  45. CONFIGURE_ARGS += \
  46. vendor=openwrt
  47. define Build/Compile
  48. DESTDIR=$(PKG_INSTALL_DIR) $(PKG_BUILD_DIR)/install.sh
  49. endef
  50. define Package/shorewall/conffiles
  51. /etc/shorewall/
  52. endef
  53. define Package/shorewall/install
  54. $(INSTALL_DIR) $(1)/etc/init.d/
  55. $(INSTALL_DIR) $(1)/etc/hotplug.d/iface/
  56. $(INSTALL_DIR) $(1)/etc/shorewall/
  57. $(INSTALL_DIR) $(1)/usr/lib/shorewall/
  58. $(INSTALL_DIR) $(1)/usr/sbin/
  59. $(INSTALL_DIR) $(1)/usr/share/shorewall/
  60. $(INSTALL_BIN) ./files/hotplug_iface $(1)/etc/hotplug.d/iface/05-shorewall
  61. $(INSTALL_BIN) ./files/hostname $(1)/etc/shorewall/
  62. $(INSTALL_BIN) ./files/shorewall.init $(1)/etc/init.d/shorewall
  63. $(INSTALL_BIN) ./files/vardir $(1)/etc/shorewall/
  64. $(CP) $(PKG_INSTALL_DIR)/etc/shorewall/. $(1)/etc/shorewall/
  65. $(CP) $(PKG_INSTALL_DIR)/usr/lib/shorewall/. $(1)/usr/lib/shorewall/
  66. $(CP) $(PKG_INSTALL_DIR)/usr/share/shorewall/. $(1)/usr/share/shorewall/
  67. endef
  68. $(eval $(call BuildPackage,shorewall))