summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorRenato Botelho do Couto <renato@netgate.com>2019-11-07 06:10:34 -0600
committerDamjan Marion <dmarion@me.com>2019-12-17 18:23:43 +0000
commitc025329bb244952938c8575a1d5602a1e54e5fe7 (patch)
treedf78a9fbbf7b8a32588e66303274e33bf8b159f0 /Makefile
parent842506f3c9ac8136642d3f9b49bb73f05f63cfdb (diff)
misc: Add CentOS 8 package support
Type: feature Added missing dependencies on RPM spec file and install-dep Ticket: VPP-1800 Signed-off-by: Renato Botelho do Couto <renato@netgate.com> Change-Id: I91d39c94b3f03c213249dff42b264718ef772bdb
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ff523ed537e..7bf6b7363fc 100644
--- a/Makefile
+++ b/Makefile
@@ -100,6 +100,13 @@ ifeq ($(OS_ID),fedora)
RPM_DEPENDS += python3-virtualenv python3-jsonschema
RPM_DEPENDS += cmake
RPM_DEPENDS_GROUPS = 'C Development Tools and Libraries'
+else ifeq ($(OS_ID)-$(OS_VERSION_ID),centos-8)
+ RPM_DEPENDS += dnf-utils
+ RPM_DEPENDS += compat-openssl10
+ RPM_DEPENDS += python3-devel python3-ply
+ RPM_DEPENDS += python3-virtualenv python3-jsonschema
+ RPM_DEPENDS += cmake
+ RPM_DEPENDS_GROUPS = 'Development Tools'
else
RPM_DEPENDS += yum-utils
RPM_DEPENDS += openssl-devel
@@ -291,6 +298,9 @@ ifeq ($(OS_ID),rhel)
@sudo -E yum groupinstall $(CONFIRM) $(RPM_DEPENDS_GROUPS)
@sudo -E yum install $(CONFIRM) $(RPM_DEPENDS)
@sudo -E debuginfo-install $(CONFIRM) glibc openssl-libs mbedtls-devel zlib
+else ifeq ($(OS_ID)-$(OS_VERSION_ID),centos-8)
+ @sudo -E dnf groupinstall $(CONFIRM) $(RPM_DEPENDS_GROUPS)
+ @sudo -E dnf install $(CONFIRM) $(RPM_DEPENDS)
else ifeq ($(OS_ID),centos)
@sudo -E yum install $(CONFIRM) centos-release-scl-rh epel-release
@sudo -E yum groupinstall $(CONFIRM) $(RPM_DEPENDS_GROUPS)