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.

52 lines
1.4 KiB

  1. # Copyright (c) 2017 Stan Grishin (stangri@melmac.net)
  2. # This is free software, licensed under the GNU General Public License v3.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:=vpnbypass
  5. PKG_VERSION:=1.0.1
  6. PKG_RELEASE:=1
  7. PKG_LICENSE:=GPL-3.0+
  8. PKG_MAINTAINER:=Stan Grishin <stangri@melmac.net>
  9. include $(INCLUDE_DIR)/package.mk
  10. define Package/$(PKG_NAME)
  11. SECTION:=net
  12. CATEGORY:=Network
  13. DEPENDS:=+ip-full +ipset +iptables +ubox +dnsmasq-full
  14. CONFLICTS:=ip dnsmasq
  15. TITLE:=Simple VPN Bypass Service
  16. PKGARCH:=all
  17. endef
  18. define Package/$(PKG_NAME)/description
  19. This service can be used to enable simple VPN split tunnelling.
  20. Supports accessing domains, IP ranges outside of your VPN tunnel.
  21. Also supports dedicating local ports/IP ranges for direct internet access (outside of your VPN tunnel).
  22. Please see the README for further information.
  23. endef
  24. define Package/$(PKG_NAME)/conffiles
  25. /etc/config/vpnbypass
  26. endef
  27. define Build/Prepare
  28. endef
  29. define Build/Configure
  30. endef
  31. define Build/Compile
  32. endef
  33. define Package/$(PKG_NAME)/install
  34. $(INSTALL_DIR) $(1)/etc/init.d
  35. $(INSTALL_BIN) ./files/vpnbypass.init $(1)/etc/init.d/vpnbypass
  36. $(INSTALL_DIR) $(1)/etc/config
  37. $(INSTALL_CONF) ./files/vpnbypass.conf $(1)/etc/config/vpnbypass
  38. $(INSTALL_DIR) $(1)/etc/hotplug.d/firewall
  39. $(INSTALL_DATA) ./files/vpnbypass.hotplug $(1)/etc/hotplug.d/firewall/92-vpnbypass
  40. endef
  41. $(eval $(call BuildPackage,$(PKG_NAME)))