openvpn: Update to 2.3.1

This commit is contained in:
Eelco Dolstra 2013-05-28 14:47:23 +02:00
parent 412decd2a4
commit 6c03d641fa

View File

@ -1,35 +1,41 @@
{stdenv, fetchurl, iproute, lzo, openssl}: { stdenv, fetchurl, iproute, lzo, openssl, pam }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "openvpn-2.2.2"; name = "openvpn-2.3.1";
src = fetchurl { src = fetchurl {
url = "http://swupdate.openvpn.net/community/releases/${name}.tar.gz"; url = "http://swupdate.openvpn.net/community/releases/${name}.tar.gz";
sha256 = "005cpvdvh8pvsn3bc96lrznlkcccbz5jqa62hipb58rf1qk8pjjl"; sha256 = "0g7vf3f6z0h4kdqlqr8jd0gapi0ains6xcvlvfy8cicxnf2psbdx";
}; };
buildInputs = [ iproute lzo openssl ]; buildInputs = [ iproute lzo openssl pam ];
configureFlags = '' configureFlags = ''
--enable-password-save --enable-password-save
--enable-iproute2 --enable-iproute2
--with-iproute-path=${iproute}/sbin/ip --enable-systemd
IPROUTE=${iproute}/sbin/ip
'';
preConfigure = ''
substituteInPlace ./src/openvpn/console.c \
--replace /bin/systemd-ask-password /run/current-system/sw/bin/systemd-ask-password
''; '';
postInstall = '' postInstall = ''
mkdir -p $out/share/doc/openvpn/examples mkdir -p $out/share/doc/openvpn/examples
cp -r sample-config-files/ $out/share/doc/openvpn/examples cp -r sample/sample-config-files/ $out/share/doc/openvpn/examples
cp -r sample-keys/ $out/share/doc/openvpn/examples cp -r sample/sample-keys/ $out/share/doc/openvpn/examples
cp -r easy-rsa/ $out/share/doc/openvpn/examples cp -r sample/sample-scripts/ $out/share/doc/openvpn/examples
rm -r $out/share/doc/openvpn/examples/easy-rsa/Windows
cp -r sample-scripts/ $out/share/doc/openvpn/examples
''; '';
enableParallelBuilding = true;
meta = { meta = {
description="OpenVPN is a robust and highly flexible tunneling application compatible with many OSes."; description = "A robust and highly flexible tunneling application";
homepage="http://openvpn.net/"; homepage = http://openvpn.net/;
license = "GPLv2"; license = "GPLv2";
maintainers = with stdenv.lib.maintainers; [viric]; maintainers = [ stdenv.lib.maintainers.viric ];
platforms = with stdenv.lib.platforms; linux; platforms = stdenv.lib.platforms.linux;
}; };
} }