1 # Copyright (c) 2017 Stan Grishin (stangri@melmac.net)
2 # This is free software, licensed under the GNU General Public License v3.
4 include $(TOPDIR
)/rules.mk
10 PKG_MAINTAINER
:=Stan Grishin
<stangri@melmac.net
>
12 include $(INCLUDE_DIR
)/package.mk
14 define Package
/$(PKG_NAME
)
17 DEPENDS
:=+ip-full
+ipset
+iptables
+ubox
+dnsmasq-full
19 TITLE
:=Simple VPN Bypass Service
23 define Package
/$(PKG_NAME
)/description
24 This service can be used to enable simple VPN split tunnelling.
25 Supports accessing domains
, IP ranges outside of your VPN tunnel.
26 Also supports dedicating local ports
/IP ranges for direct internet access
(outside of your VPN tunnel
).
27 Please see the README for further information.
30 define Package
/$(PKG_NAME
)/conffiles
37 define Build
/Configure
43 define Package
/$(PKG_NAME
)/install
44 $(INSTALL_DIR
) $(1)/etc
/init.d
45 $(INSTALL_BIN
) .
/files
/vpnbypass.init
$(1)/etc
/init.d
/vpnbypass
46 $(INSTALL_DIR
) $(1)/etc
/config
47 $(INSTALL_CONF
) .
/files
/vpnbypass.conf
$(1)/etc
/config
/vpnbypass
48 $(INSTALL_DIR
) $(1)/etc
/hotplug.d
/firewall
49 $(INSTALL_DATA
) .
/files
/vpnbypass.hotplug
$(1)/etc
/hotplug.d
/firewall
/94-vpnbypass
52 $(eval
$(call BuildPackage
,$(PKG_NAME
)))