xref: /unit/pkg/deb/Makefile.python27 (revision 821:b2fbe135c737)
1MODULES+=			python27
2MODULE_SUFFIX_python27=		python2.7
3
4MODULE_SUMMARY_python27=	Python 2.7 module for NGINX Unit
5
6MODULE_VERSION_python27=	$(VERSION)
7MODULE_RELEASE_python27=	1
8
9MODULE_CONFARGS_python27=	python --config=python2.7-config
10MODULE_MAKEARGS_python27=	python2.7
11MODULE_INSTARGS_python27=	python2.7-install
12
13MODULE_SOURCES_python27=	unit.example-python-app \
14				unit.example-python2.7-config
15
16BUILD_DEPENDS_python27=	python2.7-dev
17BUILD_DEPENDS+=		$(BUILD_DEPENDS_python27)
18
19MODULE_BUILD_DEPENDS_python27=,python2.7-dev
20
21define MODULE_PREINSTALL_python27
22	mkdir -p debian/unit-python2.7/usr/share/doc/unit-python2.7/examples/python-app
23	install -m 644 -p debian/unit.example-python-app debian/unit-python2.7/usr/share/doc/unit-python2.7/examples/python-app/wsgi.py
24	install -m 644 -p debian/unit.example-python2.7-config debian/unit-python2.7/usr/share/doc/unit-python2.7/examples/unit.config
25endef
26export MODULE_PREINSTALL_python27
27
28define MODULE_POST_python27
29cat <<BANNER
30----------------------------------------------------------------------
31
32The $(MODULE_SUMMARY_python27) 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_python27)/examples
38 sudo curl -X PUT --data-binary @unit.config --unix-socket /var/run/control.unit.sock :/config
39 curl http://localhost:8400/
40
41Online documentation is available at https://unit.nginx.org
42
43----------------------------------------------------------------------
44BANNER
45endef
46export MODULE_POST_python27
47