xref: /unit/pkg/deb/Makefile.python27 (revision 1225:0f35b3937026)
1373Sdefan@nginx.comMODULES+=			python27
2373Sdefan@nginx.comMODULE_SUFFIX_python27=		python2.7
3373Sdefan@nginx.com
4373Sdefan@nginx.comMODULE_SUMMARY_python27=	Python 2.7 module for NGINX Unit
5373Sdefan@nginx.com
6373Sdefan@nginx.comMODULE_VERSION_python27=	$(VERSION)
7*1225Sdefan@nginx.comMODULE_RELEASE_python27=	1
8373Sdefan@nginx.com
9373Sdefan@nginx.comMODULE_CONFARGS_python27=	python --config=python2.7-config
10373Sdefan@nginx.comMODULE_MAKEARGS_python27=	python2.7
11373Sdefan@nginx.comMODULE_INSTARGS_python27=	python2.7-install
12373Sdefan@nginx.com
13373Sdefan@nginx.comMODULE_SOURCES_python27=	unit.example-python-app \
14373Sdefan@nginx.com				unit.example-python2.7-config
15373Sdefan@nginx.com
16489Sdefan@nginx.comBUILD_DEPENDS_python27=	python2.7-dev
17489Sdefan@nginx.comBUILD_DEPENDS+=		$(BUILD_DEPENDS_python27)
18373Sdefan@nginx.com
19373Sdefan@nginx.comMODULE_BUILD_DEPENDS_python27=,python2.7-dev
20373Sdefan@nginx.com
21373Sdefan@nginx.comdefine MODULE_PREINSTALL_python27
22373Sdefan@nginx.com	mkdir -p debian/unit-python2.7/usr/share/doc/unit-python2.7/examples/python-app
23373Sdefan@nginx.com	install -m 644 -p debian/unit.example-python-app debian/unit-python2.7/usr/share/doc/unit-python2.7/examples/python-app/wsgi.py
24373Sdefan@nginx.com	install -m 644 -p debian/unit.example-python2.7-config debian/unit-python2.7/usr/share/doc/unit-python2.7/examples/unit.config
25373Sdefan@nginx.comendef
26373Sdefan@nginx.comexport MODULE_PREINSTALL_python27
27373Sdefan@nginx.com
28373Sdefan@nginx.comdefine MODULE_POST_python27
29373Sdefan@nginx.comcat <<BANNER
30373Sdefan@nginx.com----------------------------------------------------------------------
31373Sdefan@nginx.com
32373Sdefan@nginx.comThe $(MODULE_SUMMARY_python27) has been installed.
33373Sdefan@nginx.com
34373Sdefan@nginx.comTo check out the sample app, run these commands:
35373Sdefan@nginx.com
36373Sdefan@nginx.com sudo service unit restart
37787Sdefan@nginx.com cd /usr/share/doc/unit-$(MODULE_SUFFIX_python27)/examples
38901Sdefan@nginx.com sudo curl -X PUT --data-binary @unit.config --unix-socket /var/run/control.unit.sock http://localhost/config
39373Sdefan@nginx.com curl http://localhost:8400/
40373Sdefan@nginx.com
41373Sdefan@nginx.comOnline documentation is available at https://unit.nginx.org
42373Sdefan@nginx.com
43373Sdefan@nginx.com----------------------------------------------------------------------
44373Sdefan@nginx.comBANNER
45373Sdefan@nginx.comendef
46373Sdefan@nginx.comexport MODULE_POST_python27
47