xref: /unit/pkg/deb/Makefile.jsc8 (revision 1225:0f35b3937026)
1980Sdefan@nginx.comMODULES+=		jsc8
2980Sdefan@nginx.comMODULE_SUFFIX_jsc8=	jsc8
3980Sdefan@nginx.com
4980Sdefan@nginx.comMODULE_SUMMARY_jsc8=	Java 8 module for NGINX Unit
5980Sdefan@nginx.com
6980Sdefan@nginx.comMODULE_VERSION_jsc8=	$(VERSION)
7*1225Sdefan@nginx.comMODULE_RELEASE_jsc8=	1
8980Sdefan@nginx.com
9980Sdefan@nginx.comMODULE_CONFARGS_jsc8=	java --module=java8 --home=/usr/lib/jvm/java-8-openjdk-$$\(DEB_HOST_ARCH\) --jars=/usr/share/unit-jsc-common/
10980Sdefan@nginx.comMODULE_MAKEARGS_jsc8=	java8
11980Sdefan@nginx.comMODULE_INSTARGS_jsc8=	java8-install
12980Sdefan@nginx.com
13980Sdefan@nginx.comMODULE_SOURCES_jsc8=	unit.example-jsc-app \
14980Sdefan@nginx.com			unit.example-jsc8-config
15980Sdefan@nginx.com
16980Sdefan@nginx.comBUILD_DEPENDS_jsc8=	openjdk-8-jdk-headless openjdk-8-jre-headless
17980Sdefan@nginx.comBUILD_DEPENDS+=		$(BUILD_DEPENDS_jsc8)
18980Sdefan@nginx.com
19980Sdefan@nginx.comMODULE_BUILD_DEPENDS_jsc8=,openjdk-8-jdk-headless
20980Sdefan@nginx.comMODULE_DEPENDS_jsc8=,openjdk-8-jre-headless,unit-jsc-common (= $(MODULE_VERSION_jsc_common)-$(MODULE_RELEASE_jsc_common)~$(CODENAME))
21980Sdefan@nginx.com
22980Sdefan@nginx.comdefine MODULE_PREINSTALL_jsc8
23980Sdefan@nginx.com	mkdir -p debian/unit-jsc8/usr/share/doc/unit-jsc8/examples/jsc-app
24980Sdefan@nginx.com	install -m 644 -p debian/unit.example-jsc-app debian/unit-jsc8/usr/share/doc/unit-jsc8/examples/jsc-app/index.jsp
25980Sdefan@nginx.com	install -m 644 -p debian/unit.example-jsc8-config debian/unit-jsc8/usr/share/doc/unit-jsc8/examples/unit.config
26989Sdefan@nginx.com	install -m 644 -p src/java/README.JSR-340 debian/unit-jsc8/usr/share/doc/unit-jsc8/
27980Sdefan@nginx.comendef
28980Sdefan@nginx.comexport MODULE_PREINSTALL_jsc8
29980Sdefan@nginx.com
30980Sdefan@nginx.comdefine MODULE_POSTINSTALL_jsc8
31980Sdefan@nginx.com	cd $$\(BUILDDIR_unit\) \&\& \
32980Sdefan@nginx.com        DESTDIR=$$\(INSTALLDIR\) make java-shared-uninstall
33980Sdefan@nginx.comendef
34980Sdefan@nginx.comexport MODULE_POSTINSTALL_jsc8
35980Sdefan@nginx.com
36980Sdefan@nginx.comdefine MODULE_POST_jsc8
37980Sdefan@nginx.comcat <<BANNER
38980Sdefan@nginx.com----------------------------------------------------------------------
39980Sdefan@nginx.com
40980Sdefan@nginx.comThe $(MODULE_SUMMARY_jsc8) has been installed.
41980Sdefan@nginx.com
42980Sdefan@nginx.comTo check out the sample app, run these commands:
43980Sdefan@nginx.com
44980Sdefan@nginx.com sudo service unit restart
45980Sdefan@nginx.com cd /usr/share/doc/unit-$(MODULE_SUFFIX_jsc8)/examples
46980Sdefan@nginx.com sudo curl -X PUT --data-binary @unit.config --unix-socket /var/run/control.unit.sock http://localhost/config
47980Sdefan@nginx.com curl http://localhost:8800/
48980Sdefan@nginx.com
49980Sdefan@nginx.comOnline documentation is available at https://unit.nginx.org
50980Sdefan@nginx.com
51989Sdefan@nginx.comNOTICE:
52989Sdefan@nginx.com
53989Sdefan@nginx.comThis version of Unit code is made available in support of the open source
54989Sdefan@nginx.comdevelopment process.  This is an intermediate build made available for
55989Sdefan@nginx.comtesting purposes only.  This Unit code is untested and presumed incompatible
56989Sdefan@nginx.comwith the JSR 340 Java Servlet 3.1 specification.  You should not deploy or
57989Sdefan@nginx.comwrite to this code.  You should instead deploy and write production
58989Sdefan@nginx.comapplications on pre-built binaries that have been tested and certified
59989Sdefan@nginx.comto meet the JSR-340 compatibility requirements such as certified binaries
60989Sdefan@nginx.compublished for the JSR-340 reference implementation available at
61989Sdefan@nginx.comhttps://javaee.github.io/glassfish/.
62989Sdefan@nginx.com
63989Sdefan@nginx.comRedistribution of any Intermediate Build must retain this notice.
64989Sdefan@nginx.com
65989Sdefan@nginx.comOracle and Java are registered trademarks of Oracle and/or its affiliates.
66989Sdefan@nginx.comOther names may be trademarks of their respective owners.
67989Sdefan@nginx.com
68980Sdefan@nginx.com----------------------------------------------------------------------
69980Sdefan@nginx.comBANNER
70980Sdefan@nginx.comendef
71980Sdefan@nginx.comexport MODULE_POST_jsc8
72