2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, openssl, lzo, zlib, yacc, flex }:
|
2015-01-22 18:30:49 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-11-20 15:06:42 +00:00
|
|
|
name = "vtun-3.0.4";
|
2009-05-20 17:51:41 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-01-22 18:30:49 +00:00
|
|
|
url = "mirror://sourceforge/vtun/${name}.tar.gz";
|
2016-11-20 15:06:42 +00:00
|
|
|
sha256 = "1fcqzn2bdjw31j1hvv6lg99v2phhszm29kp2xambxzp32mmxzy5b";
|
2009-05-20 17:51:41 +00:00
|
|
|
};
|
|
|
|
|
2016-07-16 13:07:21 +00:00
|
|
|
patches = [
|
2020-04-01 01:11:51 +00:00
|
|
|
(fetchpatch { url = "http://sources.debian.net/data/main/v/vtun/3.0.3-2.2/debian/patches/08-gcc5-inline.patch";
|
2016-07-16 13:07:21 +00:00
|
|
|
sha256 = "18sys97v2hx6vac5zp3ld7sa6kz4izv3g9dnkm0lflbaxhym2vs1";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
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 17:51:41 +00:00
|
|
|
'';
|
|
|
|
buildInputs = [ lzo openssl zlib yacc flex ];
|
|
|
|
|
2018-07-25 21:44:21 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-lzo-headers=${lzo}/include/lzo"
|
|
|
|
"--with-ssl-headers=${openssl.dev}/include/openssl"
|
|
|
|
"--with-blowfish-headers=${openssl.dev}/include/openssl"
|
|
|
|
];
|
2009-05-20 17:51:41 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-01-22 18:30:49 +00:00
|
|
|
description = "Virtual Tunnels over TCP/IP with traffic shaping, compression and encryption";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://vtun.sourceforge.net/";
|
2015-01-22 18:30:49 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
2009-05-20 17:51:41 +00:00
|
|
|
};
|
|
|
|
}
|