MODULES+= jsc16 MODULE_SUFFIX_jsc16= jsc16 MODULE_SUMMARY_jsc16= Java 16 module for NGINX Unit MODULE_VERSION_jsc16= $(VERSION) MODULE_RELEASE_jsc16= 1 MODULE_CONFARGS_jsc16= java --module=java16 --home=/usr/lib/jvm/java-16-openjdk-$$\(DEB_HOST_ARCH\) --jars=/usr/share/unit-jsc-common/ MODULE_MAKEARGS_jsc16= java16 MODULE_INSTARGS_jsc16= java16-install MODULE_SOURCES_jsc16= unit.example-jsc-app \ unit.example-jsc16-config BUILD_DEPENDS_jsc16= openjdk-16-jdk-headless openjdk-16-jre-headless BUILD_DEPENDS+= $(BUILD_DEPENDS_jsc16) MODULE_BUILD_DEPENDS_jsc16=,openjdk-16-jdk-headless MODULE_DEPENDS_jsc16=,openjdk-16-jre-headless,unit-jsc-common (= $(MODULE_VERSION_jsc_common)-$(MODULE_RELEASE_jsc_common)~$(CODENAME)) define MODULE_PREINSTALL_jsc16 mkdir -p debian/unit-jsc16/usr/share/doc/unit-jsc16/examples/jsc-app install -m 644 -p debian/unit.example-jsc-app debian/unit-jsc16/usr/share/doc/unit-jsc16/examples/jsc-app/index.jsp install -m 644 -p debian/unit.example-jsc16-config debian/unit-jsc16/usr/share/doc/unit-jsc16/examples/unit.config install -m 644 -p src/java/README.JSR-340 debian/unit-jsc16/usr/share/doc/unit-jsc16/ endef export MODULE_PREINSTALL_jsc16 define MODULE_POSTINSTALL_jsc16 cd $$\(BUILDDIR_unit\) \&\& \ DESTDIR=$$\(INSTALLDIR\) make java-shared-uninstall endef export MODULE_POSTINSTALL_jsc16 define MODULE_POST_jsc16 cat <