fix: tunctl is build again (also added check)
svn path=/nixpkgs/trunk/; revision=11222
This commit is contained in:
parent
9d05eb2f2c
commit
91dd7e2b86
@ -3,11 +3,11 @@ source $stdenv/setup
|
||||
|
||||
tar xvfj $src
|
||||
cd tools
|
||||
sed s/mconsole// < Makefile > tmp
|
||||
mv tmp Makefile
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user