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.

77 lines
2.5 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.4.1
  11. PKG_DIRECTORY:=5.1
  12. PKG_MAINVERSION:=5.1.4
  13. PKG_RELEASE:=2
  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:=b616c5886b5bc274e88052359ca4c8aa6df60a9706958698eac7fc362f1c893de00ed2272535d61a88cb6a786bae9b7cba64a835833a9f81c991fb2ffed8244b
  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/shorewall6-lite.conf
  40. /etc/shorewall6-lite/vardir
  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/shorewall6-lite/install
  48. $(INSTALL_DIR) $(1)/usr/sbin
  49. $(INSTALL_DIR) $(1)/etc/init.d
  50. $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
  51. $(INSTALL_DIR) $(1)/etc/shorewall6-lite/state
  52. $(INSTALL_DIR) $(1)/usr/share
  53. $(INSTALL_BIN) ./files/hotplug_iface $(1)/etc/hotplug.d/iface/05-shorewall6-lite
  54. $(CP) $(PKG_INSTALL_DIR)/usr/share/shorewall6-lite $(1)/usr/share
  55. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/shorewall6-lite $(1)/usr/sbin
  56. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/shorewall6-lite/shorecap $(1)/usr/share/shorewall6-lite
  57. $(INSTALL_BIN) ./files/hostname $(1)/usr/share/shorewall6-lite
  58. $(CP) $(PKG_INSTALL_DIR)/etc/shorewall6-lite $(1)/etc
  59. $(CP) $(PKG_INSTALL_DIR)/etc/init.d $(1)/etc
  60. $(CP) ./files/vardir $(1)/etc/shorewall6-lite
  61. endef
  62. $(eval $(call BuildPackage,shorewall6-lite))