2010-02-11 16:45:19 +00:00
|
|
|
{stdenv, fetchurl, iproute, lzo, openssl, nettools}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2011-05-04 18:58:53 +00:00
|
|
|
name = "openvpn-2.2.0";
|
2009-04-06 13:07:18 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-12-22 14:03:55 +00:00
|
|
|
url = "http://swupdate.openvpn.net/community/releases/${name}.tar.gz";
|
2011-05-04 18:58:53 +00:00
|
|
|
sha256 = "0rr59b3ybqr2j5jxl2fdzmm5qbh0hvwi03xfaha6s7k4l6mymsvi";
|
2009-04-06 13:07:18 +00:00
|
|
|
};
|
|
|
|
|
2009-04-28 15:37:52 +00:00
|
|
|
buildInputs = [ iproute lzo openssl ];
|
|
|
|
|
|
|
|
configureFlags = ''
|
|
|
|
--with-ifconfig-path=${nettools}/sbin/ifconfig
|
|
|
|
--with-iproute-path=${iproute}/sbin/ip
|
|
|
|
--with-route-path=${nettools}/sbin/route
|
|
|
|
'';
|
2009-04-06 13:07:18 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description="OpenVPN is a robust and highly flexible tunneling application compatible with many OSes.";
|
|
|
|
homepage="http://openvpn.net/";
|
|
|
|
license = "GPLv2";
|
2010-02-11 16:45:19 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2009-04-06 13:07:18 +00:00
|
|
|
};
|
|
|
|
}
|