1MODULES+= jsc16 2MODULE_SUFFIX_jsc16= jsc16 3 4MODULE_SUMMARY_jsc16= Java 16 module for NGINX Unit 5 6MODULE_VERSION_jsc16= $(VERSION) 7MODULE_RELEASE_jsc16= 1 8 9MODULE_CONFARGS_jsc16= java --module=java16 --home=/usr/lib/jvm/java-16-openjdk-$$\(DEB_HOST_ARCH\) --jars=/usr/share/unit-jsc-common/ 10MODULE_MAKEARGS_jsc16= java16 11MODULE_INSTARGS_jsc16= java16-install 12 13MODULE_SOURCES_jsc16= unit.example-jsc-app \ 14 unit.example-jsc16-config 15 16BUILD_DEPENDS_jsc16= openjdk-16-jdk-headless openjdk-16-jre-headless 17BUILD_DEPENDS+= $(BUILD_DEPENDS_jsc16) 18 19MODULE_BUILD_DEPENDS_jsc16=,openjdk-16-jdk-headless 20MODULE_DEPENDS_jsc16=,openjdk-16-jre-headless,unit-jsc-common (= $(MODULE_VERSION_jsc_common)-$(MODULE_RELEASE_jsc_common)~$(CODENAME)) 21 22define MODULE_PREINSTALL_jsc16 23 mkdir -p debian/unit-jsc16/usr/share/doc/unit-jsc16/examples/jsc-app 24 install -m 644 -p debian/unit.example-jsc-app debian/unit-jsc16/usr/share/doc/unit-jsc16/examples/jsc-app/index.jsp 25 install -m 644 -p debian/unit.example-jsc16-config debian/unit-jsc16/usr/share/doc/unit-jsc16/examples/unit.config 26 install -m 644 -p src/java/README.JSR-340 debian/unit-jsc16/usr/share/doc/unit-jsc16/ 27endef 28export MODULE_PREINSTALL_jsc16 29 30define MODULE_POSTINSTALL_jsc16 31 cd $$\(BUILDDIR_unit\) \&\& \ 32 DESTDIR=$$\(INSTALLDIR\) make java-shared-uninstall 33endef 34export MODULE_POSTINSTALL_jsc16 35 36define MODULE_POST_jsc16 37cat <<BANNER 38---------------------------------------------------------------------- 39 40The $(MODULE_SUMMARY_jsc16) has been installed. 41 42To check out the sample app, run these commands: 43 44 sudo service unit restart 45 cd /usr/share/doc/unit-$(MODULE_SUFFIX_jsc16)/examples 46 sudo curl -X PUT --data-binary @unit.config --unix-socket /var/run/control.unit.sock http://localhost/config 47 curl http://localhost:8800/ 48 49Online documentation is available at https://unit.nginx.org 50 51NOTICE: 52 53This version of Unit code is made available in support of the open source 54development process. This is an intermediate build made available for 55testing purposes only. This Unit code is untested and presumed incompatible 56with the JSR 340 Java Servlet 3.1 specification. You should not deploy or 57write to this code. You should instead deploy and write production 58applications on pre-built binaries that have been tested and certified 59to meet the JSR-340 compatibility requirements such as certified binaries 60published for the JSR-340 reference implementation available at 61https://javaee.github.io/glassfish/. 62 63Redistribution of any Intermediate Build must retain this notice. 64 65Oracle and Java are registered trademarks of Oracle and/or its affiliates. 66Other names may be trademarks of their respective owners. 67 68---------------------------------------------------------------------- 69BANNER 70endef 71export MODULE_POST_jsc16 72