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
35 sed
-i
"s|^\(PKG_NAME\).*|\1='$(PKG_NAME)'|" .
/files
/vpnbypass.init
36 sed
-i
"s|^\(PKG_VERSION\).*|\1='$(PKG_VERSION)-$(PKG_RELEASE)'|" .
/files
/vpnbypass.init
39 define Build
/Configure
45 define Package
/$(PKG_NAME
)/install
46 $(INSTALL_DIR
) $(1)/etc
/init.d
47 $(INSTALL_BIN
) .
/files
/vpnbypass.init
$(1)/etc
/init.d
/vpnbypass
48 $(INSTALL_DIR
) $(1)/etc
/config
49 $(INSTALL_CONF
) .
/files
/vpnbypass.conf
$(1)/etc
/config
/vpnbypass
50 $(INSTALL_DIR
) $(1)/etc
/hotplug.d
/firewall
51 $(INSTALL_DATA
) .
/files
/vpnbypass.hotplug
$(1)/etc
/hotplug.d
/firewall
/92-vpnbypass
54 $(eval
$(call BuildPackage
,$(PKG_NAME
)))