summary refs log tree commit diff
path: root/pkgs/tools/networking/vtun/default.nix
blob: e14326fe9e62295c957c6edb93be6ea4adb769f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, fetchurl, openssl, lzo, zlib, yacc, flex }:

stdenv.mkDerivation rec {
  name = "vtun-3.0.3";

  src = fetchurl {
    url = "mirror://sourceforge/vtun/${name}.tar.gz";
    sha256 = "1jxrxp3klhc8az54d5qn84cbc0vdafg319jh84dxkrswii7vxp39";
  };

  patchPhase = ''
    sed -i -e 's/-m 755//' -e 's/-o root -g 0//' Makefile.in
    sed -i '/strip/d' Makefile.in
  '';
  buildInputs = [ lzo openssl zlib yacc flex ];

  configureFlags = ''
    --with-lzo-headers=${lzo}/include/lzo
    --with-ssl-headers=${openssl}/include/openssl
    --with-blowfish-headers=${openssl}/include/openssl'';

  meta = with stdenv.lib; {
      description = "Virtual Tunnels over TCP/IP with traffic shaping, compression and encryption";
      homepage = http://vtun.sourceforge.net/;
      license = licenses.gpl2;
      platforms = platforms.linux;
      maintainers = with maintainers; [ pSub ];
  };
}