3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/linux/uml-utilities/builder.sh
Marc Weber 91dd7e2b86 fix: tunctl is build again (also added check)
svn path=/nixpkgs/trunk/; revision=11222
2008-03-20 11:36:31 +00:00

14 lines
369 B
Bash

buildinputs=""
source $stdenv/setup
tar xvfj $src
cd tools
sed -e 's/mconsole//' -e '1s/.*/TUNCTL = \$(shell [ -n tunctl ] \&\& echo tunctl)/' -i Makefile
mkdir $out
mkdir $out/bin
mkdir $out/lib
mkdir $out/lib/uml
make BIN_DIR=$out/bin LIB_DIR=$out/lib/uml
make BIN_DIR=$out/bin LIB_DIR=$out/lib/uml install
[ -n $tunctl ] && [ -f $out/bin/tunctl ] || fail_no_tunctl