xref: /unit/pkg/deb/Makefile.perl (revision 787:1f5e8efe6934)
1MODULES+=		perl
2MODULE_SUFFIX_perl=	perl
3
4MODULE_SUMMARY_perl=	Perl module for NGINX Unit
5
6MODULE_VERSION_perl=	$(VERSION)
7MODULE_RELEASE_perl=	1
8
9MODULE_CONFARGS_perl=	perl
10MODULE_MAKEARGS_perl=	perl
11MODULE_INSTARGS_perl=	perl-install
12
13MODULE_SOURCES_perl=	unit.example-perl-app \
14			unit.example-perl-config
15
16BUILD_DEPENDS_perl=	libperl-dev
17BUILD_DEPENDS+=         $(BUILD_DEPENDS_perl)
18
19MODULE_BUILD_DEPENDS_perl=,libperl-dev
20
21define MODULE_PREINSTALL_perl
22	mkdir -p debian/unit-perl/usr/share/doc/unit-perl/examples/perl-app
23	install -m 644 -p debian/unit.example-perl-app debian/unit-perl/usr/share/doc/unit-perl/examples/perl-app/index.pl
24	install -m 644 -p debian/unit.example-perl-config debian/unit-perl/usr/share/doc/unit-perl/examples/unit.config
25endef
26export MODULE_PREINSTALL_perl
27
28define MODULE_POST_perl
29cat <<BANNER
30----------------------------------------------------------------------
31
32The $(MODULE_SUMMARY_perl) 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_perl)/examples
38 sudo curl -X PUT --data-binary @unit.config --unix-socket /var/run/control.unit.sock :/config
39 curl http://localhost:8600/
40
41Online documentation is available at https://unit.nginx.org
42
43----------------------------------------------------------------------
44BANNER
45endef
46export MODULE_POST_perl
47