2004-02-18 17:22:31 +01:00
|
|
|
buildinputs=""
|
2005-12-05 15:11:09 +01:00
|
|
|
source $stdenv/setup
|
2004-02-18 17:22:31 +01:00
|
|
|
|
|
|
|
tar xvfj $src
|
|
|
|
cd tools
|
2008-03-20 12:36:31 +01:00
|
|
|
sed -e 's/mconsole//' -e '1s/.*/TUNCTL = \$(shell [ -n tunctl ] \&\& echo tunctl)/' -i Makefile
|
2004-02-18 17:22:31 +01:00
|
|
|
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
|
2008-03-20 12:36:31 +01:00
|
|
|
[ -n $tunctl ] && [ -f $out/bin/tunctl ] || fail_no_tunctl
|