nixpkgs/pkgs/os-specific/linux/uml-utilities/builder.sh
2008-07-22 15:43:55 +00:00

15 lines
421 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
ln -s $out/lib/uml/port-helper $out/bin/port-helper
[ -n $tunctl ] && [ -f $out/bin/tunctl ] || fail_no_tunctl