Compare commits
3 Commits
f35
...
frr-7.4-1.
| Author | SHA1 | Date | |
|---|---|---|---|
| 17e9db26be | |||
| 9570828e2d | |||
|
|
3d27b07fe4 |
5
.gitignore
vendored
5
.gitignore
vendored
@@ -4,8 +4,3 @@
|
|||||||
/remove-babeld-ldpd.sh
|
/remove-babeld-ldpd.sh
|
||||||
/frr-7.3.1.tar.gz
|
/frr-7.3.1.tar.gz
|
||||||
/frr-7.4.tar.gz
|
/frr-7.4.tar.gz
|
||||||
/frr-7.5.tar.gz
|
|
||||||
/frr-7.5.1.tar.gz
|
|
||||||
/frr-8.0.1.tar.gz
|
|
||||||
/frr-8.2.tar.gz
|
|
||||||
/frr-8.2.2.tar.gz
|
|
||||||
|
|||||||
93
0001-nhrp-Make-vici-socket-path-configurable.patch
Normal file
93
0001-nhrp-Make-vici-socket-path-configurable.patch
Normal file
@@ -0,0 +1,93 @@
|
|||||||
|
From 354196c027e81affb05163a6c3676eef1ba06dd9 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Zoran Pericic <zpericic@netst.org>
|
||||||
|
Date: Sat, 25 Jan 2020 19:38:39 +0100
|
||||||
|
Subject: [PATCH] nhrp: Make vici socket path configurable
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
nhrp: Configure vici socket path using
|
||||||
|
|
||||||
|
configure --with-vici-socket=/var/run/charon.vici
|
||||||
|
|
||||||
|
If not specified default to /var/run/charon.vici
|
||||||
|
|
||||||
|
Signed-off-by: Zoran Peričić <zpericic@netst.org>
|
||||||
|
---
|
||||||
|
configure.ac | 8 ++++++++
|
||||||
|
doc/user/installation.rst | 4 ++++
|
||||||
|
nhrpd/README.nhrpd | 3 ++-
|
||||||
|
nhrpd/vici.c | 2 +-
|
||||||
|
4 files changed, 15 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/configure.ac b/configure.ac
|
||||||
|
index 3cc74c411..8e86ba87f 100755
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -139,6 +139,13 @@ AC_ARG_WITH([yangmodelsdir], [AS_HELP_STRING([--with-yangmodelsdir=DIR], [yang m
|
||||||
|
])
|
||||||
|
AC_SUBST([yangmodelsdir])
|
||||||
|
|
||||||
|
+AC_ARG_WITH([vici-socket], [AS_HELP_STRING([--with-vici-socket=PATH], [vici-socket (/var/run/charon.vici)])], [
|
||||||
|
+ vici_socket="$withval"
|
||||||
|
+], [
|
||||||
|
+ vici_socket="/var/run/charon.vici"
|
||||||
|
+])
|
||||||
|
+AC_DEFINE_UNQUOTED([VICI_SOCKET], ["$vici_socket"], [StrongSWAN vici socket path])
|
||||||
|
+
|
||||||
|
AC_ARG_ENABLE(tcmalloc,
|
||||||
|
AS_HELP_STRING([--enable-tcmalloc], [Turn on tcmalloc]),
|
||||||
|
[case "${enableval}" in
|
||||||
|
@@ -2512,6 +2519,7 @@ group for vty sockets : ${enable_vty_group}
|
||||||
|
config file mask : ${enable_configfile_mask}
|
||||||
|
log file mask : ${enable_logfile_mask}
|
||||||
|
zebra protobuf enabled : ${enable_protobuf:-no}
|
||||||
|
+vici socket path : ${vici_socket}
|
||||||
|
|
||||||
|
The above user and group must have read/write access to the state file
|
||||||
|
directory and to the config files in the config file directory."
|
||||||
|
diff --git a/doc/user/installation.rst b/doc/user/installation.rst
|
||||||
|
index 0fd33eace..ee06578b7 100644
|
||||||
|
--- a/doc/user/installation.rst
|
||||||
|
+++ b/doc/user/installation.rst
|
||||||
|
@@ -380,6 +380,10 @@ options to the configuration script.
|
||||||
|
Look for YANG modules in `dir` [`prefix`/share/yang]. Note that the FRR
|
||||||
|
YANG modules will be installed here.
|
||||||
|
|
||||||
|
+.. option:: --with-vici-socket <path>
|
||||||
|
+
|
||||||
|
+ Set StrongSWAN vici interface socket path [/var/run/charon.vici].
|
||||||
|
+
|
||||||
|
Python dependency, documentation and tests
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
diff --git a/nhrpd/README.nhrpd b/nhrpd/README.nhrpd
|
||||||
|
index 569b3f446..8bb5f69be 100644
|
||||||
|
--- a/nhrpd/README.nhrpd
|
||||||
|
+++ b/nhrpd/README.nhrpd
|
||||||
|
@@ -126,7 +126,8 @@ Integration with strongSwan
|
||||||
|
|
||||||
|
Contrary to opennhrp, Quagga/NHRP has tight integration with IKE daemon.
|
||||||
|
Currently strongSwan is supported using the VICI protocol. strongSwan
|
||||||
|
-is connected using UNIX socket (hardcoded now as /var/run/charon.vici).
|
||||||
|
+is connected using UNIX socket (default /var/run/charon.vici use configure
|
||||||
|
+argument --with-vici-socket= to change).
|
||||||
|
Thus nhrpd needs to be run as user that can open that file.
|
||||||
|
|
||||||
|
Currently, you will need patched strongSwan. The working tree is at:
|
||||||
|
diff --git a/nhrpd/vici.c b/nhrpd/vici.c
|
||||||
|
index 2dc05a4aa..86554f53d 100644
|
||||||
|
--- a/nhrpd/vici.c
|
||||||
|
+++ b/nhrpd/vici.c
|
||||||
|
@@ -478,7 +478,7 @@ static int vici_reconnect(struct thread *t)
|
||||||
|
if (vici->fd >= 0)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
- fd = sock_open_unix("/var/run/charon.vici");
|
||||||
|
+ fd = sock_open_unix(VICI_SOCKET);
|
||||||
|
if (fd < 0) {
|
||||||
|
debugf(NHRP_DEBUG_VICI,
|
||||||
|
"%s: failure connecting VICI socket: %s", __func__,
|
||||||
|
--
|
||||||
|
2.26.2
|
||||||
|
|
||||||
20
0001-use-python3.patch
Normal file
20
0001-use-python3.patch
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
diff --git a/tools/frr-reload.py b/tools/frr-reload.py
|
||||||
|
index 208fb11..0692adc 100755
|
||||||
|
--- a/tools/frr-reload.py
|
||||||
|
+++ b/tools/frr-reload.py
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-#!/usr/bin/python
|
||||||
|
+#!/usr/bin/python3
|
||||||
|
# Frr Reloader
|
||||||
|
# Copyright (C) 2014 Cumulus Networks, Inc.
|
||||||
|
#
|
||||||
|
diff --git a/tools/generate_support_bundle.py b/tools/generate_support_bundle.py
|
||||||
|
index 540b7a1..0876ebb 100755
|
||||||
|
--- a/tools/generate_support_bundle.py
|
||||||
|
+++ b/tools/generate_support_bundle.py
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-#!/usr/bin/python
|
||||||
|
+#!/usr/bin/python3
|
||||||
|
|
||||||
|
########################################################
|
||||||
|
### Python Script to generate the FRR support bundle ###
|
||||||
@@ -19,7 +19,7 @@ index 0b7af18..0533e24 100644
|
|||||||
lib/skiplist.c \
|
lib/skiplist.c \
|
||||||
lib/sockopt.c \
|
lib/sockopt.c \
|
||||||
@@ -170,7 +170,6 @@ pkginclude_HEADERS += \
|
@@ -170,7 +170,6 @@ pkginclude_HEADERS += \
|
||||||
lib/link_state.h \
|
lib/linklist.h \
|
||||||
lib/log.h \
|
lib/log.h \
|
||||||
lib/log_vty.h \
|
lib/log_vty.h \
|
||||||
- lib/md5.h \
|
- lib/md5.h \
|
||||||
@@ -27,7 +27,7 @@ index 0b7af18..0533e24 100644
|
|||||||
lib/module.h \
|
lib/module.h \
|
||||||
lib/monotime.h \
|
lib/monotime.h \
|
||||||
@@ -191,7 +190,6 @@ pkginclude_HEADERS += \
|
@@ -191,7 +190,6 @@ pkginclude_HEADERS += \
|
||||||
lib/route_opaque.h \
|
lib/routemap.h \
|
||||||
lib/sbuf.h \
|
lib/sbuf.h \
|
||||||
lib/seqlock.h \
|
lib/seqlock.h \
|
||||||
- lib/sha256.h \
|
- lib/sha256.h \
|
||||||
|
|||||||
@@ -1,23 +0,0 @@
|
|||||||
diff --git a/tests/lib/subdir.am b/tests/lib/subdir.am
|
|
||||||
index 7b5eaa4..5c82f69 100644
|
|
||||||
--- a/tests/lib/subdir.am
|
|
||||||
+++ b/tests/lib/subdir.am
|
|
||||||
@@ -18,18 +18,6 @@ tests_lib_test_frrscript_SOURCES = tests/lib/test_frrscript.c
|
|
||||||
EXTRA_DIST += tests/lib/test_frrscript.py
|
|
||||||
|
|
||||||
|
|
||||||
-##############################################################################
|
|
||||||
-GRPC_TESTS_LDADD = staticd/libstatic.a grpc/libfrrgrpc_pb.la -lgrpc++ -lprotobuf $(ALL_TESTS_LDADD) $(LIBYANG_LIBS) -lm
|
|
||||||
-
|
|
||||||
-if GRPC
|
|
||||||
-check_PROGRAMS += tests/lib/test_grpc
|
|
||||||
-endif
|
|
||||||
-tests_lib_test_grpc_CXXFLAGS = $(WERROR) $(TESTS_CXXFLAGS)
|
|
||||||
-tests_lib_test_grpc_CPPFLAGS = $(TESTS_CPPFLAGS)
|
|
||||||
-tests_lib_test_grpc_LDADD = $(GRPC_TESTS_LDADD)
|
|
||||||
-tests_lib_test_grpc_SOURCES = tests/lib/test_grpc.cpp
|
|
||||||
-
|
|
||||||
-
|
|
||||||
##############################################################################
|
|
||||||
if ZEROMQ
|
|
||||||
check_PROGRAMS += tests/lib/test_zmq
|
|
||||||
14
0006-python-version.patch
Normal file
14
0006-python-version.patch
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
diff --git a/m4/ax_python.m4 b/m4/ax_python.m4
|
||||||
|
index d293da525..9f43ea0ab 100644
|
||||||
|
--- a/m4/ax_python.m4
|
||||||
|
+++ b/m4/ax_python.m4
|
||||||
|
@@ -186,7 +186,8 @@ AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
|
||||||
|
PYTHON_CFLAGS="`\"$pycfg\" --includes`"
|
||||||
|
- if test x"${py_ver}" = x"3.8" || test x"{py_ver}" = x"3.9"; then
|
||||||
|
+ minor_ver=${py_ver#*\.}
|
||||||
|
+ if test $((minor_ver)) -gt 7; then
|
||||||
|
PYTHON_LIBS="`\"$pycfg\" --ldflags --embed`"
|
||||||
|
else
|
||||||
|
PYTHON_LIBS="`\"$pycfg\" --ldflags`"
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
#Type Name ID GECOS Home directory Shell
|
|
||||||
g frrvty -
|
|
||||||
u frr - "FRRouting routing suite" /var/run/frr /sbin/nologin
|
|
||||||
m frr frrvty
|
|
||||||
225
frr.spec
225
frr.spec
@@ -1,64 +1,42 @@
|
|||||||
%global frr_libdir %{_libexecdir}/frr
|
%global frrversion 7.4
|
||||||
|
%global frr_libdir /usr/lib/frr
|
||||||
|
%global checkout .st.1
|
||||||
|
|
||||||
%global _hardened_build 1
|
%global _hardened_build 1
|
||||||
%define _legacy_common_support 1
|
%define _legacy_common_support 1
|
||||||
|
|
||||||
Name: frr
|
Name: frr
|
||||||
Version: 8.2.2
|
Version: 7.4
|
||||||
Release: 1%{?dist}
|
Release: 1%{?checkout}%{?dist}
|
||||||
Summary: Routing daemon
|
Summary: Routing daemon
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://www.frrouting.org
|
URL: http://www.frrouting.org
|
||||||
Source0: https://github.com/FRRouting/frr/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
|
Source0: https://github.com/FRRouting/frr/releases/download/%{name}-%{frrversion}/%{name}-%{frrversion}.tar.gz
|
||||||
Source1: %{name}-tmpfiles.conf
|
Source1: %{name}-tmpfiles.conf
|
||||||
Source2: %{name}-sysusers.conf
|
BuildRequires: perl-generators
|
||||||
|
BuildRequires: gcc
|
||||||
|
BuildRequires: net-snmp-devel
|
||||||
|
BuildRequires: texinfo libcap-devel autoconf automake libtool patch groff
|
||||||
|
BuildRequires: readline readline-devel ncurses ncurses-devel
|
||||||
|
BuildRequires: git pam-devel c-ares-devel
|
||||||
|
BuildRequires: json-c-devel bison >= 2.7 flex perl-XML-LibXML
|
||||||
|
BuildRequires: python3-devel python3-sphinx python3-pytest
|
||||||
|
BuildRequires: systemd systemd-devel
|
||||||
|
BuildRequires: libyang-devel >= 0.16.74
|
||||||
|
Requires: net-snmp ncurses
|
||||||
|
Requires(post): systemd /sbin/install-info
|
||||||
|
Requires(preun): systemd /sbin/install-info
|
||||||
|
Requires(postun): systemd
|
||||||
|
Provides: routingdaemon = %{version}-%{release}
|
||||||
|
Conflicts: quagga
|
||||||
|
|
||||||
Patch0000: 0000-remove-babeld-and-ldpd.patch
|
Patch0000: 0000-remove-babeld-and-ldpd.patch
|
||||||
|
Patch0001: 0001-use-python3.patch
|
||||||
Patch0002: 0002-enable-openssl.patch
|
Patch0002: 0002-enable-openssl.patch
|
||||||
Patch0003: 0003-disable-eigrp-crypto.patch
|
Patch0003: 0003-disable-eigrp-crypto.patch
|
||||||
Patch0004: 0004-fips-mode.patch
|
Patch0004: 0004-fips-mode.patch
|
||||||
Patch0005: 0005-remove-grpc-test.patch
|
Patch0006: 0006-python-version.patch
|
||||||
|
Patch0060: 0001-nhrp-Make-vici-socket-path-configurable.patch
|
||||||
BuildRequires: autoconf
|
|
||||||
BuildRequires: automake
|
|
||||||
BuildRequires: bison >= 2.7
|
|
||||||
BuildRequires: c-ares-devel
|
|
||||||
BuildRequires: flex
|
|
||||||
BuildRequires: gcc
|
|
||||||
BuildRequires: gcc-c++
|
|
||||||
BuildRequires: git-core
|
|
||||||
BuildRequires: groff
|
|
||||||
BuildRequires: grpc-devel
|
|
||||||
BuildRequires: grpc-plugins
|
|
||||||
BuildRequires: json-c-devel
|
|
||||||
BuildRequires: libcap-devel
|
|
||||||
BuildRequires: libtool
|
|
||||||
BuildRequires: libyang-devel >= 0.16.74
|
|
||||||
BuildRequires: make
|
|
||||||
BuildRequires: ncurses
|
|
||||||
BuildRequires: ncurses-devel
|
|
||||||
BuildRequires: net-snmp-devel
|
|
||||||
BuildRequires: pam-devel
|
|
||||||
BuildRequires: patch
|
|
||||||
BuildRequires: perl-XML-LibXML
|
|
||||||
BuildRequires: perl-generators
|
|
||||||
BuildRequires: python3-devel
|
|
||||||
BuildRequires: python3-pytest
|
|
||||||
BuildRequires: python3-sphinx
|
|
||||||
BuildRequires: readline-devel
|
|
||||||
BuildRequires: systemd-devel
|
|
||||||
BuildRequires: systemd-rpm-macros
|
|
||||||
BuildRequires: texinfo
|
|
||||||
|
|
||||||
Requires: ncurses
|
|
||||||
Requires: net-snmp
|
|
||||||
Requires(post): hostname
|
|
||||||
%{?sysusers_requires_compat}
|
|
||||||
Requires(post): systemd
|
|
||||||
Requires(postun): systemd
|
|
||||||
Requires(preun): systemd
|
|
||||||
Conflicts: quagga
|
|
||||||
Provides: routingdaemon = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
FRRouting is free software that manages TCP/IP based routing protocols. It takes
|
FRRouting is free software that manages TCP/IP based routing protocols. It takes
|
||||||
@@ -97,54 +75,60 @@ autoreconf -ivf
|
|||||||
--disable-babeld \
|
--disable-babeld \
|
||||||
--with-moduledir=%{_libdir}/frr/modules \
|
--with-moduledir=%{_libdir}/frr/modules \
|
||||||
--with-crypto=openssl \
|
--with-crypto=openssl \
|
||||||
--enable-fpm \
|
--with-vici-socket=/run/strongswan/charon.vici \
|
||||||
--enable-grpc
|
--enable-fpm
|
||||||
|
|
||||||
%make_build MAKEINFO="makeinfo --no-split" PYTHON=%{__python3}
|
%make_build MAKEINFO="makeinfo --no-split" PYTHON=%{__python3}
|
||||||
|
|
||||||
# Build info documentation
|
pushd doc
|
||||||
%make_build -C doc info
|
make info
|
||||||
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/{frr,rc.d/init.d,sysconfig,logrotate.d,pam.d,default} \
|
mkdir -p %{buildroot}/etc/{frr,rc.d/init.d,sysconfig,logrotate.d,pam.d,default} \
|
||||||
%{buildroot}%{_localstatedir}/log/frr %{buildroot}%{_infodir} \
|
%{buildroot}/var/log/frr %{buildroot}%{_infodir} \
|
||||||
%{buildroot}%{_unitdir}
|
%{buildroot}%{_unitdir}
|
||||||
|
|
||||||
mkdir -p -m 0755 %{buildroot}%{_libdir}/frr
|
mkdir -p -m 0755 %{buildroot}%{_libdir}/frr
|
||||||
mkdir -p %{buildroot}%{_tmpfilesdir}
|
mkdir -p %{buildroot}%{_tmpfilesdir}
|
||||||
mkdir -p %{buildroot}%{_sysusersdir}
|
|
||||||
|
|
||||||
%make_install
|
%make_install
|
||||||
|
|
||||||
# Remove this file, as it is uninstalled and causes errors when building on RH9
|
# Remove this file, as it is uninstalled and causes errors when building on RH9
|
||||||
rm -rf %{buildroot}%{_infodir}/dir
|
rm -rf %{buildroot}/usr/share/info/dir
|
||||||
|
|
||||||
install -p -m 644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf
|
install -p -m 644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf
|
||||||
install -p -m 644 %{SOURCE2} %{buildroot}%{_sysusersdir}/%{name}.conf
|
install -p -m 644 %{_builddir}/%{name}-%{frrversion}/tools/etc/frr/daemons %{buildroot}/etc/frr/daemons
|
||||||
install -p -m 644 tools/etc/frr/daemons %{buildroot}%{_sysconfdir}/frr/daemons
|
install -p -m 644 %{_builddir}/%{name}-%{frrversion}/tools/frr.service %{buildroot}%{_unitdir}/frr.service
|
||||||
install -p -m 644 tools/frr.service %{buildroot}%{_unitdir}/frr.service
|
install -p -m 755 %{_builddir}/%{name}-%{frrversion}/tools/frrinit.sh %{buildroot}%{frr_libdir}/frr
|
||||||
install -p -m 755 tools/frrinit.sh %{buildroot}%{frr_libdir}/frr
|
install -p -m 755 %{_builddir}/%{name}-%{frrversion}/tools/frrcommon.sh %{buildroot}%{frr_libdir}/frrcommon.sh
|
||||||
install -p -m 755 tools/frrcommon.sh %{buildroot}%{frr_libdir}/frrcommon.sh
|
install -p -m 755 %{_builddir}/%{name}-%{frrversion}/tools/watchfrr.sh %{buildroot}%{frr_libdir}/watchfrr.sh
|
||||||
install -p -m 755 tools/watchfrr.sh %{buildroot}%{frr_libdir}/watchfrr.sh
|
|
||||||
|
|
||||||
install -p -m 644 redhat/frr.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/frr
|
install -p -m 644 %{_builddir}/%{name}-%{frrversion}/redhat/frr.logrotate %{buildroot}/etc/logrotate.d/frr
|
||||||
install -p -m 644 redhat/frr.pam %{buildroot}%{_sysconfdir}/pam.d/frr
|
install -p -m 644 %{_builddir}/%{name}-%{frrversion}/redhat/frr.pam %{buildroot}/etc/pam.d/frr
|
||||||
install -d -m 775 %{buildroot}/run/frr
|
install -d -m 775 %{buildroot}/run/frr
|
||||||
|
|
||||||
# Delete libtool archives
|
rm %{buildroot}%{_libdir}/frr/*.la
|
||||||
find %{buildroot} -type f -name "*.la" -delete -print
|
rm %{buildroot}%{_libdir}/frr/modules/*.la
|
||||||
|
|
||||||
#Upstream does not maintain a stable API, these headers from -devel subpackage are no longer needed
|
#Upstream does not maintain a stable API, these headers from -devel subpackage are no longer needed
|
||||||
rm %{buildroot}%{_libdir}/frr/*.so
|
rm %{buildroot}%{_libdir}/frr/*.so
|
||||||
rm -r %{buildroot}%{_includedir}/frr/
|
rm -r %{buildroot}%{_includedir}/frr/
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
%sysusers_create_compat %{SOURCE2}
|
getent group frrvty >/dev/null 2>&1 || groupadd -r frrvty >/dev/null 2>&1 || :
|
||||||
|
getent group frr >/dev/null 2>&1 || groupadd -r frr >/dev/null 2>&1 || :
|
||||||
|
getent passwd frr >/dev/null 2>&1 || useradd -M -r -g frr -s /sbin/nologin \
|
||||||
|
-c "FRRouting routing suite" -d %{_localstatedir}/run/frr frr || :
|
||||||
|
usermod -aG frrvty frr
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%systemd_post frr.service
|
%systemd_post frr.service
|
||||||
|
|
||||||
|
if [ -f %{_infodir}/%{name}.inf* ]; then
|
||||||
|
install-info %{_infodir}/frr.info %{_infodir}/dir || :
|
||||||
|
fi
|
||||||
|
|
||||||
# Create dummy files if they don't exist so basic functions can be used.
|
# Create dummy files if they don't exist so basic functions can be used.
|
||||||
if [ ! -e %{_sysconfdir}/frr/frr.conf ]; then
|
if [ ! -e %{_sysconfdir}/frr/frr.conf ]; then
|
||||||
echo "hostname `hostname`" > %{_sysconfdir}/frr/frr.conf
|
echo "hostname `hostname`" > %{_sysconfdir}/frr/frr.conf
|
||||||
@@ -152,29 +136,36 @@ if [ ! -e %{_sysconfdir}/frr/frr.conf ]; then
|
|||||||
chmod 640 %{_sysconfdir}/frr/frr.conf
|
chmod 640 %{_sysconfdir}/frr/frr.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#still used by vtysh, this way no error is produced when using vtysh
|
|
||||||
if [ ! -e %{_sysconfdir}/frr/vtysh.conf ]; then
|
|
||||||
touch %{_sysconfdir}/frr/vtysh.conf
|
|
||||||
chmod 640 %{_sysconfdir}/frr/vtysh.conf
|
|
||||||
chown frr:frrvty %{_sysconfdir}/frr/vtysh.conf
|
|
||||||
fi
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%systemd_postun_with_restart frr.service
|
%systemd_postun_with_restart frr.service
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%systemd_preun frr.service
|
%systemd_preun frr.service
|
||||||
|
|
||||||
|
#only when removing frr
|
||||||
|
if [ $1 -eq 0 ]; then
|
||||||
|
if [ -f %{_infodir}/%{name}.inf* ]; then
|
||||||
|
install-info --delete %{_infodir}/frr.info %{_infodir}/dir || :
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
%check
|
%check
|
||||||
#this should be temporary, the grpc test is just badly designed
|
make check PYTHON=%{__python3}
|
||||||
rm tests/lib/*grpc*
|
|
||||||
%make_build check PYTHON=%{__python3}
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
%license COPYING
|
%license COPYING
|
||||||
|
%doc zebra/zebra.conf.sample
|
||||||
|
%doc isisd/isisd.conf.sample
|
||||||
|
%doc ripd/ripd.conf.sample
|
||||||
|
%doc bgpd/bgpd.conf.sample*
|
||||||
|
%doc ospfd/ospfd.conf.sample
|
||||||
|
%doc ospf6d/ospf6d.conf.sample
|
||||||
|
%doc ripngd/ripngd.conf.sample
|
||||||
|
%doc pimd/pimd.conf.sample
|
||||||
%doc doc/mpls
|
%doc doc/mpls
|
||||||
%dir %attr(750,frr,frr) %{_sysconfdir}/frr
|
%dir %attr(640,frr,frr) %{_sysconfdir}/frr
|
||||||
%dir %attr(755,frr,frr) %{_localstatedir}/log/frr
|
%dir %attr(755,frr,frr) /var/log/frr
|
||||||
%dir %attr(755,frr,frr) /run/frr
|
%dir %attr(755,frr,frr) /run/frr
|
||||||
%{_infodir}/*info*
|
%{_infodir}/*info*
|
||||||
%{_mandir}/man*/*
|
%{_mandir}/man*/*
|
||||||
@@ -185,73 +176,16 @@ rm tests/lib/*grpc*
|
|||||||
%{_libdir}/frr/*.so.*
|
%{_libdir}/frr/*.so.*
|
||||||
%dir %{_libdir}/frr/modules
|
%dir %{_libdir}/frr/modules
|
||||||
%{_libdir}/frr/modules/*
|
%{_libdir}/frr/modules/*
|
||||||
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/logrotate.d/frr
|
%config(noreplace) %attr(644,root,root) /etc/logrotate.d/frr
|
||||||
%config(noreplace) %attr(644,frr,frr) %{_sysconfdir}/frr/daemons
|
%config(noreplace) %attr(644,frr,frr) /etc/frr/daemons
|
||||||
%config(noreplace) %{_sysconfdir}/pam.d/frr
|
%config(noreplace) /etc/pam.d/frr
|
||||||
%{_unitdir}/*.service
|
%{_unitdir}/*.service
|
||||||
%dir %{_datadir}/yang
|
%dir /usr/share/yang
|
||||||
%{_datadir}/yang/*.yang
|
/usr/share/yang/*.yang
|
||||||
%{_tmpfilesdir}/%{name}.conf
|
%{_tmpfilesdir}/%{name}.conf
|
||||||
%{_sysusersdir}/%{name}.conf
|
#%%{_libdir}/frr/frr/libyang_plugins/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Mar 15 2022 Michal Ruprich <mruprich@redhat.com> - 8.2.2-1
|
|
||||||
- New version 8.2.2
|
|
||||||
|
|
||||||
* Thu Mar 10 2022 Michal Ruprich <mruprich@redhat.com> - 8.2-1
|
|
||||||
- New version 8.2 (rhbz#2020439)
|
|
||||||
- Resolves: #2011868 - systemctl frr reload does not stop daemons that are not enabled in /etc/frr/daemons
|
|
||||||
|
|
||||||
* Thu Jan 20 2022 Michal Ruprich <mruprich@redhat.com> - 8.0.1-1
|
|
||||||
- Rebasing to 8.0.1 due to newer libyang library
|
|
||||||
|
|
||||||
* Wed Aug 04 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 7.5.1-9
|
|
||||||
- Rebuild for grpc 1.39
|
|
||||||
|
|
||||||
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 7.5.1-8
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Jul 20 2021 Michal Ruprich <mruprich@redhat.com> - 7.5.1-7
|
|
||||||
- Resolves: #1983278 - ospfd crashes in route_node_delete with assertion fail
|
|
||||||
|
|
||||||
* Sat Jul 10 2021 Björn Esser <besser82@fedoraproject.org> - 7.5.1-6
|
|
||||||
- Rebuild for versioned symbols in json-c
|
|
||||||
|
|
||||||
* Wed Jul 07 2021 Neal Gompa <ngompa@datto.com> - 7.5.1-5
|
|
||||||
- Clean up the spec file for legibility and modern spec standards
|
|
||||||
- Remove unneeded info scriptlets
|
|
||||||
- Use systemd-sysusers for frr user and frrvty group
|
|
||||||
- Use git-core instead of git for applying patches
|
|
||||||
- Drop redundant build dependencies
|
|
||||||
|
|
||||||
* Wed Jul 07 2021 Michal Ruprich <mruprich@redhat.com> - 7.5.1-4
|
|
||||||
- Rebuild for newer abseil-cpp
|
|
||||||
|
|
||||||
* Tue May 11 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 7.5.1-3
|
|
||||||
- Rebuild for grpc 1.37
|
|
||||||
|
|
||||||
* Fri Apr 23 2021 Michal Ruprich <mruprich@redhat.com> - 7.5.1-2
|
|
||||||
- Fixing permissions on config files in /etc/frr
|
|
||||||
- Enabling integrated configuration option for frr
|
|
||||||
|
|
||||||
* Fri Mar 12 2021 Michal Ruprich <mruprich@redhat.com> - 7.5.1-1
|
|
||||||
- New version 7.5.1
|
|
||||||
- Enabling grpc, adding hostname for post scriptlet
|
|
||||||
- Moving files to libexec due to selinux issues
|
|
||||||
|
|
||||||
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 7.5-4
|
|
||||||
- Rebuilt for updated systemd-rpm-macros
|
|
||||||
See https://pagure.io/fesco/issue/2583.
|
|
||||||
|
|
||||||
* Tue Feb 16 2021 Michal Ruprich <mruprich@redhat.com> - 7.5-3
|
|
||||||
- Fixing FTBS - icc options are confusing the new gcc
|
|
||||||
|
|
||||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 7.5-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Jan 01 2021 Michal Ruprich <mruprich@redhat.com> - 7.5-1
|
|
||||||
- New version 7.5
|
|
||||||
|
|
||||||
* Mon Sep 21 2020 Michal Ruprich <mruprich@redhat.com> - 7.4-1
|
* Mon Sep 21 2020 Michal Ruprich <mruprich@redhat.com> - 7.4-1
|
||||||
- New version 7.4
|
- New version 7.4
|
||||||
|
|
||||||
@@ -261,14 +195,14 @@ rm tests/lib/*grpc*
|
|||||||
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7.3.1-3
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7.3.1-3
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
* Thu Jun 18 2020 Michal Ruprich <mruprich@redhat.com> - 7.3.1-1
|
* Thu Jun 18 2020 Michal Ruprich <michalruprich@gmail.com> - 7.3.1-1
|
||||||
- New version 7.3.1
|
- New version 7.3.1
|
||||||
- Fixes a couple of bugs(#1832259, #1835039, #1830815, #1830808, #1830806, #1830800, #1830798, #1814773)
|
- Fixes a couple of bugs(#1832259, #1835039, #1830815, #1830808, #1830806, #1830800, #1830798, #1814773)
|
||||||
|
|
||||||
* Tue May 19 2020 Michal Ruprich <mruprich@redhat.com> - 7.3-6
|
* Tue May 19 2020 Michal Ruprich <michalruprich@gmail.com> - 7.3-6
|
||||||
- Removing texi2html, it is not available in Rawhide anymore
|
- Removing texi2html, it is not available in Rawhide anymore
|
||||||
|
|
||||||
* Mon May 18 2020 Michal Ruprich <mruprich@redhat.com> - 7.3-5
|
* Mon May 18 2020 Michal Ruprich <michalruprich@gmail.com> - 7.3-5
|
||||||
- Rebuild for new version of libyang
|
- Rebuild for new version of libyang
|
||||||
|
|
||||||
* Tue Apr 21 2020 Björn Esser <besser82@fedoraproject.org> - 7.3-4
|
* Tue Apr 21 2020 Björn Esser <besser82@fedoraproject.org> - 7.3-4
|
||||||
@@ -309,3 +243,4 @@ rm tests/lib/*grpc*
|
|||||||
|
|
||||||
* Wed Jun 19 2019 Michal Ruprich <mruprich@redhat.com> - 7.0-2
|
* Wed Jun 19 2019 Michal Ruprich <mruprich@redhat.com> - 7.0-2
|
||||||
- Initial build
|
- Initial build
|
||||||
|
|
||||||
|
|||||||
2
sources
2
sources
@@ -1,2 +1,2 @@
|
|||||||
SHA512 (frr-8.2.2.tar.gz) = 2a3e189d8de09bd66bc4a49147bec681d48626d8cb268dc03f42b58064c066b35082114ff97d7333ae4029f759b78e216c8460c2611df7f6659675dc5f9b69b2
|
SHA512 (frr-7.4.tar.gz) = 3342eac15483631c772eb83af0eabb33ecaafe8ba6d3cf9e2a390a50fb23a0238a2767961a0eef40a1e9c3a1f255dc5a578b927616030cf51867114b74aa24c8
|
||||||
SHA512 (remove-babeld-ldpd.sh) = a5bf67a3722cb20d43cef1dac28f839db68df73a1b7d34d8438e4f9366da3b67d85c1f44281f93434e8dd8ebcb2d3dc258b77eaa5627475b7395d207f020839d
|
SHA512 (remove-babeld-ldpd.sh) = a5bf67a3722cb20d43cef1dac28f839db68df73a1b7d34d8438e4f9366da3b67d85c1f44281f93434e8dd8ebcb2d3dc258b77eaa5627475b7395d207f020839d
|
||||||
|
|||||||
Reference in New Issue
Block a user