From 539caf0946d2a5881ffaa34481f63c1bc67be96d Mon Sep 17 00:00:00 2001 From: Andrei Belov Date: Wed, 7 Feb 2018 17:26:37 +0300 Subject: Packages: added Perl package. --- pkg/deb/Makefile.perl | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 pkg/deb/Makefile.perl (limited to 'pkg/deb/Makefile.perl') diff --git a/pkg/deb/Makefile.perl b/pkg/deb/Makefile.perl new file mode 100644 index 00000000..a6106de0 --- /dev/null +++ b/pkg/deb/Makefile.perl @@ -0,0 +1,45 @@ +MODULES+= perl +MODULE_SUFFIX_perl= perl + +MODULE_SUMMARY_perl= Perl module for NGINX Unit + +MODULE_VERSION_perl= $(VERSION) +MODULE_RELEASE_perl= 1 + +MODULE_CONFARGS_perl= perl +MODULE_MAKEARGS_perl= perl +MODULE_INSTARGS_perl= perl-install + +MODULE_SOURCES_perl= unit.example-perl-app \ + unit.example-perl-config + +BUILD_DEPENDS_perl= libperl-dev +BUILD_DEPENDS+= $(BUILD_DEPENDS_perl) + +MODULE_BUILD_DEPENDS_perl=,libperl-dev + +define MODULE_PREINSTALL_perl + mkdir -p debian/unit-perl/usr/share/doc/unit-perl/examples/perl-app + install -m 644 -p debian/unit.example-perl-app debian/unit-perl/usr/share/doc/unit-perl/examples/perl-app/index.pl + install -m 644 -p debian/unit.example-perl-config debian/unit-perl/usr/share/doc/unit-perl/examples/unit.config +endef +export MODULE_PREINSTALL_perl + +define MODULE_POST_perl +cat <