nixpkgs/pkgs/tools/networking/vpnc/builder.sh

10 lines
248 B
Bash
Raw Normal View History

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