@@ -1,37 +0,0 @@
1−{ lib, stdenv, fetchurl, fetchpatch, openssl, lzo, zlib, bison, flex }:
2−
3−stdenv.mkDerivation rec {
4− pname = "vtun";
5− version = "3.0.4";
6−
7− src = fetchurl {
8− url = "mirror://sourceforge/vtun/vtun-${version}.tar.gz";
9− sha256 = "1fcqzn2bdjw31j1hvv6lg99v2phhszm29kp2xambxzp32mmxzy5b";
10− };
11−
12− patches = [
13− (fetchpatch { url = "http://sources.debian.net/data/main/v/vtun/3.0.3-2.2/debian/patches/08-gcc5-inline.patch";
14− sha256 = "18sys97v2hx6vac5zp3ld7sa6kz4izv3g9dnkm0lflbaxhym2vs1";
15− })
16− ];
17−
18− postPatch = ''
19− sed -i -e 's/-m 755//' -e 's/-o root -g 0//' Makefile.in
20− sed -i '/strip/d' Makefile.in
21− '';
22− buildInputs = [ lzo openssl zlib bison flex ];
23−
24− configureFlags = [
25− "--with-lzo-headers=${lzo}/include/lzo"
26− "--with-ssl-headers=${openssl.dev}/include/openssl"
27− "--with-blowfish-headers=${openssl.dev}/include/openssl"
28− ];
29−
30− meta = with lib; {
31− description = "Virtual Tunnels over TCP/IP with traffic shaping, compression and encryption";
32− homepage = "http://vtun.sourceforge.net/";
33− license = licenses.gpl2;
34− platforms = platforms.linux;
35− maintainers = with maintainers; [ pSub ];
36− };
37−}