MODULES+= jsc21 MODULE_SUFFIX_jsc21= jsc21 MODULE_SUMMARY_jsc21= Java 21 module for NGINX Unit MODULE_VERSION_jsc21= $(VERSION) MODULE_RELEASE_jsc21= 1 MODULE_CONFARGS_jsc21= java --module=java21 --home=/usr/lib/jvm/java-21-openjdk-$$\(DEB_HOST_ARCH\) --jars=/usr/share/unit-jsc-common/ MODULE_MAKEARGS_jsc21= java21 MODULE_INSTARGS_jsc21= java21-install MODULE_SOURCES_jsc21= unit.example-jsc-app \ unit.example-jsc21-config BUILD_DEPENDS_jsc21= openjdk-21-jdk-headless openjdk-21-jre-headless BUILD_DEPENDS+= $(BUILD_DEPENDS_jsc21) MODULE_BUILD_DEPENDS_jsc21=,openjdk-21-jdk-headless MODULE_DEPENDS_jsc21=,openjdk-21-jre-headless,unit-jsc-common (= $(MODULE_VERSION_jsc_common)-$(MODULE_RELEASE_jsc_common)~$(CODENAME)) define MODULE_PREINSTALL_jsc21 mkdir -p debian/unit-jsc21/usr/share/doc/unit-jsc21/examples/jsc-app install -m 644 -p debian/unit.example-jsc-app debian/unit-jsc21/usr/share/doc/unit-jsc21/examples/jsc-app/index.jsp install -m 644 -p debian/unit.example-jsc21-config debian/unit-jsc21/usr/share/doc/unit-jsc21/examples/unit.config install -m 644 -p src/java/README.JSR-340 debian/unit-jsc21/usr/share/doc/unit-jsc21/ endef export MODULE_PREINSTALL_jsc21 define MODULE_POSTINSTALL_jsc21 cd $$\(BUILDDIR_unit\) \&\& \ DESTDIR=$$\(INSTALLDIR\) make java-shared-uninstall endef export MODULE_POSTINSTALL_jsc21 define MODULE_POST_jsc21 cat <