DBD-MariaDB
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
method1 = TLS_method_func();
if (!method1)
return 1;
ctx1 = SSL_CTX_new_func(method1);
if (!ctx1)
return 1;
mysql_server_init(-1, 0, 0);
mysql_server_end();
method2 = TLS_method_func();
if (!method2)
return 1;
ctx2 = SSL_CTX_new_func(method2);
if (!ctx2)
return 1;
SSL_CTX_free_func(ctx1);
SSL_CTX_free_func(ctx2);
return 0;
EOF
);
print "Client library deinitialize OpenSSL library functions: " . ($have_problem_with_openssl ? "yes" : "no") . "\n\n";
my $fileName = File::Spec->catfile("t", "MariaDB.mtest");
print "Writing $fileName for test suite\n";
(open(FILE, ">$fileName") &&
(print FILE ("{\n" .
"local " . Data::Dumper->new([$opt], ["opt"])->Sortkeys(1)->Indent(1)->Dump() .
"local " . Data::Dumper->new([$source], ["source"])->Sortkeys(1)->Indent(1)->Dump() .
"\$::test_host = \$opt->{'testhost'};\n" .
"\$::test_port = \$opt->{'testport'};\n" .
"\$::test_user = \$opt->{'testuser'};\n" .
"\$::test_socket = \$opt->{'testsocket'};\n" .
"\$::test_embdatadir = \$opt->{'testembdatadir'};\n" .
"\$::test_emboptions = \$opt->{'testemboptions'};\n" .
"\$::test_authplugin = \$opt->{'testauthplugin'};\n" .
"\$::test_password = \$opt->{'testpassword'};\n" .
"\$::test_db = \$opt->{'testdb'};\n" .
"\$::test_dsn = \"DBI:MariaDB:\$::test_db\";\n" .
"\$::test_dsn .= \":\$::test_host\" if \$::test_host;\n" .
"\$::test_dsn .= \":\$::test_port\" if \$::test_port;\n".
"\$::test_dsn .= \";mariadb_socket=\$::test_socket\" if \$::test_socket;\n" .
"\$::test_dsn .= \";mariadb_embedded_options=--datadir=\$::test_embdatadir\" if \$::test_embdatadir;\n" .
"\$::test_dsn .= \",\$::test_emboptions\" if \$::test_embdatadir and \$::test_emboptions;\n" .
"\$::test_dsn .= \";mariadb_auth_plugin=\$::test_authplugin\" if \$::test_authplugin;\n" .
"\$::test_dsn .= \";mariadb_connect_timeout=120;mariadb_read_timeout=120;mariadb_write_timeout=120\";\n" .
"\$::test_mysql_config = \$opt->{'mysql_config'} if \$source->{'mysql_config'} eq 'User\\'s choice';\n" .
"\$::test_cflags = \$opt->{'cflags'} if \$source->{'cflags'} eq 'User\\'s choice';\n" .
"\$::test_libs = \$opt->{'libs'} if \$source->{'libs'} eq 'User\\'s choice';\n" .
"} 1;\n")) &&
close(FILE)) || die "Failed to create $fileName: $!";
my $cflags = "-I\$(DBI_INSTARCH_DIR) $opt->{'cflags'}";
$cflags .= " -DHAVE_DBI_1_634" if eval { DBI->VERSION(1.634) };
$cflags .= " -DHAVE_DBI_1_642" if eval { DBI->VERSION(1.642) };
$cflags .= " -DHAVE_EMBEDDED" if $have_embedded;
$cflags .= " -DHAVE_GET_CHARSET_NUMBER" if $have_get_charset_number;
$cflags .= " -DHAVE_GET_OPTION" if $have_get_option;
$cflags .= " -DHAVE_DEINITIALIZE_SSL" if $have_deinitialize_ssl;
$cflags .= " -DHAVE_PROBLEM_WITH_OPENSSL" if $have_problem_with_openssl;
my %o =
(
'NAME' => 'DBD::MariaDB',
'INC' => $cflags,
'dist' => {
'SUFFIX' => ".gz",
'DIST_DEFAULT' => 'all tardist',
'TARFLAGS' => '--format=ustar -c -v -f',
'COMPRESS' => "gzip -9f",
},
'clean' => { 'FILES' => '*.xsi' },
'realclean' => { 'FILES' => 't/MariaDB.mtest' },
'C' => [ "dbdimp.c", "MariaDB.c" ],
'XS' => { 'MariaDB.xs' => 'MariaDB.c' },
'PM' => {
'lib/DBD/MariaDB.pm' => '$(INST_LIB)/DBD/MariaDB.pm',
'lib/DBD/MariaDB.pod' => '$(INST_LIB)/DBD/MariaDB.pod',
'lib/DBD/MariaDB/INSTALL.pod' => '$(INST_LIB)/DBD/MariaDB/INSTALL.pod',
'README.pod' => '$(INST_LIB)/DBD/MariaDB/README.pod',
},
'MAN3PODS' => {
'lib/DBD/MariaDB.pod' => '$(INST_MAN3DIR)/DBD::MariaDB.$(MAN3EXT)',
'lib/DBD/MariaDB/INSTALL.pod' => '$(INST_MAN3DIR)/DBD::MariaDB::INSTALL.$(MAN3EXT)',
'README.pod' => '$(INST_MAN3DIR)/DBD::MariaDB::README.$(MAN3EXT)',
},
'OBJECT' => '$(O_FILES)',
'LIBS' => (join ' ', @libdirs, $main_lib, @libs),
@ldflags ? (dynamic_lib => { OTHERLDFLAGS => (join ' ', @ldflags) }) : (),
'VERSION_FROM' => 'lib/DBD/MariaDB.pm',
ABSTRACT => 'MariaDB and MySQL driver for the Perl5 Database Interface (DBI)',
AUTHOR => 'Pali <pali@cpan.org>',
LICENSE => 'perl',
MIN_PERL_VERSION => '5.008001',
META_MERGE => {
'meta-spec' => {
version => 2,
},
dynamic_config => 0,
resources => {
repository => {
url => 'https://github.com/perl5-dbi/DBD-MariaDB.git',
web => 'https://github.com/perl5-dbi/DBD-MariaDB',
type => 'git',
},
bugtracker => {
web => 'https://github.com/perl5-dbi/DBD-MariaDB/issues',
},
x_MailingList => 'mailto:dbi-dev@perl.org',
license => [ 'http://dev.perl.org/licenses/' ],
homepage => 'https://github.com/perl5-dbi/DBD-MariaDB',
x_IRC => 'irc://irc.perl.org/#dbi',
},
x_contributors => [
# a list of our awesome contributors generated from git
# using the command:
# git shortlog -se | cut -f2- | sed "s/^/ '/;s/$/',/"
( run in 1.739 second using v1.01-cache-2.11-cpan-71847e10f99 )