]> git.puffer.fish Git - matthieu/frr.git/commitdiff
doc: Fix CentOS 7 Documentation
authorMartin Winter <mwinter@opensourcerouting.org>
Wed, 3 Mar 2021 02:55:33 +0000 (03:55 +0100)
committerMartin Winter <mwinter@opensourcerouting.org>
Wed, 3 Mar 2021 17:13:04 +0000 (18:13 +0100)
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
doc/developer/building-frr-for-centos7.rst
doc/developer/packaging-redhat.rst

index eb97150d67a31a0857e481c5aa4330bb2c1ac5c2..9b9ff2f050a04b59d06a8640382d2b698c3b10e9 100644 (file)
@@ -14,14 +14,20 @@ CentOS 7 restrictions:
 Install required packages
 -------------------------
 
+Add EPEL Repository:
+
+::
+
+    sudo yum -y install epel-release
+
 Add packages:
 
 ::
 
-    sudo yum install git autoconf automake libtool make \
+    sudo yum install git autoconf automake libtool make cmake \
       readline-devel texinfo net-snmp-devel groff pkgconfig \
       json-c-devel pam-devel bison flex pytest c-ares-devel \
-      python-devel systemd-devel python-sphinx libcap-devel
+      python3-devel systemd-devel python3-sphinx libcap-devel
 
 .. include:: building-libyang.rst
 
index 458cfa0ad47d45d3b1ad4c71ac7a2d85be636965..22a2ab1b073a46b3da3f8618094e742a42be623f 100644 (file)
@@ -40,11 +40,17 @@ Tested on CentOS 6, CentOS 7, CentOS 8 and Fedora 24.
    You should enable ``PowerTools`` repo if using CentOS 8 which
    is disabled by default.
 
-4. Checkout FRR::
+4. Add librtr-devel. Install librtr-devel from rpm.frrouting.org
+   repository (See https://rpm.frrouting.org to add repository
+   if it's not yet added)
+
+      yum install librtr-devel
+
+5. Checkout FRR::
 
       git clone https://github.com/frrouting/frr.git frr
 
-5. Run Bootstrap and make distribution tar.gz::
+6. Run Bootstrap and make distribution tar.gz::
 
       cd frr
       ./bootstrap.sh
@@ -56,7 +62,7 @@ Tested on CentOS 6, CentOS 7, CentOS 8 and Fedora 24.
       The only ``configure`` option respected when building RPMs is
       ``--with-pkg-extra-version``.
 
-6. Create RPM directory structure and populate with sources::
+7. Create RPM directory structure and populate with sources::
 
      mkdir rpmbuild
      mkdir rpmbuild/SOURCES
@@ -64,7 +70,7 @@ Tested on CentOS 6, CentOS 7, CentOS 8 and Fedora 24.
      cp redhat/*.spec rpmbuild/SPECS/
      cp frr*.tar.gz rpmbuild/SOURCES/
 
-7. Edit :file:`rpm/SPECS/frr.spec` with configuration as needed.
+8. Edit :file:`rpm/SPECS/frr.spec` with configuration as needed.
 
    Look at the beginning of the file and adjust the following parameters to
    enable or disable features as required::
@@ -89,7 +95,7 @@ Tested on CentOS 6, CentOS 7, CentOS 8 and Fedora 24.
       %{!?with_pimd:          %global  with_pimd          1 }
       %{!?with_rpki:          %global  with_rpki          0 }
 
-8. Build the RPM::
+9. Build the RPM::
 
       rpmbuild --define "_topdir `pwd`/rpmbuild" -ba rpmbuild/SPECS/frr.spec