xref: /unit/pkg/deb/Makefile.jsc18 (revision 1973:bc18f6f39ce3)
1MODULES+=		jsc18
2MODULE_SUFFIX_jsc18=	jsc18
3
4MODULE_SUMMARY_jsc18=	Java 18 module for NGINX Unit
5
6MODULE_VERSION_jsc18=	$(VERSION)
7MODULE_RELEASE_jsc18=	1
8
9MODULE_CONFARGS_jsc18=	java --module=java18 --home=/usr/lib/jvm/java-18-openjdk-$$\(DEB_HOST_ARCH\) --jars=/usr/share/unit-jsc-common/
10MODULE_MAKEARGS_jsc18=	java18
11MODULE_INSTARGS_jsc18=	java18-install
12
13MODULE_SOURCES_jsc18=	unit.example-jsc-app \
14			unit.example-jsc18-config
15
16BUILD_DEPENDS_jsc18=	openjdk-18-jdk-headless openjdk-18-jre-headless
17BUILD_DEPENDS+=		$(BUILD_DEPENDS_jsc18)
18
19MODULE_BUILD_DEPENDS_jsc18=,openjdk-18-jdk-headless
20MODULE_DEPENDS_jsc18=,openjdk-18-jre-headless,unit-jsc-common (= $(MODULE_VERSION_jsc_common)-$(MODULE_RELEASE_jsc_common)~$(CODENAME))
21
22define MODULE_PREINSTALL_jsc18
23	mkdir -p debian/unit-jsc18/usr/share/doc/unit-jsc18/examples/jsc-app
24	install -m 644 -p debian/unit.example-jsc-app debian/unit-jsc18/usr/share/doc/unit-jsc18/examples/jsc-app/index.jsp
25	install -m 644 -p debian/unit.example-jsc18-config debian/unit-jsc18/usr/share/doc/unit-jsc18/examples/unit.config
26	install -m 644 -p src/java/README.JSR-340 debian/unit-jsc18/usr/share/doc/unit-jsc18/
27endef
28export MODULE_PREINSTALL_jsc18
29
30define MODULE_POSTINSTALL_jsc18
31	cd $$\(BUILDDIR_unit\) \&\& \
32        DESTDIR=$$\(INSTALLDIR\) make java-shared-uninstall
33endef
34export MODULE_POSTINSTALL_jsc18
35
36define MODULE_POST_jsc18
37cat <<BANNER
38----------------------------------------------------------------------
39
40The $(MODULE_SUMMARY_jsc18) 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_jsc18)/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_jsc18
72