luci-app-vpnbypass: switch to luci-tree Makefile, i18n support 983/head
authorStan Grishin <stangri@melmac.net>
Sat, 28 Jan 2017 15:38:05 +0000 (07:38 -0800)
committerStan Grishin <stangri@melmac.net>
Sat, 28 Jan 2017 16:42:29 +0000 (08:42 -0800)
Signed-off-by: Stan Grishin <stangri@melmac.net>
luci-app-vpnbypass: fixed makefile, fixed pot-file

Signed-off-by: Stan Grishin <stangri@melmac.net>
applications/luci-app-vpnbypass/Makefile
applications/luci-app-vpnbypass/po/templates/vpnbypass.pot [new file with mode: 0644]

index 58b3d30d9c44b48930852f4a6dec53b51d9f939e..5f63dcee7ebdad496bdeceabbbabed475993e01f 100644 (file)
@@ -3,42 +3,15 @@
 
 include $(TOPDIR)/rules.mk
 
-PKG_NAME:=luci-app-vpnbypass
 PKG_VERSION:=1.0.0
-PKG_RELEASE:=3
+PKG_RELEASE:=5
 PKG_LICENSE:=GPL-3.0+
 PKG_MAINTAINER:=Stan Grishin <stangri@melmac.net>
-PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
 
-include $(INCLUDE_DIR)/package.mk
+LUCI_TITLE:=VPN Bypass Web UI
+LUCI_DEPENDS:=+vpnbypass
+LUCI_PKGARCH:=all
 
-define Package/luci-app-vpnbypass
-  SECTION:=luci
-  CATEGORY:=LuCI
-  SUBMENU:=3. Applications
-  TITLE:=VPN Bypass Web UI
-  DEPENDS:=+luci-mod-admin-full +vpnbypass
-  PKGARCH:=all
-endef
+include ../../luci.mk
 
-define Package/luci-app-vpnbypass/description
- This package will install VPN Bypass Web UI.
-endef
-
-define Build/Prepare
-endef
-
-define Build/Configure
-endef
-
-define Build/Compile
-endef
-
-define Package/luci-app-vpnbypass/install
-       $(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller/
-       $(INSTALL_BIN) ./luasrc/controller/vpnbypass.lua  $(1)/usr/lib/lua/luci/controller/vpnbypass.lua
-       $(INSTALL_DIR) $(1)/usr/lib/lua/luci/model/cbi/
-       $(INSTALL_BIN) ./luasrc/model/cbi/vpnbypass.lua $(1)/usr/lib/lua/luci/model/cbi/vpnbypass.lua
-endef
-
-$(eval $(call BuildPackage,luci-app-vpnbypass))
\ No newline at end of file
+# call BuildPackage - OpenWrt buildroot signature
\ No newline at end of file
diff --git a/applications/luci-app-vpnbypass/po/templates/vpnbypass.pot b/applications/luci-app-vpnbypass/po/templates/vpnbypass.pot
new file mode 100644 (file)
index 0000000..c0dd33d
--- /dev/null
@@ -0,0 +1,45 @@
+msgid ""
+msgstr "Content-Type: text/plain; charset=UTF-8"
+
+msgid "Configuration of VPN Bypass Settings"
+msgstr ""
+
+msgid "Domains to Bypass"
+msgstr ""
+
+msgid "Domains which will be accessed directly (outside of the VPN tunnel)"
+msgstr ""
+
+msgid "Enable VPN Bypass"
+msgstr ""
+
+msgid "Local IP Subnets to Bypass"
+msgstr ""
+
+msgid "Local IP ranges with direct internet access (outside of the VPN tunnel)"
+msgstr ""
+
+msgid "Local Ports to Bypass"
+msgstr ""
+
+msgid "Local ports to trigger VPN Bypass"
+msgstr ""
+
+msgid "Remote IP Subnets to Bypass"
+msgstr ""
+
+msgid ""
+"Remote IP ranges which will be accessed directly (outside of the VPN tunnel)"
+msgstr ""
+
+msgid "Remote Ports to Bypass"
+msgstr ""
+
+msgid "Remote ports to trigger VPN Bypass"
+msgstr ""
+
+msgid "VPN Bypass"
+msgstr ""
+
+msgid "VPN Bypass Settings"
+msgstr ""