xref: /unit/pkg/deb/Makefile.jsc-common (revision 1974:199a11eceb3c)
1MODULES+=			jsc_common
2MODULE_SUFFIX_jsc_common=	jsc-common
3
4MODULE_SUMMARY_jsc_common=	Java shared packages for NGINX Unit
5
6MODULE_VERSION_jsc_common=	$(VERSION)
7MODULE_RELEASE_jsc_common=	1
8
9ifneq (,$(findstring $(CODENAME),bionic))
10JAVA_MINVERSION=	8
11else
12JAVA_MINVERSION=	11
13endif
14
15MODULE_CONFARGS_jsc_common=	java --home=/usr/lib/jvm/java-$(JAVA_MINVERSION)-openjdk-$$\(DEB_HOST_ARCH\) --jars=/usr/share/unit-jsc-common/
16MODULE_MAKEARGS_jsc_common=	java
17MODULE_INSTARGS_jsc_common=	java-shared-install
18
19BUILD_DEPENDS_jsc_common=	openjdk-$(JAVA_MINVERSION)-jdk-headless openjdk-$(JAVA_MINVERSION)-jre-headless curl
20BUILD_DEPENDS+=		$(BUILD_DEPENDS_jsc_common)
21
22MODULE_NOARCH_jsc_common=	true
23
24define MODULE_POST_jsc_common
25cat <<BANNER
26----------------------------------------------------------------------
27
28The $(MODULE_SUMMARY_jsc_common) have been installed.
29
30Please find licenses and related information at:
31  /usr/share/doc/unit-jsc-common/copyright
32
33----------------------------------------------------------------------
34BANNER
35endef
36export MODULE_POST_jsc_common
37