summaryrefslogtreecommitdiffhomepage
path: root/pkg/deb/Makefile.jsc-common
blob: 61af8e6e43c2a82371b96f89758071d051e56e11 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
MODULES+=			jsc_common
MODULE_SUFFIX_jsc_common=	jsc-common

MODULE_SUMMARY_jsc_common=	Java shared packages for NGINX Unit

MODULE_VERSION_jsc_common=	$(VERSION)
MODULE_RELEASE_jsc_common=	1

ifeq ($(CODENAME),bionic)
JAVA_MINVERSION=	8
else ifeq ($(CODENAME),bookworm)
JAVA_MINVERSION=	17
else
JAVA_MINVERSION=	11
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-$(JAVA_MINVERSION)-jdk-headless openjdk-$(JAVA_MINVERSION)-jre-headless curl
BUILD_DEPENDS+=		$(BUILD_DEPENDS_jsc_common)

MODULE_NOARCH_jsc_common=	true

define MODULE_POST_jsc_common
cat <<BANNER
----------------------------------------------------------------------

The $(MODULE_SUMMARY_jsc_common) have been installed.

Please find licenses and related information at:
  /usr/share/doc/unit-jsc-common/copyright

----------------------------------------------------------------------
BANNER
endef
export MODULE_POST_jsc_common