summaryrefslogtreecommitdiffhomepage
path: root/pkg/rpm/Makefile
diff options
context:
space:
mode:
authorAndrei Belov <defan@nginx.com>2019-03-26 13:22:59 +0300
committerAndrei Belov <defan@nginx.com>2019-03-26 13:22:59 +0300
commit3d7a47c9acb1120f90225c833fd56cffeb99c2cd (patch)
tree90972bc7649275bcb3975652f011f38c1d4cf8d0 /pkg/rpm/Makefile
parentb96e5fd8481f79935967fed56c71f72d16c59f6b (diff)
downloadunit-3d7a47c9acb1120f90225c833fd56cffeb99c2cd.tar.gz
unit-3d7a47c9acb1120f90225c833fd56cffeb99c2cd.tar.bz2
Packages: added RHEL 8 support.
Diffstat (limited to '')
-rw-r--r--pkg/rpm/Makefile13
-rw-r--r--pkg/rpm/Makefile.python272
2 files changed, 14 insertions, 1 deletions
diff --git a/pkg/rpm/Makefile b/pkg/rpm/Makefile
index d94890f2..9e343aa2 100644
--- a/pkg/rpm/Makefile
+++ b/pkg/rpm/Makefile
@@ -11,6 +11,8 @@ ifeq ($(shell test `rpm --eval '0%{?rhel} -eq 6 -a 0%{?amzn} -eq 0'`; echo $$?),
OSVER = centos6
else ifeq ($(shell test `rpm --eval '0%{?rhel} -eq 7 -a 0%{?amzn} -eq 0'`; echo $$?), 0)
OSVER = centos7
+else ifeq ($(shell rpm --eval "%{?rhel}"), 8)
+OSVER = centos8
else ifeq ($(shell rpm --eval "%{?amzn}"), 1)
OSVER = amazonlinux1
else ifeq ($(shell rpm --eval "%{?amzn}"), 2)
@@ -63,6 +65,17 @@ include Makefile.jsc8
include Makefile.jsc11
endif
+ifeq ($(OSVER), centos8)
+include Makefile.php
+include Makefile.python27
+include Makefile.python36
+include Makefile.go
+include Makefile.perl
+include Makefile.jsc-common
+include Makefile.jsc8
+include Makefile.jsc11
+endif
+
ifeq ($(OSVER), amazonlinux1)
include Makefile.php
include Makefile.python27
diff --git a/pkg/rpm/Makefile.python27 b/pkg/rpm/Makefile.python27
index 005eff17..95b392a9 100644
--- a/pkg/rpm/Makefile.python27
+++ b/pkg/rpm/Makefile.python27
@@ -15,7 +15,7 @@ MODULE_SOURCES_python27= unit.example-python-app \
ifneq (,$(findstring $(OSVER),opensuse-leap opensuse-tumbleweed sles))
BUILD_DEPENDS_python27= python-devel
-else ifeq ($(OSVER), fedora)
+else ifneq (,$(findstring $(OSVER),fedora centos8))
BUILD_DEPENDS_python27= python2-devel
else
BUILD_DEPENDS_python27= python27-devel