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.

61 lines
1.7 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_VERSION:=5.1.4.1
  11. PKG_DIRECTORY:=5.1
  12. PKG_RELEASE:=1
  13. PKG_MAINVERSION:=5.1.4
  14. PKG_SOURCE_URL:=http://www.shorewall.net/pub/shorewall/$(PKG_DIRECTORY)/shorewall-$(PKG_MAINVERSION)/
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  16. PKG_HASH:=3d1446f7e437104c8f8c7257ccdbddfc0dc7df3ea68b80274c11dd94cc1c8629
  17. PKG_MAINTAINER:=Willem van den Akker <wvdakker@wilsoft.nl>
  18. PKG_LICENSE:=GPL-2.0+
  19. PKG_LICENSE_FILES:=COPYING
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/shorewall-core
  22. SECTION:=net
  23. CATEGORY:=Network
  24. DEPENDS:=+ip +iptables
  25. TITLE:=Shorewall Core
  26. URL:=http://www.shorewall.net/
  27. SUBMENU:=Firewall
  28. endef
  29. define Package/shorewall-core/description
  30. The Shoreline Firewall, is high-level tool for configuring Netfilter.
  31. This package provides the core Shorewall libraries installed in /usr/share/shorewall/,
  32. which are required for the rest of the Shorewall packages to work.
  33. endef
  34. define Package/shorewall-core/conffiles
  35. /usr/share/shorewall/shorewallrc
  36. endef
  37. CONFIGURE_ARGS += \
  38. vendor=openwrt
  39. define Build/Compile
  40. DESTDIR=$(PKG_INSTALL_DIR) $(PKG_BUILD_DIR)/install.sh
  41. endef
  42. define Package/shorewall-core/install
  43. $(INSTALL_DIR) $(1)/usr/share
  44. $(INSTALL_DIR) $(1)/usr/sbin
  45. $(CP) $(PKG_INSTALL_DIR)/usr/share/shorewall $(1)/usr/share
  46. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/shorewall/wait4ifup $(1)/usr/share/shorewall
  47. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/shorewall $(1)/usr/sbin
  48. endef
  49. $(eval $(call BuildPackage,shorewall-core))