2017-02-17 13:33:13 +00:00
|
|
|
{ stdenv, fetchurl, libcap, libnl, readline, net_snmp, less, perl, texinfo,
|
|
|
|
pkgconfig, c-ares }:
|
2016-01-26 21:34:08 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "quagga-${version}";
|
2017-06-20 05:04:16 +00:00
|
|
|
version = "1.2.1";
|
2016-01-26 21:34:08 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://savannah/quagga/${name}.tar.gz";
|
2017-06-20 05:04:16 +00:00
|
|
|
sha256 = "1kgvcr9cfgys5asvb5lh5h95silkr624apqm5x68xva19xfvmpda";
|
2016-01-26 21:34:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs =
|
2017-02-17 13:33:13 +00:00
|
|
|
[ readline net_snmp c-ares ]
|
2016-01-26 21:34:08 +00:00
|
|
|
++ stdenv.lib.optionals stdenv.isLinux [ libcap libnl ];
|
|
|
|
|
2017-02-17 13:33:13 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig perl texinfo ];
|
2016-01-26 21:34:08 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--sysconfdir=/etc/quagga"
|
|
|
|
"--localstatedir=/run/quagga"
|
|
|
|
"--sbindir=$(out)/libexec/quagga"
|
|
|
|
"--disable-exampledir"
|
|
|
|
"--enable-user=quagga"
|
|
|
|
"--enable-group=quagga"
|
|
|
|
"--enable-configfile-mask=0640"
|
|
|
|
"--enable-logfile-mask=0640"
|
|
|
|
"--enable-vtysh"
|
|
|
|
"--enable-vty-group=quaggavty"
|
|
|
|
"--enable-snmp"
|
|
|
|
"--enable-multipath=64"
|
|
|
|
"--enable-rtadv"
|
|
|
|
"--enable-irdp"
|
|
|
|
"--enable-opaque-lsa"
|
|
|
|
"--enable-ospf-te"
|
|
|
|
"--enable-pimd"
|
|
|
|
"--enable-isis-topology"
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace vtysh/vtysh.c --replace \"more\" \"${less}/bin/less\"
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
rm -f $out/bin/test_igmpv3_join
|
|
|
|
mv -f $out/libexec/quagga/ospfclient $out/bin/
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Quagga BGP/OSPF/ISIS/RIP/RIPNG routing daemon suite";
|
|
|
|
longDescription = ''
|
|
|
|
GNU Quagga is free software which manages TCP/IP based routing protocols.
|
|
|
|
It supports BGP4, BGP4+, OSPFv2, OSPFv3, IS-IS, RIPv1, RIPv2, and RIPng as
|
|
|
|
well as the IPv6 versions of these.
|
|
|
|
|
|
|
|
As the predecessor Zebra has been considered orphaned, the Quagga project
|
|
|
|
has been formed by members of the zebra mailing list and the former
|
|
|
|
zebra-pj project to continue developing.
|
|
|
|
|
|
|
|
Quagga uses threading if the kernel supports it, but can also run on
|
|
|
|
kernels that do not support threading. Each protocol has its own daemon.
|
|
|
|
|
|
|
|
It is more than a routed replacement, it can be used as a Route Server and
|
|
|
|
a Route Reflector.
|
|
|
|
'';
|
2016-03-25 15:55:26 +00:00
|
|
|
homepage = http://www.nongnu.org/quagga/;
|
2016-01-26 21:34:08 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ tavyc ];
|
|
|
|
};
|
|
|
|
}
|