← Back to team overview

openstore-team team mailing list archive

Re: Shadowsocks client for Ubuntu Touch

 

Hi again,

I've managed to build the package. Thanks for the instructions. Instead
of building libevent and redsocks I used the packages from the Ubuntu
archives. In the click chroot just do

apt-get install libevent-dev:armhf redsocks:armhf

Then you can use the binaries in there. That however required a small
change to the build script in order to use dynamic linking of libevent.
Please see the attached patch. Actually instead of copying those to the
armhf dir, the script could directly copy it from the click chroot into
the build dir. Something like

executeCommand "click chroot -a armhf -f $CHROOT -s $SERIES run cp
/usr/sbin/redsocks build/"
executeCommand "click chroot -a armhf -f $CHROOT -s $SERIES run cp
/usr/sbin/redsocks build/lib/arm-linux-gnueabihf/"

Anyhow, please test the attached package I posted in the Telegram group.
If it works for you, send me a nice description for the app to be shown
in the store.

The looks very nice! Great work.

Cheers,
Michael

On 20.04.2016 18:53, DawnDIY wrote:
> Hi everyone,
> 
> Now, I updated the build documents in the repository
> (https://github.com/dawndiy/shadowsocks-ubuntu).
> This App use follow projects:
> - [go-qml](https://github.com/go-qml/qml)    write App for ubuntu touch
> with golang (<1.6)
> - [shadowsocks-go](https://github.com/shadowsocks/shadowsocks-go)   go
> port of shadowsocks
> - [ChinaDNS](https://github.com/shadowsocks/ChinaDNS)  bypass DNS poisoning
> - [redsocks](https://github.com/darkk/redsocks)   transparent redirector
> of any TCP connection to proxy
> 
> There are two binary files in the folder "armhf", they are redsocks and
> chinadns. I build them in my side. And you can build them follow the
> steps
> here(https://github.com/dawndiy/shadowsocks-ubuntu/blob/master/BUILD.md). If
> you have any question in build them please tell. :)
> 
> 
> Thank you~
> 
> PS: don't forget CC me. :p
> 
> 
> 2016-04-20 0:59 GMT+08:00 DawnDIY <chenglu1990@xxxxxxxxx
> <mailto:chenglu1990@xxxxxxxxx>>:
> 
>     Hi,
> 
>     I wrote an Shadowsocks client for Ubuntu Touch. I want to submit the
>     App to OpenStore, so more people can use it.
> 
>     Shadowsocks(https://shadowsocks.org) is a secure socks5 proxy. I'm
>     from China. Because some reasons, we visit foreignwebsitevery
>     slowly. Some people will use VPN to visit foreign website. And
>     Shadowsocks is an other way like VPN as a proxy to visit foreign
>     website faster. I knew that Ubuntu Touch had supported VPN at
>     OTA-10, but it just support OpenVPN protocol and the PPTP/L2TP
>     protocol will be supported later. So I wrote this App for people
>     like me always use shadowsocks to make it faster visit foreign website.
> 
>     The reason why I can't publish it in the office store, is that I
>     must use the "unconfined" template to make the App has permissions
>     to modify and configure networks. And in the App, it will request
>     password of the Phone when start up the shadowsocks service. Because
>     it will call the command "iptable" as a root user to modify network.
>     But it will never remember or upload user information or password.
> 
>     Before I write this email, I have sent this App to some people in
>     China for test. And They are very happy that I wrote this App, so
>     that they can use Google Services like sync address book from google
>     service and so on.
> 
>     The source code is here: https://github.com/dawndiy/shadowsocks-ubuntu
>     The click package is here:
>     https://github.com/dawndiy/shadowsocks-ubuntu/releases
>     I wish it can be published at the Open Store, and more people can
>     use it.  :)
> 
>     Thank you.
> 
>     -- 
>     Best,
>     DawnDIY
> 
> 
> 
> 
> -- 
> Best,
> DawnDIY
> 
> 
diff --git a/build-click-package.sh b/build-click-package.sh
index 8fdbc03..167eff0 100755
--- a/build-click-package.sh
+++ b/build-click-package.sh
@@ -56,7 +56,7 @@ executeCommand "rm -rf ./build"
 echo "Done"
 
 echo -n "Creating clean build directory... "
-executeCommand "mkdir build"
+executeCommand "mkdir -p build/lib/arm-linux-gnueabihf/"
 echo "Done"
 
 echo -n "Copying files... "
@@ -65,6 +65,7 @@ executeCommand "cp apparmor.json build/"
 executeCommand "cp ${APP_NAME}.desktop build/"
 executeCommand "cp -R app/ build/"
 executeCommand "cp armhf/redsocks build/"
+executeCommand "cp armhf/libevent-2.0.so* build/lib/arm-linux-gnueabihf/"
 executeCommand "cp armhf/chinadns build/"
 executeCommand "cp redsocks.conf build/"
 executeCommand "cp chnroute.txt build/"

Attachment: signature.asc
Description: OpenPGP digital signature


Follow ups

References