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.

75 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:=shorewall-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:=2efc424c1d4f737618f91864ba8e618328605514965e497660ee0ac9020b6048
  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/
  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/shorewall-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/shorewall-lite/state/
  51. $(INSTALL_DIR) $(1)/usr/share/shorewall-lite/
  52. $(INSTALL_BIN) ./files/hotplug_iface $(1)/etc/hotplug.d/iface/05-shorewall-lite
  53. $(CP) $(PKG_INSTALL_DIR)/usr/share/shorewall-lite/ $(1)/usr/share/
  54. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/shorewall-lite $(1)/usr/sbin/
  55. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/shorewall-lite/shorecap $(1)/usr/share/shorewall-lite/
  56. $(INSTALL_BIN) ./files/hostname $(1)/usr/share/shorewall-lite/
  57. $(CP) $(PKG_INSTALL_DIR)/etc/shorewall-lite/ $(1)/etc/
  58. $(INSTALL_BIN) ./files/shorewall-lite.init $(1)/etc/init.d/shorewall-lite
  59. $(CP) ./files/vardir $(1)/etc/shorewall-lite/
  60. endef
  61. $(eval $(call BuildPackage,shorewall-lite))