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.

80 lines
2.9 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:=shorewall6
  10. PKG_MAJOR_MINOR_VERSION:=5.2
  11. PKG_BUGFIX_MAJOR_VERSION:=4
  12. PKG_BUGFIX_MINOR_VERSION:=
  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:=1
  16. PKG_SOURCE_URL:=http://shorewall.org/pub/shorewall/$(PKG_MAJOR_MINOR_VERSION)/shorewall-$(PKG_DIRECTORY)/ \
  17. http://slovakia.shorewall.net/pub/shorewall/$(PKG_MAJOR_MINOR_VERSION)/shorewall-$(PKG_DIRECTORY)/ \
  18. http://www.shorewall.no/pub/shorewall/$(PKG_MAJOR_MINOR_VERSION)/shorewall-$(PKG_DIRECTORY)/ \
  19. http://france.shorewall.net/$(PKG_MAJOR_MINOR_VERSION)/shorewall-$(PKG_DIRECTORY)/
  20. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  21. PKG_HASH:=3da28c71b8c5fe9935cfb8eacb260fdf31d57f5ebf6ba8f3e87956e56d3e5cc9
  22. PKG_MAINTAINER:=Willem van den Akker <wvdakker@wilsoft.nl>
  23. PKG_LICENSE:=GPL-2.0-or-later
  24. PKG_LICENSE_FILES:=COPYING
  25. include $(INCLUDE_DIR)/package.mk
  26. define Package/shorewall6
  27. SECTION:=net
  28. CATEGORY:=Network
  29. DEPENDS:=+ip +ip6tables +kmod-ipt-hashlimit +kmod-ipt-raw6 +iptables-mod-hashlimit +shorewall-core \
  30. +perl +perlbase-autoloader +perlbase-autouse +perlbase-dynaloader +perlbase-digest \
  31. +perlbase-findbin +perlbase-getopt +perlbase-hash
  32. TITLE:=Shorewall6 Central Administration System
  33. URL:=http://www.shorewall.net/
  34. SUBMENU:=Firewall
  35. endef
  36. define Package/shorewall6/description
  37. The Shoreline Firewall, is high-level tool for configuring Netfilter.
  38. Shorewall allows for central administration of multiple IPv6 firewalls.
  39. This is the full Shorewall product which will compile Shorewall scripts
  40. It is not recommended to run it on a low memory system.
  41. Note: This is the IPv6 implementation of Shorewall.
  42. This full Shorewal packages also installs Perl which can make the image big (about +2M).
  43. endef
  44. CONFIGURE_ARGS += \
  45. vendor=openwrt
  46. define Package/shorewall6/conffiles
  47. /etc/shorewall6/
  48. endef
  49. define Build/Compile
  50. DESTDIR=$(PKG_INSTALL_DIR) $(PKG_BUILD_DIR)/install.sh
  51. endef
  52. define Package/shorewall6/install
  53. $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
  54. $(INSTALL_DIR) $(1)/etc/init.d/
  55. $(INSTALL_DIR) $(1)/etc/shorewall6/
  56. $(INSTALL_DIR) $(1)/usr/sbin/
  57. $(INSTALL_DIR) $(1)/usr/share/shorewall6/
  58. $(INSTALL_BIN) ./files/hostname $(1)/etc/shorewall6/
  59. $(INSTALL_BIN) ./files/hotplug_iface $(1)/etc/hotplug.d/iface/05-shorewall6
  60. $(INSTALL_BIN) ./files/shorewall6.init $(1)/etc/init.d/shorewall6
  61. $(INSTALL_BIN) ./files/vardir $(1)/etc/shorewall6/
  62. $(CP) $(PKG_INSTALL_DIR)/etc/shorewall6/. $(1)/etc/shorewall6/
  63. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/shorewall6 $(1)/usr/sbin/
  64. $(CP) $(PKG_INSTALL_DIR)/usr/share/shorewall6/. $(1)/usr/share/shorewall6/
  65. endef
  66. $(eval $(call BuildPackage,shorewall6))