diff options
author | Andrei Belov <defan@nginx.com> | 2018-01-22 16:39:31 +0300 |
---|---|---|
committer | Andrei Belov <defan@nginx.com> | 2018-01-22 16:39:31 +0300 |
commit | 0c4ec72ca8e1efaac747e5cf2cdc7b6688e0a939 (patch) | |
tree | 0f1610a6b727325a80ce3e7d458a457e3ec760ac /pkg/rpm/Makefile | |
parent | be8df0631a6fa4e5afa8c03ed5b84cec72da20d4 (diff) | |
download | unit-0c4ec72ca8e1efaac747e5cf2cdc7b6688e0a939.tar.gz unit-0c4ec72ca8e1efaac747e5cf2cdc7b6688e0a939.tar.bz2 |
Packages: added support for Amazon Linux.
Diffstat (limited to 'pkg/rpm/Makefile')
-rw-r--r-- | pkg/rpm/Makefile | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/pkg/rpm/Makefile b/pkg/rpm/Makefile index aad26a5a..a5d463c9 100644 --- a/pkg/rpm/Makefile +++ b/pkg/rpm/Makefile @@ -11,8 +11,33 @@ RELEASE ?= $(DEFAULT_RELEASE) BUILD_DEPENDS_unit = libxml2 libxslt rpm-build rpmlint BUILD_DEPENDS = $(BUILD_DEPENDS_unit) +ifeq ($(shell rpm --eval "%{?rhel}"), 6) +OSVER = centos6 +else ifeq ($(shell rpm --eval "%{?rhel}"), 7) +OSVER = centos7 +else ifeq ($(shell rpm --eval "%{?amzn}"), 1) +OSVER = amazonlinux1 +BUILD_DEPENDS += system-rpm-config +else ifeq ($(shell rpm --eval "%{?amzn}"), 2) +OSVER = amazonlinux2 +endif + MODULES= --include Makefile.* + +ifneq (,$(findstring $(OSVER),centos6 centos7 amazonlinux2)) +include Makefile.php +include Makefile.python +include Makefile.go +endif + +ifeq ($(OSVER), amazonlinux1) +include Makefile.php +include Makefile.python27 +include Makefile.python34 +include Makefile.python35 +include Makefile.python36 +include Makefile.go +endif CONFIGURE_ARGS=\ --prefix=/usr \ |