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.

65 lines
2.2 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:=5
  12. PKG_BUGFIX_MINOR_VERSION:=.2
  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://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:=175a3c7cb816c930ae24d074c8c9cd365cbd8ac47551f6878f72bc67022a0147
  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/shorewall-core
  27. SECTION:=net
  28. CATEGORY:=Network
  29. TITLE:=Shorewall Core
  30. URL:=http://www.shorewall.net/
  31. SUBMENU:=Firewall
  32. endef
  33. define Package/shorewall-core/description
  34. The Shoreline Firewall, is high-level tool for configuring Netfilter.
  35. This package provides the core Shorewall libraries installed in /usr/share/shorewall/,
  36. which are required for the rest of the Shorewall packages to work.
  37. endef
  38. define Package/shorewall-core/conffiles
  39. /usr/share/shorewall/shorewallrc
  40. endef
  41. CONFIGURE_ARGS += \
  42. vendor=openwrt
  43. define Build/Compile
  44. DESTDIR=$(PKG_INSTALL_DIR) $(PKG_BUILD_DIR)/install.sh
  45. endef
  46. define Package/shorewall-core/install
  47. $(INSTALL_DIR) $(1)/usr/share/shorewall/
  48. $(INSTALL_DIR) $(1)/usr/sbin/
  49. $(CP) $(PKG_INSTALL_DIR)/usr/share/shorewall $(1)/usr/share/
  50. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/shorewall/wait4ifup $(1)/usr/share/shorewall/
  51. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/shorewall $(1)/usr/sbin/
  52. endef
  53. $(eval $(call BuildPackage,shorewall-core))