xref: /unit/pkg/deb/Makefile.perl (revision 1225:0f35b3937026)
1524Sdefan@nginx.comMODULES+=		perl
2524Sdefan@nginx.comMODULE_SUFFIX_perl=	perl
3524Sdefan@nginx.com
4524Sdefan@nginx.comMODULE_SUMMARY_perl=	Perl module for NGINX Unit
5524Sdefan@nginx.com
6524Sdefan@nginx.comMODULE_VERSION_perl=	$(VERSION)
7*1225Sdefan@nginx.comMODULE_RELEASE_perl=	1
8524Sdefan@nginx.com
9524Sdefan@nginx.comMODULE_CONFARGS_perl=	perl
10524Sdefan@nginx.comMODULE_MAKEARGS_perl=	perl
11524Sdefan@nginx.comMODULE_INSTARGS_perl=	perl-install
12524Sdefan@nginx.com
13524Sdefan@nginx.comMODULE_SOURCES_perl=	unit.example-perl-app \
14524Sdefan@nginx.com			unit.example-perl-config
15524Sdefan@nginx.com
16524Sdefan@nginx.comBUILD_DEPENDS_perl=	libperl-dev
17524Sdefan@nginx.comBUILD_DEPENDS+=         $(BUILD_DEPENDS_perl)
18524Sdefan@nginx.com
19524Sdefan@nginx.comMODULE_BUILD_DEPENDS_perl=,libperl-dev
20524Sdefan@nginx.com
21524Sdefan@nginx.comdefine MODULE_PREINSTALL_perl
22524Sdefan@nginx.com	mkdir -p debian/unit-perl/usr/share/doc/unit-perl/examples/perl-app
23524Sdefan@nginx.com	install -m 644 -p debian/unit.example-perl-app debian/unit-perl/usr/share/doc/unit-perl/examples/perl-app/index.pl
24524Sdefan@nginx.com	install -m 644 -p debian/unit.example-perl-config debian/unit-perl/usr/share/doc/unit-perl/examples/unit.config
25524Sdefan@nginx.comendef
26524Sdefan@nginx.comexport MODULE_PREINSTALL_perl
27524Sdefan@nginx.com
28524Sdefan@nginx.comdefine MODULE_POST_perl
29524Sdefan@nginx.comcat <<BANNER
30524Sdefan@nginx.com----------------------------------------------------------------------
31524Sdefan@nginx.com
32524Sdefan@nginx.comThe $(MODULE_SUMMARY_perl) has been installed.
33524Sdefan@nginx.com
34524Sdefan@nginx.comTo check out the sample app, run these commands:
35524Sdefan@nginx.com
36524Sdefan@nginx.com sudo service unit restart
37787Sdefan@nginx.com cd /usr/share/doc/unit-$(MODULE_SUFFIX_perl)/examples
38901Sdefan@nginx.com sudo curl -X PUT --data-binary @unit.config --unix-socket /var/run/control.unit.sock http://localhost/config
39524Sdefan@nginx.com curl http://localhost:8600/
40524Sdefan@nginx.com
41524Sdefan@nginx.comOnline documentation is available at https://unit.nginx.org
42524Sdefan@nginx.com
43524Sdefan@nginx.com----------------------------------------------------------------------
44524Sdefan@nginx.comBANNER
45524Sdefan@nginx.comendef
46524Sdefan@nginx.comexport MODULE_POST_perl
47