2012-01-18 20:38:27 +00:00
|
|
|
{stdenv, fetchurl, iproute, lzo, openssl}:
|
2010-02-11 16:45:19 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2012-01-18 20:32:17 +00:00
|
|
|
name = "openvpn-2.2.2";
|
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";
|
2012-01-18 20:32:17 +00:00
|
|
|
sha256 = "005cpvdvh8pvsn3bc96lrznlkcccbz5jqa62hipb58rf1qk8pjjl";
|
2009-04-06 13:07:18 +00:00
|
|
|
};
|
|
|
|
|
2009-04-28 15:37:52 +00:00
|
|
|
buildInputs = [ iproute lzo openssl ];
|
|
|
|
|
|
|
|
configureFlags = ''
|
2011-11-18 02:10:14 +00:00
|
|
|
--enable-password-save
|
2012-01-18 20:38:27 +00:00
|
|
|
--enable-iproute2
|
2009-04-28 15:37:52 +00:00
|
|
|
--with-iproute-path=${iproute}/sbin/ip
|
|
|
|
'';
|
2009-04-06 13:07:18 +00:00
|
|
|
|
2012-04-02 22:05:02 +00:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/doc/openvpn/examples
|
|
|
|
cp -r sample-config-files/ $out/share/doc/openvpn/examples
|
|
|
|
cp -r sample-keys/ $out/share/doc/openvpn/examples
|
|
|
|
cp -r easy-rsa/ $out/share/doc/openvpn/examples
|
|
|
|
rm -r $out/share/doc/openvpn/examples/easy-rsa/Windows
|
|
|
|
cp -r sample-scripts/ $out/share/doc/openvpn/examples
|
|
|
|
'';
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|