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.

66 lines
2.3 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-core
  10. PKG_MAJOR_MINOR_VERSION:=5.2
  11. PKG_BUGFIX_MAJOR_VERSION:=3
  12. PKG_BUGFIX_MINOR_VERSION:=.1
  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://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:=894d9ca5425e38880eeb270cbe26b83c90b4ca8490ebe48fb20be466e1704d03
  23. PKG_MAINTAINER:=Willem van den Akker <wvdakker@wilsoft.nl>
  24. PKG_LICENSE:=GPL-2.0+
  25. PKG_LICENSE_FILES:=COPYING
  26. include $(INCLUDE_DIR)/package.mk
  27. define Package/shorewall-core
  28. SECTION:=net
  29. CATEGORY:=Network
  30. TITLE:=Shorewall Core
  31. URL:=http://www.shorewall.net/
  32. SUBMENU:=Firewall
  33. endef
  34. define Package/shorewall-core/description
  35. The Shoreline Firewall, is high-level tool for configuring Netfilter.
  36. This package provides the core Shorewall libraries installed in /usr/share/shorewall/,
  37. which are required for the rest of the Shorewall packages to work.
  38. endef
  39. define Package/shorewall-core/conffiles
  40. /usr/share/shorewall/shorewallrc
  41. endef
  42. CONFIGURE_ARGS += \
  43. vendor=openwrt
  44. define Build/Compile
  45. DESTDIR=$(PKG_INSTALL_DIR) $(PKG_BUILD_DIR)/install.sh
  46. endef
  47. define Package/shorewall-core/install
  48. $(INSTALL_DIR) $(1)/usr/share/shorewall/
  49. $(INSTALL_DIR) $(1)/usr/sbin/
  50. $(CP) $(PKG_INSTALL_DIR)/usr/share/shorewall $(1)/usr/share/
  51. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/shorewall/wait4ifup $(1)/usr/share/shorewall/
  52. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/shorewall $(1)/usr/sbin/
  53. endef
  54. $(eval $(call BuildPackage,shorewall-core))