nixpkgs-suyu/pkgs/os-specific/linux/iputils/builder.sh
Armijn Hemel 3440fd020c replace iputils with a slightly older version to avoid SSL based tools being
built. Still missing are security patches though, these should be ripped
from the Fedora SRPMs...

svn path=/nixpkgs/trunk/; revision=3288
2005-07-04 12:14:06 +00:00

27 lines
570 B
Bash

. $stdenv/setup
tar zxvf $src
cd iputils
echo $src
echo $kernelHeaders
echo $glibc
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
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/