nixpkgs/pkgs/tools/networking/vpnc/builder.sh
Ludovic Courtès 4ad48cffed VPNC fix: binary would refer to `/etc/vpnc/vpnc-script'.
svn path=/nixpkgs/trunk/; revision=10619
2008-02-10 22:52:39 +00:00

10 lines
248 B
Bash

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