From 16f542965735c5e1a1bdff28e6b826aa14329cd2 Mon Sep 17 00:00:00 2001 From: bad Date: Thu, 10 Jun 1999 18:32:36 +0000 Subject: [PATCH] Initial import of p5-DBD-mysql based on msql-mysql-modules-1.2017. This is the DBI backend for mysql databases. --- databases/p5-DBD-mysql/Makefile | 29 ++++++++++++++++++++++ databases/p5-DBD-mysql/files/md5 | 3 +++ databases/p5-DBD-mysql/patches/patch-aa | 13 ++++++++++ databases/p5-DBD-mysql/pkg/COMMENT | 1 + databases/p5-DBD-mysql/pkg/DESCR | 10 ++++++++ databases/p5-DBD-mysql/pkg/PLIST-md.shared | 4 +++ databases/p5-DBD-mysql/pkg/PLIST-md.static | 4 +++ databases/p5-DBD-mysql/pkg/PLIST-mi | 13 ++++++++++ 8 files changed, 77 insertions(+) create mode 100644 databases/p5-DBD-mysql/Makefile create mode 100644 databases/p5-DBD-mysql/files/md5 create mode 100644 databases/p5-DBD-mysql/patches/patch-aa create mode 100644 databases/p5-DBD-mysql/pkg/COMMENT create mode 100644 databases/p5-DBD-mysql/pkg/DESCR create mode 100644 databases/p5-DBD-mysql/pkg/PLIST-md.shared create mode 100644 databases/p5-DBD-mysql/pkg/PLIST-md.static create mode 100644 databases/p5-DBD-mysql/pkg/PLIST-mi diff --git a/databases/p5-DBD-mysql/Makefile b/databases/p5-DBD-mysql/Makefile new file mode 100644 index 000000000000..b2f4a63bd97d --- /dev/null +++ b/databases/p5-DBD-mysql/Makefile @@ -0,0 +1,29 @@ +# $NetBSD: Makefile,v 1.1.1.1 1999/06/10 18:32:36 bad Exp $ +# + +DISTNAME= Msql-Mysql-modules-1.2017 +PKGNAME= p5-DBD-mysql-1.2017 +CATEGORIES= databases perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=DBD/} + +MAINTAINER= bad@netbsd.org +HOMEPAGE= http://www.mysql.com.org/ + +DEPENDS+= mysql-client-3.22.22:../../databases/mysql-client +DEPENDS+= p5-DBI-1.08:../../databases/p5-DBI +DEPENDS+= p5-Data-Dumper-2.10:../../devel/p5-Data-Dumper +DEPENDS+= p5-Data-ShowTable-3.3:../../devel/p5-Data-ShowTable + +USE_PERL5= YES + +MYSQL_HEADERDIR= ${LOCALBASE}/include/mysql +MYSQL_LIBDIR= ${LOCALBASE}/lib/mysql + +CONFIGURE_ENV+= MYSQL_HEADERDIR="${MYSQL_HEADERDIR}" +CONFIGURE_ENV+= MYSQL_LIBDIR="${MYSQL_LIBDIR}" +CONFIGURE_ENV+= IN_MYSQL_DISTRIBUTION=1 + +do-configure: + @cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${MAKE_ENV} ${LOCALBASE}/bin/perl Makefile.PL + +.include "../../mk/bsd.pkg.mk" diff --git a/databases/p5-DBD-mysql/files/md5 b/databases/p5-DBD-mysql/files/md5 new file mode 100644 index 000000000000..388e3e74a075 --- /dev/null +++ b/databases/p5-DBD-mysql/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 1999/06/10 18:32:36 bad Exp $ + +MD5 (Msql-Mysql-modules-1.2017.tar.gz) = 8979a52abdc6642679a2f68e329dd9e8 diff --git a/databases/p5-DBD-mysql/patches/patch-aa b/databases/p5-DBD-mysql/patches/patch-aa new file mode 100644 index 000000000000..533077e4b254 --- /dev/null +++ b/databases/p5-DBD-mysql/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 1999/06/10 18:32:37 bad Exp $ + +--- Makefile.PL.orig Tue Jan 26 21:22:04 1999 ++++ Makefile.PL Thu Jun 10 19:04:20 1999 +@@ -417,7 +417,7 @@ + $cfg->{'Mysql'}->{'FINAL_LIBS'} = $final_libs; + + my(@headerfiles) = ("$headerdir/mysql.h"); +- $X{dynamic_lib} = { OTHERLDFLAGS => "-L$libdir $linkwith" }; ++ $X{dynamic_lib} = { OTHERLDFLAGS => "-R$libdir -L$libdir $linkwith" }; + $X{DEFINE} = $defines; + $X{LIBS} = $sysliblist; + $X{INC} = "-I$headerdir -I../dbd -I\$(INSTALLSITEARCH)/auto/DBI" diff --git a/databases/p5-DBD-mysql/pkg/COMMENT b/databases/p5-DBD-mysql/pkg/COMMENT new file mode 100644 index 000000000000..abd30601fbdf --- /dev/null +++ b/databases/p5-DBD-mysql/pkg/COMMENT @@ -0,0 +1 @@ +perl DBI/DBD driver for MySQL databases. diff --git a/databases/p5-DBD-mysql/pkg/DESCR b/databases/p5-DBD-mysql/pkg/DESCR new file mode 100644 index 000000000000..72de65e8b24e --- /dev/null +++ b/databases/p5-DBD-mysql/pkg/DESCR @@ -0,0 +1,10 @@ +Mysql.pm and DBD::mysql implement two different approaches to +communicate with an mysql server. DBD::mysql is built +upon the DBI, the generic Perl Database Interface. It brings you an +identical interface to a broad variety of databases and is in this +regard comparable to ODBC. The advantage of the DBI approach is +portability and interoperability. Mysql.pm is the elder species. +It was written before DBI was available but inspired by an early +draft of the DBI specification. As has been been circulating longer +it are more mature and pretty stable. It is also more complete +than DBD::mysql. diff --git a/databases/p5-DBD-mysql/pkg/PLIST-md.shared b/databases/p5-DBD-mysql/pkg/PLIST-md.shared new file mode 100644 index 000000000000..4486f8c92f7c --- /dev/null +++ b/databases/p5-DBD-mysql/pkg/PLIST-md.shared @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST-md.shared,v 1.1.1.1 1999/06/10 18:32:37 bad Exp $ +lib/perl5/site_perl/${MACHINE_ARCH}-${LOWER_OPSYS}/auto/DBD/mysql/mysql.bs +lib/perl5/site_perl/${MACHINE_ARCH}-${LOWER_OPSYS}/auto/DBD/mysql/mysql.so +@dirrm lib/perl5/site_perl/${MACHINE_ARCH}-${LOWER_OPSYS}/auto/DBD/mysql diff --git a/databases/p5-DBD-mysql/pkg/PLIST-md.static b/databases/p5-DBD-mysql/pkg/PLIST-md.static new file mode 100644 index 000000000000..fec62efc8112 --- /dev/null +++ b/databases/p5-DBD-mysql/pkg/PLIST-md.static @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST-md.static,v 1.1.1.1 1999/06/10 18:32:36 bad Exp $ +lib/perl5/site_perl/${MACHINE_ARCH}-${LOWER_OPSYS}/auto/DBD/mysql/mysql.a +lib/perl5/site_perl/${MACHINE_ARCH}-${LOWER_OPSYS}/auto/DBD/mysql/extralibs.ld +@dirrm lib/perl5/site_perl/${MACHINE_ARCH}-${LOWER_OPSYS}/auto/DBD/mysql diff --git a/databases/p5-DBD-mysql/pkg/PLIST-mi b/databases/p5-DBD-mysql/pkg/PLIST-mi new file mode 100644 index 000000000000..8177280a7e11 --- /dev/null +++ b/databases/p5-DBD-mysql/pkg/PLIST-mi @@ -0,0 +1,13 @@ +@comment $NetBSD: PLIST-mi,v 1.1.1.1 1999/06/10 18:32:36 bad Exp $ +bin/dbimon +man/man1/dbimon.1 +lib/perl5/man/man3/Bundle::DBD::mysql.3 +lib/perl5/man/man3/DBD::mysql.3 +lib/perl5/man/man3/Mysql.3 +lib/perl5/site_perl/Bundle/DBD/mysql.pm +lib/perl5/site_perl/DBD/mysql.pm +lib/perl5/site_perl/Mysql.pm +lib/perl5/site_perl/Mysql/Statement.pm +@dirrm lib/perl5/site_perl/Mysql +lib/perl5/site_perl/i386-netbsd/auto/Msql-Mysql-modules/.packlist +@dirrm lib/perl5/site_perl/i386-netbsd/auto/Msql-Mysql-modules