vpnc: Fix `pcf2vpnc'.
svn path=/nixpkgs/trunk/; revision=11791
This commit is contained in:
parent
8b838d3cb2
commit
5052fe194d
@ -1,9 +0,0 @@
|
|||||||
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
|
|
@ -15,7 +15,13 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
buildInputs = [libgcrypt perl makeWrapper];
|
buildInputs = [libgcrypt perl makeWrapper];
|
||||||
|
|
||||||
builder = ./builder.sh;
|
preConfigure = ''
|
||||||
|
substituteInPlace "config.c" \
|
||||||
|
--replace "/etc/vpnc/vpnc-script" "$out/etc/vpnc/vpnc-script"
|
||||||
|
|
||||||
|
substituteInPlace "pcf2vpnc" \
|
||||||
|
--replace "/usr/bin/perl" "${perl}/bin/perl"
|
||||||
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
for i in $out/{bin,sbin}/*
|
for i in $out/{bin,sbin}/*
|
||||||
@ -27,8 +33,8 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = ''VPNC, a virtual private network (VPN) client
|
description = ''VPNC, a virtual private network (VPN) client
|
||||||
for Cisco's VPN concentrators.'';
|
for Cisco's VPN concentrators'';
|
||||||
homepage = http://www.unix-ag.uni-kl.de/~massar/vpnc/;
|
homepage = http://www.unix-ag.uni-kl.de/~massar/vpnc/;
|
||||||
license = "GPL";
|
license = "GPLv2+";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user