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