VPNC fix: binary would refer to `/etc/vpnc/vpnc-script'.
svn path=/nixpkgs/trunk/; revision=10619
This commit is contained in:
parent
df326e6a44
commit
4ad48cffed
9
pkgs/tools/networking/vpnc/builder.sh
Normal file
9
pkgs/tools/networking/vpnc/builder.sh
Normal 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
|
@ -10,6 +10,7 @@ stdenv.mkDerivation {
|
||||
patches = [ ./makefile.patch ];
|
||||
|
||||
buildInputs = [libgcrypt perl];
|
||||
builder = ./builder.sh;
|
||||
|
||||
meta = {
|
||||
description = "VPNC, a virtual private network (VPN) client for Cisco's VPN concentrators";
|
||||
|
Loading…
Reference in New Issue
Block a user