summaryrefslogtreecommitdiffhomepage
path: root/pkg/rpm/Makefile.jsc-common
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2023-03-22 16:55:36 -0700
committerKonstantin Pavlov <thresh@nginx.com>2023-03-22 16:55:36 -0700
commit24243ecab3ed119b9c91664ccbe368e492c2efe7 (patch)
tree6a2b587311ef8b428a81af3eea763b723ab048d1 /pkg/rpm/Makefile.jsc-common
parent700ee28bbfe9b50482e6d34734c856f829bbe23f (diff)
downloadunit-24243ecab3ed119b9c91664ccbe368e492c2efe7.tar.gz
unit-24243ecab3ed119b9c91664ccbe368e492c2efe7.tar.bz2
Packages: Added Amazon Linux 2023.
Diffstat (limited to '')
-rw-r--r--pkg/rpm/Makefile.jsc-common8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/rpm/Makefile.jsc-common b/pkg/rpm/Makefile.jsc-common
index 9688e265..ebacf69d 100644
--- a/pkg/rpm/Makefile.jsc-common
+++ b/pkg/rpm/Makefile.jsc-common
@@ -8,13 +8,21 @@ MODULE_RELEASE_jsc_common= 1
JAVA_ARCH_jsc_common= $(shell /usr/lib/jvm/java-1.8.0/bin/java -XshowSettings 2>&1 | grep -F -e os.arch | sed -e 's/^.*= //')
+ifneq (,$(findstring $(OSVER),amazonlinux2023))
+MODULE_CONFARGS_jsc_common= java --home=/usr/lib/jvm/java-17-amazon-corretto --lib-path=/usr/lib/jvm/java-17-amazon-corretto/lib --jars=/usr/share/unit-jsc-common/
+else
MODULE_CONFARGS_jsc_common= java --home=/usr/lib/jvm/java-1.8.0 --lib-path=/usr/lib/jvm/jre-1.8.0/lib/$(JAVA_ARCH_jsc_common) --jars=/usr/share/unit-jsc-common/
+endif
MODULE_MAKEARGS_jsc_common= java
MODULE_INSTARGS_jsc_common= java-shared-install
MODULE_SOURCES_jsc_common= COPYRIGHT.unit-jsc-common
+ifneq (,$(findstring $(OSVER),amazonlinux2023))
+BUILD_DEPENDS_jsc_common= java-17-amazon-corretto-devel curl
+else
BUILD_DEPENDS_jsc_common= java-1.8.0-openjdk-devel curl
+endif
BUILD_DEPENDS+= $(BUILD_DEPENDS_jsc_common)
define MODULE_DEFINITIONS_jsc_common