summaryrefslogtreecommitdiff
path: root/databases/postgresql13-plperl
diff options
context:
space:
mode:
Diffstat (limited to 'databases/postgresql13-plperl')
-rw-r--r--databases/postgresql13-plperl/DESCR5
-rw-r--r--databases/postgresql13-plperl/MESSAGE7
-rw-r--r--databases/postgresql13-plperl/Makefile24
-rw-r--r--databases/postgresql13-plperl/PLIST25
4 files changed, 61 insertions, 0 deletions
diff --git a/databases/postgresql13-plperl/DESCR b/databases/postgresql13-plperl/DESCR
new file mode 100644
index 00000000000..9057591c0ba
--- /dev/null
+++ b/databases/postgresql13-plperl/DESCR
@@ -0,0 +1,5 @@
+PL/Perl allows you to write functions in the Perl programming language
+that may be used in SQL queries as if they were built into Postgres.
+The PL/Perl intepreter is a full Perl interpreter. However, certain
+operations have been disabled in order to maintain the security of the
+system.
diff --git a/databases/postgresql13-plperl/MESSAGE b/databases/postgresql13-plperl/MESSAGE
new file mode 100644
index 00000000000..2dfee20d735
--- /dev/null
+++ b/databases/postgresql13-plperl/MESSAGE
@@ -0,0 +1,7 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2020/10/18 09:24:02 adam Exp $
+
+Please see the PL/Perl section of the PostgreSQL Programmer's Guide
+(databases/postgresql-docs) for information on programming with
+${PKGNAME}.
+===========================================================================
diff --git a/databases/postgresql13-plperl/Makefile b/databases/postgresql13-plperl/Makefile
new file mode 100644
index 00000000000..d36d114de99
--- /dev/null
+++ b/databases/postgresql13-plperl/Makefile
@@ -0,0 +1,24 @@
+#$ $NetBSD: Makefile,v 1.1 2020/10/18 09:24:02 adam Exp $
+
+PKGNAME= ${DISTNAME:S/-/13-plperl-/}
+COMMENT= PL/Perl procedural language for the PostgreSQL backend
+
+DEPENDS+= postgresql13-server>=${PKGVERSION_NOREV}:../../databases/postgresql13-server
+
+.include "../../databases/postgresql13/Makefile.common"
+
+USE_TOOLS+= perl
+PERL5_CONFIGURE= no
+CONFIGURE_ARGS+= --with-perl
+BUILD_MAKE_FLAGS= PGXS=1
+
+BUILD_DIRS= src/pl/plperl
+MAKE_FILE= GNUmakefile
+
+# There is some dependency ordering problem in the Makefile,
+# so force the headers to be generated first.
+BUILD_TARGET= perlchunks.h plperl_opmask.h all
+
+.include "../../databases/postgresql13-client/buildlink3.mk"
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/postgresql13-plperl/PLIST b/databases/postgresql13-plperl/PLIST
new file mode 100644
index 00000000000..6240cfbd720
--- /dev/null
+++ b/databases/postgresql13-plperl/PLIST
@@ -0,0 +1,25 @@
+@comment $NetBSD: PLIST,v 1.1 2020/10/18 09:24:02 adam Exp $
+include/postgresql/server/plperl.h
+include/postgresql/server/plperl_helpers.h
+include/postgresql/server/ppport.h
+lib/postgresql/plperl.so
+${PLIST.nls}share/locale/cs/LC_MESSAGES/plperl-13.mo
+${PLIST.nls}share/locale/de/LC_MESSAGES/plperl-13.mo
+${PLIST.nls}share/locale/es/LC_MESSAGES/plperl-13.mo
+${PLIST.nls}share/locale/fr/LC_MESSAGES/plperl-13.mo
+${PLIST.nls}share/locale/it/LC_MESSAGES/plperl-13.mo
+${PLIST.nls}share/locale/ja/LC_MESSAGES/plperl-13.mo
+${PLIST.nls}share/locale/ko/LC_MESSAGES/plperl-13.mo
+${PLIST.nls}share/locale/pl/LC_MESSAGES/plperl-13.mo
+${PLIST.nls}share/locale/pt_BR/LC_MESSAGES/plperl-13.mo
+${PLIST.nls}share/locale/ro/LC_MESSAGES/plperl-13.mo
+${PLIST.nls}share/locale/ru/LC_MESSAGES/plperl-13.mo
+${PLIST.nls}share/locale/sv/LC_MESSAGES/plperl-13.mo
+${PLIST.nls}share/locale/tr/LC_MESSAGES/plperl-13.mo
+${PLIST.nls}share/locale/uk/LC_MESSAGES/plperl-13.mo
+${PLIST.nls}share/locale/vi/LC_MESSAGES/plperl-13.mo
+${PLIST.nls}share/locale/zh_CN/LC_MESSAGES/plperl-13.mo
+share/postgresql/extension/plperl--1.0.sql
+share/postgresql/extension/plperl.control
+share/postgresql/extension/plperlu--1.0.sql
+share/postgresql/extension/plperlu.control