carlberg wrote:Tested and it all works.
...
VPNC - Easy VPNC: http://www.stonednet.com/openwrt_vpnc-luci.zip
(have not tested all combinations of configuration)
I could'nt find how to create a real packages, but these zip files contains the luci-gui and the /etc/init.d/ scripts.
Maybe someone can help me to create real packages or even get them into the source of luci.
Cheers
-Anders
It really works! Thank you. If you still interested in package create procedure... I think the right way is to contribute you work to upstream: luasrc to LuCI trac, startscript and config - to OpenWrt trac (oops, don't works?). Look how much easier might be the build process, if the files were in the right places:
1. Fetch backfire and do `make menuconfig` for chosen device
2. Update and install feeds:
./scripts/feeds update
./scripts/feeds install -a -p packages
./scripts/feeds install -a -p luci
3. put vpnc stuff to feeds/packages/net/vpnc/files and patch feeds/packages/net/vpnc/Makefile:
Index: Makefile
===================================================================
--- Makefile (revision 30974)
+++ Makefile (working copy)
@@ -27,7 +27,7 @@
endef
define Package/vpnc/description
- A VPN client compatible with Cisco's EasyVPN equipment.
+ A VPN client compatible with Cisco\'s EasyVPN equipment.
Supports IPSec (ESP) with Mode Configuration and Xauth. Supports only
shared-secret IPSec authentication with Xauth, AES (256, 192, 128),
@@ -58,6 +58,10 @@
install -d -m0700 $(1)/etc/vpnc
$(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/vpnc/default.conf $(1)/etc/vpnc/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/etc/vpnc/vpnc-script $(1)/etc/vpnc/
+ $(INSTALL_DIR) $(1)/etc/config
+ $(INSTALL_CONF) ./files/vpnc.config $(1)/etc/config/vpnc
+ $(INSTALL_DIR) $(1)/etc/init.d
+ $(INSTALL_BIN) ./files/vpnc.init $(1)/etc/init.d/vpnc
endef
$(eval $(call BuildPackage,vpnc))
4. do make menuconfig and check vpnc and luci. It under
Network -> VPN -> vpnc and
LuCI -> 1. Collections -> luci
5. make
6. put luasrc stuff to build_dir/<target>/luci-0.10.0/applications, find luci-vpnc/:
luci-vpnc/
luci-vpnc/luasrc
luci-vpnc/luasrc/controller
luci-vpnc/luasrc/controller/vpnc.lua
luci-vpnc/luasrc/model
luci-vpnc/luasrc/model/cbi
luci-vpnc/luasrc/model/cbi/vpnc.lua
luci-vpnc/Makefile
cat luci-vpnc/Makefile:
PO = vpnc
include ../../build/config.mk
include ../../build/module.mk
Add line
$(eval $(call application,vpnc,LuCI Support for vpnc))
to feeds/luci/luci/Makefile
7. make menuconfig. Check luci-app-vpnc under
LuCI -> 3. Applications
8. make
Packages are in bin/<target>/packages/