diff --git a/srcpkgs/vpn-ws/patches/fixprototypes.patch b/srcpkgs/vpn-ws/patches/fixprototypes.patch new file mode 100644 index 00000000000..4031c6553ea --- /dev/null +++ b/srcpkgs/vpn-ws/patches/fixprototypes.patch @@ -0,0 +1,20 @@ +--- src/ssl.c 2014-11-21 09:48:57.000000000 -0500 ++++ src/ssl.c.fixed 2017-09-27 01:46:07.908463177 -0400 +@@ -1,7 +1,7 @@ + #include "vpn-ws.h" + + #ifndef __WIN32__ +-static int _vpn_ws_ssl_wait_read(fd) { ++static int _vpn_ws_ssl_wait_read(int fd) { + fd_set rset; + FD_ZERO(&rset); + FD_SET(fd, &rset); +@@ -12,7 +12,7 @@ + return 0; + } + +-static int _vpn_ws_ssl_wait_write(fd) { ++static int _vpn_ws_ssl_wait_write(int fd) { + fd_set wset; + FD_ZERO(&wset); + FD_SET(fd, &wset); diff --git a/srcpkgs/vpn-ws/template b/srcpkgs/vpn-ws/template new file mode 100644 index 00000000000..d0241b88d69 --- /dev/null +++ b/srcpkgs/vpn-ws/template @@ -0,0 +1,26 @@ +# Template file for 'vpn-ws' +pkgname=vpn-ws +version=0.2 +revision=1 +build_style=gnu-makefile +make_use_env=yes +makedepends="libressl-devel" +short_desc="VPN system over webhooks" +maintainer="Toyam Cox " +license="MIT" +homepage="https://github.com/unbit/vpn-ws" +distfiles="https://github.com/unbit/vpn-ws/archive/v${version}.tar.gz" +checksum=f35d16d192ef333390ccc7d342df4392676a86502fa087f310eab9758afd565a + +# no install target in the Makefile +do_install() { + vbin vpn-ws + vbin vpn-ws-client + vdoc README.md + vdoc tutorials/ubuntu_trusty_nginx_bridge_client_certificates.md + # not example config, but close enough + vsconf clients/vpn.pl + vsconf clients/vpn_linux_tornado.py + vlicense LICENSE + +}