2008-02-21 19:33:21 +00:00
|
|
|
args: with args;
|
2008-02-10 21:54:01 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "vpnc-0.5.1";
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://www.unix-ag.uni-kl.de/~massar/vpnc/vpnc-0.5.1.tar.gz;
|
|
|
|
sha256 = "f63660bd020bbe6a39e8eb67ad60c54d719046c6198a6834371d098947f9a2ed";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./makefile.patch ];
|
|
|
|
|
2008-02-21 19:33:21 +00:00
|
|
|
# The `etc/vpnc/vpnc-script' script relies on `which' and on
|
|
|
|
# `ifconfig' as found in net-tools (not GNU Inetutils).
|
|
|
|
propagatedBuildInputs = [which nettools];
|
|
|
|
|
|
|
|
buildInputs = [libgcrypt perl makeWrapper];
|
|
|
|
|
2008-05-09 09:02:56 +01:00
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace "config.c" \
|
|
|
|
--replace "/etc/vpnc/vpnc-script" "$out/etc/vpnc/vpnc-script"
|
|
|
|
|
|
|
|
substituteInPlace "pcf2vpnc" \
|
|
|
|
--replace "/usr/bin/perl" "${perl}/bin/perl"
|
|
|
|
'';
|
2008-02-10 21:54:01 +00:00
|
|
|
|
2008-02-21 19:33:21 +00:00
|
|
|
postInstall = ''
|
|
|
|
for i in $out/{bin,sbin}/*
|
|
|
|
do
|
|
|
|
wrapProgram $i --prefix PATH : \
|
|
|
|
"${which}/bin:${nettools}/bin:${nettools}/sbin"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2008-02-10 21:54:01 +00:00
|
|
|
meta = {
|
2008-02-21 19:33:21 +00:00
|
|
|
description = ''VPNC, a virtual private network (VPN) client
|
2008-05-09 09:02:56 +01:00
|
|
|
for Cisco's VPN concentrators'';
|
2008-02-10 21:54:01 +00:00
|
|
|
homepage = http://www.unix-ag.uni-kl.de/~massar/vpnc/;
|
2008-05-09 09:02:56 +01:00
|
|
|
license = "GPLv2+";
|
2008-02-10 21:54:01 +00:00
|
|
|
};
|
|
|
|
}
|