xref: /unit/pkg/deb/Makefile.jsc11 (revision 989:536ccd99d2e3)
1MODULES+=		jsc11
2MODULE_SUFFIX_jsc11=	jsc11
3
4MODULE_SUMMARY_jsc11=	Java 11 module for NGINX Unit
5
6MODULE_VERSION_jsc11=	$(VERSION)
7MODULE_RELEASE_jsc11=	1
8
9MODULE_CONFARGS_jsc11=	java --module=java11 --home=/usr/lib/jvm/java-11-openjdk-$$\(DEB_HOST_ARCH\) --jars=/usr/share/unit-jsc-common/
10MODULE_MAKEARGS_jsc11=	java11
11MODULE_INSTARGS_jsc11=	java11-install
12
13MODULE_SOURCES_jsc11=	unit.example-jsc-app \
14			unit.example-jsc11-config
15
16BUILD_DEPENDS_jsc11=	openjdk-11-jdk-headless openjdk-11-jre-headless
17BUILD_DEPENDS+=		$(BUILD_DEPENDS_jsc11)
18
19MODULE_BUILD_DEPENDS_jsc11=,openjdk-11-jdk-headless
20MODULE_DEPENDS_jsc11=,openjdk-11-jre-headless,unit-jsc-common (= $(MODULE_VERSION_jsc_common)-$(MODULE_RELEASE_jsc_common)~$(CODENAME))
21
22define MODULE_PREINSTALL_jsc11
23	mkdir -p debian/unit-jsc11/usr/share/doc/unit-jsc11/examples/jsc-app
24	install -m 644 -p debian/unit.example-jsc-app debian/unit-jsc11/usr/share/doc/unit-jsc11/examples/jsc-app/index.jsp
25	install -m 644 -p debian/unit.example-jsc11-config debian/unit-jsc11/usr/share/doc/unit-jsc11/examples/unit.config
26	install -m 644 -p src/java/README.JSR-340 debian/unit-jsc11/usr/share/doc/unit-jsc11/
27endef
28export MODULE_PREINSTALL_jsc11
29
30define MODULE_POSTINSTALL_jsc11
31	cd $$\(BUILDDIR_unit\) \&\& \
32        DESTDIR=$$\(INSTALLDIR\) make java-shared-uninstall
33endef
34export MODULE_POSTINSTALL_jsc11
35
36define MODULE_POST_jsc11
37cat <<BANNER
38----------------------------------------------------------------------
39
40The $(MODULE_SUMMARY_jsc11) 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_jsc11)/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_jsc11
72