MODULES+= jsc18 MODULE_SUFFIX_jsc18= jsc18 MODULE_SUMMARY_jsc18= Java 18 module for NGINX Unit MODULE_VERSION_jsc18= $(VERSION) MODULE_RELEASE_jsc18= 1 MODULE_CONFARGS_jsc18= java --module=java18 --home=/usr/lib/jvm/java-18-openjdk-$$\(DEB_HOST_ARCH\) --jars=/usr/share/unit-jsc-common/ MODULE_MAKEARGS_jsc18= java18 MODULE_INSTARGS_jsc18= java18-install MODULE_SOURCES_jsc18= unit.example-jsc-app \ unit.example-jsc18-config BUILD_DEPENDS_jsc18= openjdk-18-jdk-headless openjdk-18-jre-headless BUILD_DEPENDS+= $(BUILD_DEPENDS_jsc18) MODULE_BUILD_DEPENDS_jsc18=,openjdk-18-jdk-headless MODULE_DEPENDS_jsc18=,openjdk-18-jre-headless,unit-jsc-common (= $(MODULE_VERSION_jsc_common)-$(MODULE_RELEASE_jsc_common)~$(CODENAME)) define MODULE_PREINSTALL_jsc18 mkdir -p debian/unit-jsc18/usr/share/doc/unit-jsc18/examples/jsc-app install -m 644 -p debian/unit.example-jsc-app debian/unit-jsc18/usr/share/doc/unit-jsc18/examples/jsc-app/index.jsp install -m 644 -p debian/unit.example-jsc18-config debian/unit-jsc18/usr/share/doc/unit-jsc18/examples/unit.config install -m 644 -p src/java/README.JSR-340 debian/unit-jsc18/usr/share/doc/unit-jsc18/ endef export MODULE_PREINSTALL_jsc18 define MODULE_POSTINSTALL_jsc18 cd $$\(BUILDDIR_unit\) \&\& \ DESTDIR=$$\(INSTALLDIR\) make java-shared-uninstall endef export MODULE_POSTINSTALL_jsc18 define MODULE_POST_jsc18 cat <