Skip to content

Commit

Permalink
doc: update redhat packaging doc with new options and use of Rocky 8 …
Browse files Browse the repository at this point in the history
…(Centos 8 is no more)

Signed-off-by: Lou Berger <[email protected]>
  • Loading branch information
louberger committed Jan 8, 2025
1 parent d89f21f commit e2b5eed
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions doc/developer/packaging-redhat.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Packaging Red Hat
=================

Tested on CentOS 6, CentOS 7, CentOS 8 and Fedora 24.
Tested on CentOS 6, CentOS 7, Rocky 8 and Fedora 24.

1. On CentOS 6, refer to :ref:`building-centos6` for details on installing
sufficiently up-to-date package versions to enable building FRR.
Expand All @@ -18,22 +18,22 @@ Tested on CentOS 6, CentOS 7, CentOS 8 and Fedora 24.

yum install rpm-build net-snmp-devel pam-devel libcap-devel

For CentOS 7 and CentOS 8, the package will be built using python3
For CentOS 7 and Rocky 8, the package will be built using python3
and requires additional python3 packages::

yum install python3-devel python3-sphinx

.. note::

For CentOS 8 you need to install ``platform-python-devel`` package
For Rocky 8 you need to install ``platform-python-devel`` package
to provide ``/usr/bin/pathfix.py``::

yum install platform-python-devel


If ``yum`` is not present on your system, use ``dnf`` instead.

You should enable ``PowerTools`` repo if using CentOS 8 which
You should enable ``PowerTools`` repo if using Rocky 8 which
is disabled by default.

4. Checkout FRR::
Expand Down Expand Up @@ -88,11 +88,18 @@ Tested on CentOS 6, CentOS 7, CentOS 8 and Fedora 24.
%{!?with_watchfrr: %global with_watchfrr 1 }
%{!?with_pathd: %global with_pathd 1 }
%{!?with_grpc: %global with_grpc 0 }
%{!?with_rpki: %global with_rpki 1 }
%{!?with_docs: %global with_docs 1 }

8. Build the RPM::

rpmbuild --define "_topdir `pwd`/rpmbuild" -ba rpmbuild/SPECS/frr.spec

To override :file:`rpm/SPECS/frr.spec` defaults on the rpmbuild
commandline with:

rpmbuild --define 'variable value'

If building with RPKI, then download and install the additional RPKI
packages from
https://ci1.netdef.org/browse/RPKI-RTRLIB/latestSuccessful/artifact
Expand Down

0 comments on commit e2b5eed

Please sign in to comment.