diff --git a/README.md b/README.md index fbf9bd7..0868f7f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,43 @@ -tun2socks-Openwrt -================= -badvpn-tun2socks only +# tun2socks-Openwrt + +This make file just makes badvpn-tun2socks. + + +## Build Images and Packages + +These are the instructions to build an image +for your router including the example applications: + +``` +git clone git://git.lede-project.org/source.git +cd source + +./scripts/feeds update -a +./scripts/feeds install -a + +git clone https://github.com/yazdan/tun2socks-Openwrt +cp -rf tun2socks-Openwrt/badvpn package/ +rm -rf tun2socks-Openwrt/ + +make defconfig +make menuconfig +``` + +Now select the right "Target System" and "Target Profile" for your target device. +Also select the examples you like to build: + +* "Network" => "VPN" => "badvpn" + +Packages are selected when there is a <*> in front of the name (hit the space bar twice). + +Finally - build the image: +``` +make +``` + +You can now flash your router using the correct image file inside ./bin/targets/. The images usually contain all build packages already. +The single *.ipk packages are located in ./bin/packages, in case you want to install them on other devices. + +To install/update a package, transfer the ipk file to your target device to /tmp/ using scp. +The package can then be installed calling e.g. `opkg install badvpn_1.999.130-1_mips_24kc.ipk`. + diff --git a/badvpn/Makefile b/badvpn/Makefile index 9a44b2d..1bf2bae 100644 --- a/badvpn/Makefile +++ b/badvpn/Makefile @@ -6,12 +6,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=badvpn -PKG_VERSION:=1.999.117rc2 +PKG_VERSION:=1.999.130 PKG_RELEASE:=1 -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 -PKG_SOURCE_URL:=http://badvpn.googlecode.com/files/ -PKG_MD5SUM:=08fd8f719bd05a1124bbdf7c4ea8529f +PKG_SOURCE:=$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://github.com/ambrop72/badvpn/archive/ +PKG_MD5SUM:=e65d8d298fc82eb9a6c12a9425a97e6d include $(INCLUDE_DIR)/package.mk