diff options
-rw-r--r-- | databases/postgresql74-plperl/DESCR | 5 | ||||
-rw-r--r-- | databases/postgresql74-plperl/MESSAGE | 7 | ||||
-rw-r--r-- | databases/postgresql74-plperl/Makefile | 39 | ||||
-rw-r--r-- | databases/postgresql74-plperl/PLIST | 2 |
4 files changed, 53 insertions, 0 deletions
diff --git a/databases/postgresql74-plperl/DESCR b/databases/postgresql74-plperl/DESCR new file mode 100644 index 00000000000..9057591c0ba --- /dev/null +++ b/databases/postgresql74-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/postgresql74-plperl/MESSAGE b/databases/postgresql74-plperl/MESSAGE new file mode 100644 index 00000000000..11cf15f1d88 --- /dev/null +++ b/databases/postgresql74-plperl/MESSAGE @@ -0,0 +1,7 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2004/10/10 12:24:10 jdolecek 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/postgresql74-plperl/Makefile b/databases/postgresql74-plperl/Makefile new file mode 100644 index 00000000000..991904f39c6 --- /dev/null +++ b/databases/postgresql74-plperl/Makefile @@ -0,0 +1,39 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/10/10 12:24:10 jdolecek Exp $ + +PKGNAME= postgresql74-plperl-${BASE_VERS} +COMMENT= PL/Perl procedural language for the PostgreSQL backend + +DEPENDS+= postgresql74-server>=${BASE_VERS}:../../databases/postgresql74-server + +USE_BUILDLINK3= yes + +.include "../postgresql74/Makefile.common" + +CONFIGURE_ARGS+= --with-openssl=${SSLBASE} +CONFIGURE_ARGS+= --with-perl + +LIBPERL_DIR= ${PREFIX}/${PERL5_SUB_INSTALLARCHLIB}/CORE +LDFLAGS+= -Wl,-R${LIBPERL_DIR} + +BUILD_DIRS= ${WRKSRC}/src/pl/plperl +MAKEFILE= GNUmakefile + +PERL5_CONFIGURE= NO + +# On my 2.x system perl 5.8.4's perl & libperl.so are linked with libpthread, +# thus the module would get linked to libpthread too. Since postmaster is not +# threaded, loading the language will crash the SQL server. +BROKEN= "crashes PostgreSQL when compiled with threaded Perl" + +# XXX this package requires modification of the link flags to add the +# directory with libperl.so to the runtime library search path. Since +# this is currently broken anyway, appropriate patch for src/Makefile.global.in +# has not been included. + +.include "../../security/openssl/buildlink3.mk" +BUILDLINK_DEPMETHOD.libperl+= build +.include "../postgresql74-lib/buildlink3.mk" +.include "../../lang/libperl/buildlink3.mk" +.include "../../lang/perl5/module.mk" + +.include "../../mk/bsd.pkg.mk" diff --git a/databases/postgresql74-plperl/PLIST b/databases/postgresql74-plperl/PLIST new file mode 100644 index 00000000000..aa14a1f81ec --- /dev/null +++ b/databases/postgresql74-plperl/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2004/10/10 12:24:10 jdolecek Exp $ +lib/postgresql/plperl.so |