VPNC fix: binary would refer to `/etc/vpnc/vpnc-script'.

svn path=/nixpkgs/trunk/; revision=10619
This commit is contained in:
Ludovic Courtès 2008-02-10 22:52:39 +00:00
parent df326e6a44
commit 4ad48cffed
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,9 @@
source "$stdenv/setup"
tar zxvf "$src" &&
cd vpnc-*.*
cat config.c | \
sed "s|/etc/vpnc/vpnc-script|$out/etc/vpnc/vpnc-script|g" > ,,tmp && \
mv ,,tmp config.c && \
patchPhase && buildPhase && installPhase && fixupPhase && distPhase

View File

@ -10,6 +10,7 @@ stdenv.mkDerivation {
patches = [ ./makefile.patch ]; patches = [ ./makefile.patch ];
buildInputs = [libgcrypt perl]; buildInputs = [libgcrypt perl];
builder = ./builder.sh;
meta = { meta = {
description = "VPNC, a virtual private network (VPN) client for Cisco's VPN concentrators"; description = "VPNC, a virtual private network (VPN) client for Cisco's VPN concentrators";