diff options
author | Andrei Belov <defan@nginx.com> | 2019-04-22 13:50:02 +0300 |
---|---|---|
committer | Andrei Belov <defan@nginx.com> | 2019-04-22 13:50:02 +0300 |
commit | 48ae47017bef218d1bc8e16f2bb7e0347b5b0e4c (patch) | |
tree | fbf3006524a8562b43f8a5262d83e88b09e273ae /pkg/deb/Makefile.jsc-common | |
parent | 0c12afbf6a591c54236331219770836c931abf45 (diff) | |
download | unit-48ae47017bef218d1bc8e16f2bb7e0347b5b0e4c.tar.gz unit-48ae47017bef218d1bc8e16f2bb7e0347b5b0e4c.tar.bz2 |
Packages: Ubuntu 19.04 "disco" support added.
Diffstat (limited to '')
-rw-r--r-- | pkg/deb/Makefile.jsc-common | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pkg/deb/Makefile.jsc-common b/pkg/deb/Makefile.jsc-common index 42fdb12f..080e248f 100644 --- a/pkg/deb/Makefile.jsc-common +++ b/pkg/deb/Makefile.jsc-common @@ -6,11 +6,17 @@ MODULE_SUMMARY_jsc_common= Java shared packages for NGINX Unit MODULE_VERSION_jsc_common= $(VERSION) MODULE_RELEASE_jsc_common= 1 -MODULE_CONFARGS_jsc_common= java --home=/usr/lib/jvm/java-8-openjdk-$$\(DEB_HOST_ARCH\) --jars=/usr/share/unit-jsc-common/ +ifeq ($(CODENAME),disco) +JAVA_MINVERSION= 11 +else +JAVA_MINVERSION= 8 +endif + +MODULE_CONFARGS_jsc_common= java --home=/usr/lib/jvm/java-$(JAVA_MINVERSION)-openjdk-$$\(DEB_HOST_ARCH\) --jars=/usr/share/unit-jsc-common/ MODULE_MAKEARGS_jsc_common= java MODULE_INSTARGS_jsc_common= java-shared-install -BUILD_DEPENDS_jsc_common= openjdk-8-jdk-headless openjdk-8-jre-headless +BUILD_DEPENDS_jsc_common= openjdk-$(JAVA_MINVERSION)-jdk-headless openjdk-$(JAVA_MINVERSION)-jre-headless BUILD_DEPENDS+= $(BUILD_DEPENDS_jsc_common) MODULE_NOARCH_jsc_common= true |