summaryrefslogtreecommitdiffhomepage
path: root/pkg/deb/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--pkg/deb/Makefile6
-rw-r--r--pkg/deb/Makefile.perl45
2 files changed, 51 insertions, 0 deletions
diff --git a/pkg/deb/Makefile b/pkg/deb/Makefile
index b0daebeb..1f941b44 100644
--- a/pkg/deb/Makefile
+++ b/pkg/deb/Makefile
@@ -24,6 +24,7 @@ include Makefile.python27
include Makefile.python36
include Makefile.go18
include Makefile.go19
+include Makefile.perl
endif
# Ubuntu 17.04
@@ -33,6 +34,7 @@ include Makefile.python27
include Makefile.python35
include Makefile.go17
include Makefile.go18
+include Makefile.perl
endif
# Ubuntu 16.04
@@ -41,12 +43,14 @@ include Makefile.php
include Makefile.python27
include Makefile.python35
include Makefile.go
+include Makefile.perl
endif
# Ubuntu 14.04
ifeq ($(CODENAME),trusty)
include Makefile.php
include Makefile.python
+include Makefile.perl
endif
# Debian 9
@@ -56,6 +60,7 @@ include Makefile.python27
include Makefile.python35
include Makefile.go17
include Makefile.go18
+include Makefile.perl
endif
# Debian 8
@@ -63,6 +68,7 @@ ifeq ($(CODENAME),jessie)
include Makefile.php
include Makefile.python27
include Makefile.python34
+include Makefile.perl
endif
CONFIGURE_ARGS=\
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 <<BANNER
+----------------------------------------------------------------------
+
+The $(MODULE_SUMMARY_perl) has been installed.
+
+To check out the sample app, run these commands:
+
+ sudo service unit restart
+ sudo service unit loadconfig /usr/share/doc/unit-perl/examples/unit.config
+ curl http://localhost:8600/
+
+Online documentation is available at https://unit.nginx.org
+
+----------------------------------------------------------------------
+BANNER
+endef
+export MODULE_POST_perl