xref: /unit/pkg/deb/Makefile.jsc18 (revision 1973:bc18f6f39ce3)
1*1973Sdefan@nginx.comMODULES+=		jsc18
2*1973Sdefan@nginx.comMODULE_SUFFIX_jsc18=	jsc18
3*1973Sdefan@nginx.com
4*1973Sdefan@nginx.comMODULE_SUMMARY_jsc18=	Java 18 module for NGINX Unit
5*1973Sdefan@nginx.com
6*1973Sdefan@nginx.comMODULE_VERSION_jsc18=	$(VERSION)
7*1973Sdefan@nginx.comMODULE_RELEASE_jsc18=	1
8*1973Sdefan@nginx.com
9*1973Sdefan@nginx.comMODULE_CONFARGS_jsc18=	java --module=java18 --home=/usr/lib/jvm/java-18-openjdk-$$\(DEB_HOST_ARCH\) --jars=/usr/share/unit-jsc-common/
10*1973Sdefan@nginx.comMODULE_MAKEARGS_jsc18=	java18
11*1973Sdefan@nginx.comMODULE_INSTARGS_jsc18=	java18-install
12*1973Sdefan@nginx.com
13*1973Sdefan@nginx.comMODULE_SOURCES_jsc18=	unit.example-jsc-app \
14*1973Sdefan@nginx.com			unit.example-jsc18-config
15*1973Sdefan@nginx.com
16*1973Sdefan@nginx.comBUILD_DEPENDS_jsc18=	openjdk-18-jdk-headless openjdk-18-jre-headless
17*1973Sdefan@nginx.comBUILD_DEPENDS+=		$(BUILD_DEPENDS_jsc18)
18*1973Sdefan@nginx.com
19*1973Sdefan@nginx.comMODULE_BUILD_DEPENDS_jsc18=,openjdk-18-jdk-headless
20*1973Sdefan@nginx.comMODULE_DEPENDS_jsc18=,openjdk-18-jre-headless,unit-jsc-common (= $(MODULE_VERSION_jsc_common)-$(MODULE_RELEASE_jsc_common)~$(CODENAME))
21*1973Sdefan@nginx.com
22*1973Sdefan@nginx.comdefine MODULE_PREINSTALL_jsc18
23*1973Sdefan@nginx.com	mkdir -p debian/unit-jsc18/usr/share/doc/unit-jsc18/examples/jsc-app
24*1973Sdefan@nginx.com	install -m 644 -p debian/unit.example-jsc-app debian/unit-jsc18/usr/share/doc/unit-jsc18/examples/jsc-app/index.jsp
25*1973Sdefan@nginx.com	install -m 644 -p debian/unit.example-jsc18-config debian/unit-jsc18/usr/share/doc/unit-jsc18/examples/unit.config
26*1973Sdefan@nginx.com	install -m 644 -p src/java/README.JSR-340 debian/unit-jsc18/usr/share/doc/unit-jsc18/
27*1973Sdefan@nginx.comendef
28*1973Sdefan@nginx.comexport MODULE_PREINSTALL_jsc18
29*1973Sdefan@nginx.com
30*1973Sdefan@nginx.comdefine MODULE_POSTINSTALL_jsc18
31*1973Sdefan@nginx.com	cd $$\(BUILDDIR_unit\) \&\& \
32*1973Sdefan@nginx.com        DESTDIR=$$\(INSTALLDIR\) make java-shared-uninstall
33*1973Sdefan@nginx.comendef
34*1973Sdefan@nginx.comexport MODULE_POSTINSTALL_jsc18
35*1973Sdefan@nginx.com
36*1973Sdefan@nginx.comdefine MODULE_POST_jsc18
37*1973Sdefan@nginx.comcat <<BANNER
38*1973Sdefan@nginx.com----------------------------------------------------------------------
39*1973Sdefan@nginx.com
40*1973Sdefan@nginx.comThe $(MODULE_SUMMARY_jsc18) has been installed.
41*1973Sdefan@nginx.com
42*1973Sdefan@nginx.comTo check out the sample app, run these commands:
43*1973Sdefan@nginx.com
44*1973Sdefan@nginx.com sudo service unit restart
45*1973Sdefan@nginx.com cd /usr/share/doc/unit-$(MODULE_SUFFIX_jsc18)/examples
46*1973Sdefan@nginx.com sudo curl -X PUT --data-binary @unit.config --unix-socket /var/run/control.unit.sock http://localhost/config
47*1973Sdefan@nginx.com curl http://localhost:8800/
48*1973Sdefan@nginx.com
49*1973Sdefan@nginx.comOnline documentation is available at https://unit.nginx.org
50*1973Sdefan@nginx.com
51*1973Sdefan@nginx.comNOTICE:
52*1973Sdefan@nginx.com
53*1973Sdefan@nginx.comThis version of Unit code is made available in support of the open source
54*1973Sdefan@nginx.comdevelopment process.  This is an intermediate build made available for
55*1973Sdefan@nginx.comtesting purposes only.  This Unit code is untested and presumed incompatible
56*1973Sdefan@nginx.comwith the JSR 340 Java Servlet 3.1 specification.  You should not deploy or
57*1973Sdefan@nginx.comwrite to this code.  You should instead deploy and write production
58*1973Sdefan@nginx.comapplications on pre-built binaries that have been tested and certified
59*1973Sdefan@nginx.comto meet the JSR-340 compatibility requirements such as certified binaries
60*1973Sdefan@nginx.compublished for the JSR-340 reference implementation available at
61*1973Sdefan@nginx.comhttps://javaee.github.io/glassfish/.
62*1973Sdefan@nginx.com
63*1973Sdefan@nginx.comRedistribution of any Intermediate Build must retain this notice.
64*1973Sdefan@nginx.com
65*1973Sdefan@nginx.comOracle and Java are registered trademarks of Oracle and/or its affiliates.
66*1973Sdefan@nginx.comOther names may be trademarks of their respective owners.
67*1973Sdefan@nginx.com
68*1973Sdefan@nginx.com----------------------------------------------------------------------
69*1973Sdefan@nginx.comBANNER
70*1973Sdefan@nginx.comendef
71*1973Sdefan@nginx.comexport MODULE_POST_jsc18
72