Adding BadVPN network (mostly BPN) tools
This commit is contained in:
parent
9f9f905819
commit
98e8d9d5a3
|
@ -0,0 +1,35 @@
|
|||
{stdenv, fetchurl, cmake, openssl, nss, pkgconfig, nspr, bash}:
|
||||
let
|
||||
s = # Generated upstream information
|
||||
rec {
|
||||
baseName="badvpn";
|
||||
version="1.999.128";
|
||||
name="${baseName}-${version}";
|
||||
hash="1z4v1jydv8zkkszsq7scc17rw5dqz9zlpcc40ldxsw34arfqvcnn";
|
||||
url="http://badvpn.googlecode.com/files/badvpn-1.999.128.tar.bz2";
|
||||
sha256="1z4v1jydv8zkkszsq7scc17rw5dqz9zlpcc40ldxsw34arfqvcnn";
|
||||
};
|
||||
buildInputs = [
|
||||
cmake openssl nss pkgconfig nspr
|
||||
];
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
inherit (s) name version;
|
||||
inherit buildInputs;
|
||||
src = fetchurl {
|
||||
inherit (s) url sha256;
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
find . -name '*.sh' -exec sed -e 's@#!/bin/sh@${stdenv.shell}@' -i '{}' ';'
|
||||
find . -name '*.sh' -exec sed -e 's@#!/bin/bash@${bash}/bin/bash@' -i '{}' ';'
|
||||
'';
|
||||
|
||||
meta = {
|
||||
inherit (s) version;
|
||||
description = ''A set of network-related (mostly VPN-related) tools'';
|
||||
license = stdenv.lib.licenses.bsd3 ;
|
||||
maintainers = [stdenv.lib.maintainers.raskin];
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
};
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
url http://gc.codehum.com/p/badvpn/downloads/list
|
||||
version_link '[.]tar[.][a-z0-9]+$'
|
||||
process 'gc.codehum.com//' ''
|
|
@ -517,6 +517,8 @@ let
|
|||
|
||||
babeld = callPackage ../tools/networking/babeld { };
|
||||
|
||||
badvpn = callPackage ../tools/networking/badvpn {};
|
||||
|
||||
banner = callPackage ../games/banner {};
|
||||
|
||||
barcode = callPackage ../tools/graphics/barcode {};
|
||||
|
|
Loading…
Reference in New Issue