xref: /unit/pkg/deb/Makefile.jsc10 (revision 1144:b651ff72ffe0)
1MODULES+=		jsc10
2MODULE_SUFFIX_jsc10=	jsc10
3
4MODULE_SUMMARY_jsc10=	Java 10 module for NGINX Unit
5
6MODULE_VERSION_jsc10=	$(VERSION)
7MODULE_RELEASE_jsc10=	2
8
9MODULE_CONFARGS_jsc10=	java --module=java10 --home=/usr/lib/jvm/java-11-openjdk-$$\(DEB_HOST_ARCH\) --jars=/usr/share/unit-jsc-common/
10MODULE_MAKEARGS_jsc10=	java10
11MODULE_INSTARGS_jsc10=	java10-install
12
13MODULE_SOURCES_jsc10=	unit.example-jsc-app \
14			unit.example-jsc10-config
15
16BUILD_DEPENDS_jsc10=	openjdk-11-jdk-headless openjdk-11-jre-headless
17BUILD_DEPENDS+=		$(BUILD_DEPENDS_jsc10)
18
19MODULE_BUILD_DEPENDS_jsc10=,openjdk-11-jdk-headless
20MODULE_DEPENDS_jsc10=,openjdk-11-jre-headless,unit-jsc-common (= $(MODULE_VERSION_jsc_common)-$(MODULE_RELEASE_jsc_common)~$(CODENAME))
21
22define MODULE_PREINSTALL_jsc10
23	mkdir -p debian/unit-jsc10/usr/share/doc/unit-jsc10/examples/jsc-app
24	install -m 644 -p debian/unit.example-jsc-app debian/unit-jsc10/usr/share/doc/unit-jsc10/examples/jsc-app/index.jsp
25	install -m 644 -p debian/unit.example-jsc10-config debian/unit-jsc10/usr/share/doc/unit-jsc10/examples/unit.config
26	install -m 644 -p src/java/README.JSR-340 debian/unit-jsc10/usr/share/doc/unit-jsc10/
27endef
28export MODULE_PREINSTALL_jsc10
29
30define MODULE_POSTINSTALL_jsc10
31	cd $$\(BUILDDIR_unit\) \&\& \
32        DESTDIR=$$\(INSTALLDIR\) make java-shared-uninstall
33endef
34export MODULE_POSTINSTALL_jsc10
35
36define MODULE_POST_jsc10
37cat <<BANNER
38----------------------------------------------------------------------
39
40The $(MODULE_SUMMARY_jsc10) 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_jsc10)/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_jsc10
72