From d86191126383bce282407e27eb3f6fae28737724 Mon Sep 17 00:00:00 2001 From: Ioannis Koutras Date: Wed, 13 Jul 2016 15:48:56 +0300 Subject: [PATCH] ocproxy: init at 1.50 --- pkgs/tools/networking/ocproxy/default.nix | 32 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/tools/networking/ocproxy/default.nix diff --git a/pkgs/tools/networking/ocproxy/default.nix b/pkgs/tools/networking/ocproxy/default.nix new file mode 100644 index 00000000000..65729d896aa --- /dev/null +++ b/pkgs/tools/networking/ocproxy/default.nix @@ -0,0 +1,32 @@ +{ stdenv, fetchFromGitHub, autoconf, automake, libevent }: + +stdenv.mkDerivation rec { + version = "1.50"; + name = "ocproxy-${version}"; + + src = fetchFromGitHub { + owner = "cernekee"; + repo = "ocproxy"; + rev = "v${version}"; + sha256 = "136vlk2svgls5paf17xi1zahcahgcnmi2p55khh7zpqaar4lzw6s"; + }; + + buildInputs = [ autoconf automake libevent ]; + + preConfigure = '' + patchShebangs autogen.sh + ./autogen.sh + ''; + + meta = with stdenv.lib; { + description = "OpenConnect proxy"; + longdescription = '' + ocproxy is a user-level SOCKS and port forwarding proxy for OpenConnect + based on lwIP. + ''; + homepage = https://github.com/cernekee/ocproxy; + license = licenses.bsd3; + maintainers = [ maintainers.joko ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e982c9c4ee7..cedc20c020b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2780,6 +2780,8 @@ in obexd = callPackage ../tools/bluetooth/obexd { }; + ocproxy = callPackage ../tools/networking/ocproxy { }; + openfortivpn = callPackage ../tools/networking/openfortivpn { }; obexfs = callPackage ../tools/bluetooth/obexfs { };