Merge pull request #173149 from AndersonTorres/MISC

frr: 8.1 -> 8.2.2
main
Anderson Torres 2 years ago committed by GitHub
commit 78e9451320
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 45
      pkgs/servers/frr/default.nix

@ -1,8 +1,6 @@
{ lib { lib
, stdenv , stdenv
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, python3Packages
# build time # build time
, autoreconfHook , autoreconfHook
@ -33,31 +31,22 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "frr"; pname = "frr";
version = "8.1"; version = "8.2.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "FRRouting"; owner = "FRRouting";
repo = pname; repo = pname;
rev = "${pname}-${version}"; rev = "${pname}-${version}";
sha256 = "sha256-hJcgLiPBxOE5QEh0RhtZhM3dOxFqW5H0TUjN+aP4qRk="; hash = "sha256-zuOgbRxyyhFdBplH/K1fpyD+KUWa7FXPDmGKF5Kb7SQ=";
}; };
patches = [
(fetchpatch {
# Fix clippy build on aarch64-linux
# https://github.com/FRRouting/frr/issues/10267
url = "https://github.com/FRRouting/frr/commit/3942ee1f7bc754dd0dd9ae79f89d0f2635be334f.patch";
sha256 = "1i0acfy5k9fbm9cxchrcvkhyw9704srq4wm2hyjqgdimm2dq7ryf";
})
];
nativeBuildInputs = [ nativeBuildInputs = [
autoreconfHook autoreconfHook
bison bison
flex flex
perl perl
pkg-config pkg-config
python3Packages.sphinx python3.pkgs.sphinx
texinfo texinfo
]; ];
@ -78,34 +67,35 @@ stdenv.mkDerivation rec {
]; ];
configureFlags = [ configureFlags = [
"--sysconfdir=/etc/frr"
"--localstatedir=/run/frr"
"--sbindir=$(out)/libexec/frr"
"--disable-exampledir" "--disable-exampledir"
"--enable-user=frr"
"--enable-group=frr"
"--enable-configfile-mask=0640" "--enable-configfile-mask=0640"
"--enable-group=frr"
"--enable-logfile-mask=0640" "--enable-logfile-mask=0640"
"--enable-vty-group=frrvty"
"--enable-snmp"
"--enable-multipath=64" "--enable-multipath=64"
"--enable-snmp"
"--enable-user=frr"
"--enable-vty-group=frrvty"
"--localstatedir=/run/frr"
"--sbindir=$(out)/libexec/frr"
"--sysconfdir=/etc/frr"
]; ];
postPatch = '' postPatch = ''
substituteInPlace tools/frr-reload --replace /usr/lib/frr/ $out/libexec/frr/ substituteInPlace tools/frr-reload \
--replace /usr/lib/frr/ $out/libexec/frr/
''; '';
doCheck = true; doCheck = true;
checkInputs = [ checkInputs = [
nettools nettools
python3Packages.pytest python3.pkgs.pytest
]; ];
enableParallelBuilding = true; enableParallelBuilding = true;
passthru.tests = { inherit (nixosTests) frr; };
meta = with lib; { meta = with lib; {
homepage = "https://frrouting.org/";
description = "FRR BGP/OSPF/ISIS/RIP/RIPNG routing daemon suite"; description = "FRR BGP/OSPF/ISIS/RIP/RIPNG routing daemon suite";
longDescription = '' longDescription = ''
FRRouting (FRR) is a free and open source Internet routing protocol suite FRRouting (FRR) is a free and open source Internet routing protocol suite
@ -129,9 +119,10 @@ stdenv.mkDerivation rec {
infrastructure, web 2.0 businesses, hyperscale services, and Fortune 500 infrastructure, web 2.0 businesses, hyperscale services, and Fortune 500
private clouds. private clouds.
''; '';
homepage = "https://frrouting.org/";
license = with licenses; [ gpl2Plus lgpl21Plus ]; license = with licenses; [ gpl2Plus lgpl21Plus ];
platforms = platforms.unix;
maintainers = with maintainers; [ woffs ]; maintainers = with maintainers; [ woffs ];
platforms = platforms.unix;
}; };
passthru.tests = { inherit (nixosTests) frr; };
} }

Loading…
Cancel
Save