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.

81 lines
3.0 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-lite
  10. PKG_MAJOR_MINOR_VERSION:=5.2
  11. PKG_BUGFIX_MAJOR_VERSION:=0
  12. PKG_BUGFIX_MINOR_VERSION:=.5
  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:=ca52182d995ecc0adcf882419e94d60968a3701979b99d6b30ba61e7a26ea0cb
  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-lite
  28. SECTION:=net
  29. CATEGORY:=Network
  30. DEPENDS:=+ip +iptables +shorewall-core
  31. TITLE:=Shorewall Lite
  32. URL:=http://www.shorewall.net/
  33. SUBMENU:=Firewall
  34. endef
  35. define Package/shorewall-lite/description
  36. The Shoreline Firewall, is high-level tool for configuring Netfilter.
  37. Shorewall allows for central administration of multiple IPv4 firewalls
  38. through use of Shorewall lite. The full Shorewall product is installed
  39. on a central administrative system where compiled Shorewall scripts are
  40. generated. These scripts are copied to the firewall systems where they
  41. run under the control of Shorewall-lite.
  42. Note: This is the IPv4 implementation of Shorewall.
  43. endef
  44. define Package/shorewall-lite/conffiles
  45. /etc/shorewall-lite/
  46. endef
  47. CONFIGURE_ARGS += \
  48. vendor=openwrt
  49. define Build/Compile
  50. DESTDIR=$(PKG_INSTALL_DIR) $(PKG_BUILD_DIR)/install.sh
  51. endef
  52. define Package/shorewall-lite/install
  53. $(INSTALL_DIR) $(1)/etc/hotplug.d/iface/
  54. $(INSTALL_DIR) $(1)/etc/init.d/
  55. $(INSTALL_DIR) $(1)/etc/shorewall-lite/state/
  56. $(INSTALL_DIR) $(1)/usr/sbin/
  57. $(INSTALL_DIR) $(1)/usr/share/shorewall-lite/
  58. $(CP) $(PKG_INSTALL_DIR)/etc/shorewall-lite/ $(1)/etc/
  59. $(CP) $(PKG_INSTALL_DIR)/usr/share/shorewall-lite/ $(1)/usr/share/
  60. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/shorewall-lite $(1)/usr/sbin/
  61. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/shorewall-lite/shorecap $(1)/usr/share/shorewall-lite/
  62. $(INSTALL_BIN) ./files/hostname $(1)/usr/share/shorewall-lite/
  63. $(INSTALL_BIN) ./files/hotplug_iface $(1)/etc/hotplug.d/iface/05-shorewall-lite
  64. $(INSTALL_BIN) ./files/shorewall-lite.init $(1)/etc/init.d/shorewall-lite
  65. $(INSTALL_BIN) ./files/vardir $(1)/etc/shorewall-lite/
  66. endef
  67. $(eval $(call BuildPackage,shorewall-lite))