2012-10-11 20:38:54 +01:00
|
|
|
{ fetchurl, stdenv, flex, bison, db4, iptables, pkgconfig }:
|
2006-02-16 16:25:03 +00:00
|
|
|
|
2009-07-23 22:34:53 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2013-11-28 07:37:30 +00:00
|
|
|
name = "iproute2-3.12.0";
|
2007-06-20 14:01:59 +01:00
|
|
|
|
2009-01-03 15:13:19 +00:00
|
|
|
src = fetchurl {
|
2013-03-26 14:31:41 +00:00
|
|
|
url = "mirror://kernel/linux/utils/net/iproute2/${name}.tar.xz";
|
2013-11-28 07:37:30 +00:00
|
|
|
sha256 = "04gi11gh087bg2nlxhj0lxrk8l9qxkpr88nsiil23917bm3h1xj4";
|
2006-02-16 16:25:03 +00:00
|
|
|
};
|
2011-02-24 12:04:00 +00:00
|
|
|
|
2013-11-28 07:37:30 +00:00
|
|
|
patch = [ "vpnc.patch" ];
|
2011-02-24 12:04:00 +00:00
|
|
|
|
2009-07-23 22:34:53 +01:00
|
|
|
preConfigure =
|
|
|
|
''
|
|
|
|
patchShebangs ./configure
|
2010-08-14 00:11:11 +01:00
|
|
|
sed -e '/ARPDDIR/d' -i Makefile
|
2009-07-23 22:34:53 +01:00
|
|
|
'';
|
2012-10-11 20:38:54 +01:00
|
|
|
|
2010-08-14 00:11:11 +01:00
|
|
|
makeFlags = "DESTDIR= LIBDIR=$(out)/lib SBINDIR=$(out)/sbin"
|
2012-10-11 20:38:54 +01:00
|
|
|
+ " CONFDIR=$(out)/etc DOCDIR=$(out)/share/doc/${name}"
|
|
|
|
+ " MANDIR=$(out)/share/man";
|
|
|
|
|
|
|
|
buildInputs = [ db4 iptables ];
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [ bison flex pkgconfig ];
|
2012-10-11 20:38:54 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2009-01-03 15:13:19 +00:00
|
|
|
|
2012-10-11 20:38:54 +01:00
|
|
|
# Get rid of useless TeX/SGML docs.
|
|
|
|
postInstall = "rm -rf $out/share/doc";
|
2010-08-14 00:09:53 +01:00
|
|
|
|
|
|
|
meta = {
|
2012-10-11 20:38:54 +01:00
|
|
|
homepage = http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2;
|
|
|
|
description = "A collection of utilities for controlling TCP/IP networking and traffic control in Linux";
|
2010-08-14 00:11:11 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2012-10-11 20:38:54 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
2010-08-14 00:09:53 +01:00
|
|
|
};
|
2006-02-16 16:25:03 +00:00
|
|
|
}
|