about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOctavian Cerna <octavian.cerna@gmail.com>2016-01-26 23:34:08 +0200
committerOctavian Cerna <octavian.cerna@gmail.com>2016-02-02 11:56:30 +0200
commit3c011d0f1cfcd79a566eabc23ef11e77f9a8c57d (patch)
tree82d2118fc7a0af065b74f517f2059e37e4f82e68
parent35bea14bf0f9a8941d4c6f2e2b88d0652e55ab55 (diff)
downloadnixlib-3c011d0f1cfcd79a566eabc23ef11e77f9a8c57d.tar
nixlib-3c011d0f1cfcd79a566eabc23ef11e77f9a8c57d.tar.gz
nixlib-3c011d0f1cfcd79a566eabc23ef11e77f9a8c57d.tar.bz2
nixlib-3c011d0f1cfcd79a566eabc23ef11e77f9a8c57d.tar.lz
nixlib-3c011d0f1cfcd79a566eabc23ef11e77f9a8c57d.tar.xz
nixlib-3c011d0f1cfcd79a566eabc23ef11e77f9a8c57d.tar.zst
nixlib-3c011d0f1cfcd79a566eabc23ef11e77f9a8c57d.zip
quagga: init at 0.99.24.1
-rw-r--r--lib/maintainers.nix1
-rw-r--r--pkgs/servers/quagga/default.nix72
-rw-r--r--pkgs/top-level/all-packages.nix2
3 files changed, 75 insertions, 0 deletions
diff --git a/lib/maintainers.nix b/lib/maintainers.nix
index 4841f1e34fe6..046624f10f4b 100644
--- a/lib/maintainers.nix
+++ b/lib/maintainers.nix
@@ -300,6 +300,7 @@
   taeer = "Taeer Bar-Yam <taeer@necsi.edu>";
   tailhook = "Paul Colomiets <paul@colomiets.name>";
   taktoa = "Remy Goldschmidt <taktoa@gmail.com>";
+  tavyc = "Octavian Cerna <octavian.cerna@gmail.com>";
   telotortium = "Robert Irelan <rirelan@gmail.com>";
   thall = "Niclas Thall <niclas.thall@gmail.com>";
   thammers = "Tobias Hammerschmidt <jawr@gmx.de>";
diff --git a/pkgs/servers/quagga/default.nix b/pkgs/servers/quagga/default.nix
new file mode 100644
index 000000000000..cdc2905d62db
--- /dev/null
+++ b/pkgs/servers/quagga/default.nix
@@ -0,0 +1,72 @@
+{ stdenv, fetchurl, libcap, libnl, readline, net_snmp, less, perl, texinfo }:
+
+stdenv.mkDerivation rec {
+  name = "quagga-${version}";
+  version = "0.99.24.1";
+
+  src = fetchurl {
+    url = "mirror://savannah/quagga/${name}.tar.gz";
+    sha256 = "0kvmc810m7ssrvgb3213271rpywyxb646v5bzjl1jl88vx3imbl4";
+  };
+
+  buildInputs =
+    [ readline net_snmp ]
+    ++ stdenv.lib.optionals stdenv.isLinux [ libcap libnl ];
+
+  nativeBuildInputs = [ perl texinfo ];
+
+  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.
+    '';
+    homepage = http://www.quagga.net/;
+    license = licenses.gpl2;
+    platforms = platforms.unix;
+    maintainers = with maintainers; [ tavyc ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index a2b6add86257..235b8becebab 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -9593,6 +9593,8 @@ let
     boost = boost155;
   };
 
+  quagga = callPackage ../servers/quagga { };
+
   rabbitmq_server = callPackage ../servers/amqp/rabbitmq-server {
     inherit (darwin.apple_sdk.frameworks) AppKit Carbon Cocoa;
   };