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