Compare commits
2 Commits
3b172a04b7
...
frr-7.5-1.
| Author | SHA1 | Date | |
|---|---|---|---|
| a38195ad3d | |||
| ab40229411 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -5,4 +5,3 @@
|
|||||||
/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.tar.gz
|
||||||
/frr-7.5.1.tar.gz
|
|
||||||
|
|||||||
78
0001-nhrp-Make-vici-socket-path-configurable.patch
Normal file
78
0001-nhrp-Make-vici-socket-path-configurable.patch
Normal file
@@ -0,0 +1,78 @@
|
|||||||
|
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/vici.c | 2 +-
|
||||||
|
3 files changed, 13 insertions(+), 1 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/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
|
||||||
|
|
||||||
26
frr.spec
26
frr.spec
@@ -1,12 +1,13 @@
|
|||||||
%global frrversion 7.5.1
|
%global frrversion 7.5
|
||||||
%global frr_libdir /usr/lib/frr
|
%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: 7.5.1
|
Version: 7.5
|
||||||
Release: 2%{?checkout}%{?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
|
||||||
@@ -35,6 +36,8 @@ 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
|
||||||
|
|
||||||
|
Patch0060: 0001-nhrp-Make-vici-socket-path-configurable.patch
|
||||||
|
|
||||||
%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
|
||||||
a multi-server and multi-threaded approach to resolve the current complexity
|
a multi-server and multi-threaded approach to resolve the current complexity
|
||||||
@@ -72,6 +75,7 @@ autoreconf -ivf
|
|||||||
--disable-babeld \
|
--disable-babeld \
|
||||||
--with-moduledir=%{_libdir}/frr/modules \
|
--with-moduledir=%{_libdir}/frr/modules \
|
||||||
--with-crypto=openssl \
|
--with-crypto=openssl \
|
||||||
|
--with-vici-socket=/run/strongswan/charon.vici \
|
||||||
--enable-fpm
|
--enable-fpm
|
||||||
|
|
||||||
%make_build MAKEINFO="makeinfo --no-split" PYTHON=%{__python3}
|
%make_build MAKEINFO="makeinfo --no-split" PYTHON=%{__python3}
|
||||||
@@ -132,13 +136,6 @@ 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
|
||||||
|
|
||||||
@@ -167,7 +164,7 @@ make check PYTHON=%{__python3}
|
|||||||
%doc ripngd/ripngd.conf.sample
|
%doc ripngd/ripngd.conf.sample
|
||||||
%doc pimd/pimd.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) /var/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*
|
||||||
@@ -188,13 +185,6 @@ make check PYTHON=%{__python3}
|
|||||||
%{_tmpfilesdir}/%{name}.conf
|
%{_tmpfilesdir}/%{name}.conf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* 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
|
|
||||||
|
|
||||||
* Tue Mar 16 2021 Michal Ruprich <mruprich@redhat.com> - 7.5.1-1
|
|
||||||
- New version 7.5.1
|
|
||||||
|
|
||||||
* Fri Jan 01 2021 Michal Ruprich <mruprich@redhat.com> - 7.5-1
|
* Fri Jan 01 2021 Michal Ruprich <mruprich@redhat.com> - 7.5-1
|
||||||
- New version 7.5
|
- New version 7.5
|
||||||
|
|
||||||
|
|||||||
2
sources
2
sources
@@ -1,2 +1,2 @@
|
|||||||
SHA512 (frr-7.5.1.tar.gz) = 1c27420594e52647090da3556e5c62d6f916903c4fa86e5110f1e86152f07d3ce4252bc859d36c9d218dc96a80b245c8b9eee97f370d818cb39be187b6c3546e
|
SHA512 (frr-7.5.tar.gz) = bfa47d901550aff6dae15ee73802f7d43809227767a2e4c1e5b3dd569320f6e9adcc8bdb4ff319266e606f087851ede5e3c606926777509d2425677bef2b7e9c
|
||||||
SHA512 (remove-babeld-ldpd.sh) = a5bf67a3722cb20d43cef1dac28f839db68df73a1b7d34d8438e4f9366da3b67d85c1f44281f93434e8dd8ebcb2d3dc258b77eaa5627475b7395d207f020839d
|
SHA512 (remove-babeld-ldpd.sh) = a5bf67a3722cb20d43cef1dac28f839db68df73a1b7d34d8438e4f9366da3b67d85c1f44281f93434e8dd8ebcb2d3dc258b77eaa5627475b7395d207f020839d
|
||||||
|
|||||||
Reference in New Issue
Block a user