xref: /unit/pkg/deb/Makefile.python36 (revision 1225:0f35b3937026)
1MODULES+=			python36
2MODULE_SUFFIX_python36=		python3.6
3
4MODULE_SUMMARY_python36=	Python 3.6 module for NGINX Unit
5
6MODULE_VERSION_python36=	$(VERSION)
7MODULE_RELEASE_python36=	1
8
9MODULE_CONFARGS_python36=	python --config=python3.6-config
10MODULE_MAKEARGS_python36=	python3.6
11MODULE_INSTARGS_python36=	python3.6-install
12
13MODULE_SOURCES_python36=	unit.example-python-app \
14				unit.example-python3.6-config
15
16BUILD_DEPENDS_python36=	python3.6-dev
17BUILD_DEPENDS+=		$(BUILD_DEPENDS_python36)
18
19MODULE_BUILD_DEPENDS_python36=,python3.6-dev
20
21define MODULE_PREINSTALL_python36
22	mkdir -p debian/unit-python3.6/usr/share/doc/unit-python3.6/examples/python-app
23	install -m 644 -p debian/unit.example-python-app debian/unit-python3.6/usr/share/doc/unit-python3.6/examples/python-app/wsgi.py
24	install -m 644 -p debian/unit.example-python3.6-config debian/unit-python3.6/usr/share/doc/unit-python3.6/examples/unit.config
25endef
26export MODULE_PREINSTALL_python36
27
28define MODULE_POST_python36
29cat <<BANNER
30----------------------------------------------------------------------
31
32The $(MODULE_SUMMARY_python36) has been installed.
33
34To check out the sample app, run these commands:
35
36 sudo service unit restart
37 cd /usr/share/doc/unit-$(MODULE_SUFFIX_python36)/examples
38 sudo curl -X PUT --data-binary @unit.config --unix-socket /var/run/control.unit.sock http://localhost/config
39 curl http://localhost:8400/
40
41Online documentation is available at https://unit.nginx.org
42
43----------------------------------------------------------------------
44BANNER
45endef
46export MODULE_POST_python36
47