2015-01-22 18:30:49 +00:00
|
|
|
{ stdenv, fetchurl, openssl, lzo, zlib, yacc, flex }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "vtun-3.0.3";
|
2009-05-20 18:51:41 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-01-22 18:30:49 +00:00
|
|
|
url = "mirror://sourceforge/vtun/${name}.tar.gz";
|
|
|
|
sha256 = "1jxrxp3klhc8az54d5qn84cbc0vdafg319jh84dxkrswii7vxp39";
|
2009-05-20 18:51:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
2015-01-22 18:30:49 +00:00
|
|
|
sed -i -e 's/-m 755//' -e 's/-o root -g 0//' Makefile.in
|
|
|
|
sed -i '/strip/d' Makefile.in
|
2009-05-20 18:51:41 +01:00
|
|
|
'';
|
|
|
|
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'';
|
|
|
|
|
2015-01-22 18:30:49 +00:00
|
|
|
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 ];
|
2009-05-20 18:51:41 +01:00
|
|
|
};
|
|
|
|
}
|