MODULES+= jsc20 MODULE_SUFFIX_jsc20= jsc20 MODULE_SUMMARY_jsc20= Java 20 module for NGINX Unit MODULE_VERSION_jsc20= $(VERSION) MODULE_RELEASE_jsc20= 1 MODULE_CONFARGS_jsc20= java --module=java20 --home=/usr/lib/jvm/java-20-openjdk-$$\(DEB_HOST_ARCH\) --jars=/usr/share/unit-jsc-common/ MODULE_MAKEARGS_jsc20= java20 MODULE_INSTARGS_jsc20= java20-install MODULE_SOURCES_jsc20= unit.example-jsc-app \ unit.example-jsc20-config BUILD_DEPENDS_jsc20= openjdk-20-jdk-headless openjdk-20-jre-headless BUILD_DEPENDS+= $(BUILD_DEPENDS_jsc20) MODULE_BUILD_DEPENDS_jsc20=,openjdk-20-jdk-headless MODULE_DEPENDS_jsc20=,openjdk-20-jre-headless,unit-jsc-common (= $(MODULE_VERSION_jsc_common)-$(MODULE_RELEASE_jsc_common)~$(CODENAME)) define MODULE_PREINSTALL_jsc20 mkdir -p debian/unit-jsc20/usr/share/doc/unit-jsc20/examples/jsc-app install -m 644 -p debian/unit.example-jsc-app debian/unit-jsc20/usr/share/doc/unit-jsc20/examples/jsc-app/index.jsp install -m 644 -p debian/unit.example-jsc20-config debian/unit-jsc20/usr/share/doc/unit-jsc20/examples/unit.config install -m 644 -p src/java/README.JSR-340 debian/unit-jsc20/usr/share/doc/unit-jsc20/ endef export MODULE_PREINSTALL_jsc20 define MODULE_POSTINSTALL_jsc20 cd $$\(BUILDDIR_unit\) \&\& \ DESTDIR=$$\(INSTALLDIR\) make java-shared-uninstall endef export MODULE_POSTINSTALL_jsc20 define MODULE_POST_jsc20 cat <