From 2c99cdce3e965b569b35731feadfb35a79d9ec9a Mon Sep 17 00:00:00 2001 From: Russell O'Connor Date: Mon, 2 Apr 2012 22:05:02 +0000 Subject: [PATCH] Adding examples to share directory The easy-rsa example contains scripts for generating certificates. svn path=/nixpkgs/trunk/; revision=33550 --- pkgs/tools/networking/openvpn/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/tools/networking/openvpn/default.nix b/pkgs/tools/networking/openvpn/default.nix index 98c3dd484dc8..1310fb7d0473 100644 --- a/pkgs/tools/networking/openvpn/default.nix +++ b/pkgs/tools/networking/openvpn/default.nix @@ -16,6 +16,15 @@ stdenv.mkDerivation rec { --with-iproute-path=${iproute}/sbin/ip ''; + 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 + ''; + meta = { description="OpenVPN is a robust and highly flexible tunneling application compatible with many OSes."; homepage="http://openvpn.net/";