mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
82e678362f
svn path=/nixpkgs/trunk/; revision=4335
24 lines
560 B
Bash
24 lines
560 B
Bash
source $stdenv/setup
|
|
|
|
tar zxvf $src
|
|
cd iputils
|
|
|
|
sed -e "s^KERNEL_INCLUDE=.*$^KERNEL_INCLUDE=$kernelHeaders/include^" < Makefile > Makefile.new
|
|
|
|
mv Makefile.new Makefile
|
|
sed -e "s^LIBC_INCLUDE=.*$^LIBC_INCLUDE=$glibc/include^" < Makefile > Makefile.new
|
|
mv Makefile.new Makefile
|
|
|
|
#make ping arping tracepath
|
|
make
|
|
|
|
mkdir -p $out/bin
|
|
mkdir -p $out/sbin
|
|
|
|
install -c arping $out/sbin/
|
|
install -c ping $out/bin/
|
|
install -c ping6 $out/sbin/
|
|
install -c rdisc $out/sbin/
|
|
install -c tracepath $out/sbin/
|
|
install -c tracepath6 $out/sbin/
|
|
install -c traceroute6 $out/sbin/
|