mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
01cbcd94b3
svn path=/nixpkgs/trunk/; revision=12433
18 lines
519 B
Bash
18 lines
519 B
Bash
buildinputs=""
|
|
source $stdenv/setup
|
|
|
|
tar xvfj $src
|
|
cd tools
|
|
[ -n "$tunctl" ] && sed -e '1s/.*/TUNCTL = tunctl/' -i Makefile
|
|
[ -z "$mconsole" ] && sed -e 's/mconsole//' -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
|
|
[ -z "$tunctl" ] || [ -f $out/bin/tunctl ] || fail_no_tunctl
|
|
[ -z "$mconsole" ] || [ -f $out/bin/uml_mconsole ] || fail_no_mconsole
|