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.

76 lines
2.4 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-lite
  10. PKG_VERSION:=5.1.8.1
  11. PKG_DIRECTORY:=5.1
  12. PKG_MAINVERSION:=5.1.8
  13. PKG_RELEASE:=1
  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:=7f1b99465df8f6bc47e0bc40e413b9323a5a9d0b2576709fd28366f0af5b852e
  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/shorewall6-lite
  22. SECTION:=net
  23. CATEGORY:=Network
  24. DEPENDS:=+ip +ip6tables +shorewall-core
  25. TITLE:=Shorewall6 Lite
  26. URL:=http://www.shorewall.net/
  27. SUBMENU:=Firewall
  28. endef
  29. define Package/shorewall6-lite/description
  30. The Shoreline Firewall, is high-level tool for configuring Netfilter.
  31. Shorewall6 allows for central administration of multiple IPv6 firewalls
  32. through use of Shorewall6 lite. The full Shorewall6 product is installed
  33. on a central administrative system where compiled Shorewall6 scripts are
  34. generated. These scripts are copied to the firewall systems where they
  35. run under the control of Shorewall6-lite.
  36. Note: This is the IPv6 implementation of Shorewall.
  37. endef
  38. define Package/shorewall6-lite/conffiles
  39. /etc/shorewall6-lite/
  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/shorewall6-lite/install
  47. $(INSTALL_DIR) $(1)/usr/sbin/
  48. $(INSTALL_DIR) $(1)/etc/init.d/
  49. $(INSTALL_DIR) $(1)/etc/hotplug.d/iface/
  50. $(INSTALL_DIR) $(1)/etc/shorewall6-lite/state/
  51. $(INSTALL_DIR) $(1)/usr/share/shorewall6-lite/
  52. $(INSTALL_BIN) ./files/hotplug_iface $(1)/etc/hotplug.d/iface/05-shorewall6-lite
  53. $(CP) $(PKG_INSTALL_DIR)/usr/share/shorewall6-lite/ $(1)/usr/share/
  54. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/shorewall6-lite $(1)/usr/sbin/
  55. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/shorewall6-lite/shorecap $(1)/usr/share/shorewall6-lite/
  56. $(INSTALL_BIN) ./files/hostname $(1)/usr/share/shorewall6-lite/
  57. $(CP) $(PKG_INSTALL_DIR)/etc/shorewall6-lite/ $(1)/etc/
  58. $(INSTALL_BIN) ./files/shorewall6-lite.init $(1)/etc/init.d/shorewall6-lite
  59. $(CP) ./files/vardir $(1)/etc/shorewall6-lite/
  60. endef
  61. $(eval $(call BuildPackage,shorewall6-lite))