aboutsummaryrefslogtreecommitdiff
path: root/databases/mariadb-server
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2011-06-02 06:16:25 +0000
committerDoug Barton <dougb@FreeBSD.org>2011-06-02 06:16:25 +0000
commit44708e91728187c3119e3d7a7812e4ad791beac8 (patch)
tree962fc7f0f243d967e5cab0c391990423a26a8559 /databases/mariadb-server
parent3a08792951010f4264295deb2e4226e0d0f8493c (diff)
downloadports-44708e91728187c3119e3d7a7812e4ad791beac8.tar.gz
ports-44708e91728187c3119e3d7a7812e4ad791beac8.zip
Notes
Diffstat (limited to 'databases/mariadb-server')
-rw-r--r--databases/mariadb-server/Makefile95
-rw-r--r--databases/mariadb-server/files/patch-extra::yassl::src::yassl_error.cpp10
-rw-r--r--databases/mariadb-server/files/patch-sql::mysqld.cc8
-rw-r--r--databases/mariadb-server/pkg-message4
4 files changed, 63 insertions, 54 deletions
diff --git a/databases/mariadb-server/Makefile b/databases/mariadb-server/Makefile
index 9f1cd919e740..6d386dc7518f 100644
--- a/databases/mariadb-server/Makefile
+++ b/databases/mariadb-server/Makefile
@@ -1,12 +1,13 @@
-# New ports collection makefile for: mariadb
-# Date created: 14 November 2010
-# Whom: siasia
+# New ports collection makefile for: mariadb-server
+# Date created: 30 May 2011
+# Whom: Doug Barton <dougb@FreeBSD.org>
#
# $FreeBSD$
-#
PORTNAME= mariadb
+PKGNAMESUFFIX?= -server
PORTVERSION= 5.2.5
+PORTREVISION?= 0
CATEGORIES= databases
MASTER_SITES= http://www.percona.com/downloads/MariaDB/${PORTNAME}-${PORTVERSION}/kvm-tarbake-jaunty-x86/ \
http://ftp.osuosl.org/pub/mariadb/${PORTNAME}-${PORTVERSION}/kvm-tarbake-jaunty-x86/ \
@@ -15,32 +16,33 @@ MASTER_SITES= http://www.percona.com/downloads/MariaDB/${PORTNAME}-${PORTVERSION
http://mirror.aarnet.edu.au/pub/MariaDB/${PORTNAME}-${PORTVERSION}/kvm-tarbake-jaunty-x86/ \
http://ftp-stud.hs-esslingen.de/pub/Mirrors/mariadb/${PORTNAME}-${PORTVERSION}/kvm-tarbake-jaunty-x86/ \
http://gd.tuwien.ac.at/db/mariadb/${PORTNAME}-${PORTVERSION}/kvm-tarbake-jaunty-x86/ \
- http://mirrors.fe.up.pt/pub/mariadb/${PORTNAME}-${PORTVERSION}/kvm-tarbake-jaunty-x86/
+ http://mirrors.fe.up.pt/pub/mariadb/${PORTNAME}-${PORTVERSION}/kvm-tarbake-jaunty-x86/ \
+ http://mirror.switch.ch/mirror/mariadb/${PORTNAME}-${PORTVERSION}/kvm-tarbake-jaunty-x86/
MAINTAINER= dgeo@centrale-marseille.fr
-COMMENT= A database server - drop-in replacement functionality for MySQL
+COMMENT?= Database server - drop-in replacement for MySQL
IGNORE= Post repo-copy, not ready for use yet
-LICENSE= GPLv2
-
-CONFLICTS= mysql-server-[0-9]* mysql-client-[0-9]* mysql-scripts-[0-9]*
+CONFLICTS?= mysql-server-[0-9]*
-CONFIGURE_ARGS= --with-embedded-server
+GNU_CONFIGURE= yes
+.if !defined(MARIADB_SCRIPTS_SLAVE)
CPPFLAGS+= -I${LOCALBASE}/include
DATADIR= ${PREFIX}/share/mysql
-GNU_CONFIGURE= yes
USE_LDCONFIG= ${PREFIX}/lib/mysql
-USE_RC_SUBR= mysql-server
+
+INFO= mysql
USERS= mysql
GROUPS= mysql
-INFO= mysql
+OPTIONS= SSL "Activate SSL support (yassl)" Off \
+ OPENSSL "Use OpenSSL instead of bundled yassl" Off
+
MAN1= comp_err.1 \
- innochecksum.1 \
msql2mysql.1 \
my_print_defaults.1 \
myisam_ftdump.1 \
@@ -52,7 +54,6 @@ MAN1= comp_err.1 \
mysql.1 \
mysql.server.1 \
mysql_client_test.1 \
- mysql_client_test_embedded.1 \
mysql_config.1 \
mysql_convert_table_format.1 \
mysql_find_rows.1 \
@@ -80,7 +81,6 @@ MAN1= comp_err.1 \
mysqlshow.1 \
mysqlslap.1 \
mysqltest.1 \
- mysqltest_embedded.1 \
perror.1 \
replace.1 \
resolve_stack_dump.1 \
@@ -88,22 +88,32 @@ MAN1= comp_err.1 \
MAN8= mysqld.8 \
mysqlmanager.8
-OPTIONS= ARIADB "Aria storage engine" On \
+.if !defined(MARIADB_CLIENT_SLAVE)
+LICENSE= GPLv2
+
+CONFIGURE_ARGS= --with-embedded-server
+USE_RC_SUBR= mysql-server
+
+OPTIONS+= ARIADB "Aria storage engine" On \
+ PORTEVENT "Use libevent from ports" Off \
ARCHIVE "Archive storage plugin" On \
- BLACKHOLE "Blackhole storage engine" On \
- FEDERATED "Federated (old) storage engine" Off \
- FEDERATEDX "FederatedX storage engine (Federated replacement)" On \
- INNODB "InnoDB (old) engine" Off \
- XTRADB "XtraDB (InnoDB replacement) engine" On \
+ BLACKHOLE "Blackhole storage engine" On \
+ FEDERATED "Federated (old) storage engine" Off \
+ FEDERATEDX "FederatedX storage engine (Federated replacement)" On \
+ INNODB "InnoDB (old) engine" Off \
+ XTRADB "XtraDB (InnoDB replacement) engine" On \
OQGRAPH "Open Query Graph Computation engine" Off \
- PBXT "MVCC-based transactional engine" Off \
- PARTITION "Partitioning support" Off \
- SPHINX "SE client for Sphinx search daemon" On \
- NDB "Enable NDB support (imply PARTITION)" Off \
- EXAMPLES "Example engine,daemon and ftsearch plugins" Off \
- PORTEVENT "Use libevent from ports" Off \
- SSL "Activate SSL support (yassl)" Off \
- OPENSSL "Use OpenSSL instead of bundled yassl" Off
+ PBXT "MVCC-based transactional engine" Off \
+ PARTITION "Partitioning support" Off \
+ SPHINX "SE client for Sphinx search daemon" On \
+ NDB "Enable NDB support (imply PARTITION)" Off \
+ EXAMPLES "Example engine,daemon and ftsearch plugins" Off
+
+MAN1+= innochecksum.1 \
+ mysql_client_test_embedded.1 \
+ mysqltest_embedded.1
+.endif # .if !defined(MARIADB_CLIENT_SLAVE)
+.endif # .if !defined(MARIADB_SCRIPTS_SLAVE)
.include <bsd.port.options.mk>
@@ -205,11 +215,7 @@ PLIST_SUB+= EXAMPLES="@comment "
.if defined(WITH_NDB)
CONFIGURE_ARGS+= --with-plugin-ndbcluster
WITH_PARTITION=yes
-#MAN1+= ndb_config.1 ndb_delete_all.1 ndb_desc.1 ndb_drop_index.1 \
-# ndb_drop_table.1 ndb_error_reporter.1 ndb_mgm.1 \
-# ndb_print_backup_file.1 ndb_print_schema_file.1 \
-# ndb_print_sys_file.1 ndb_restore.1 ndb_select_all.1 \
-# ndb_select_count.1 ndb_show_tables.1 ndb_size.pl.1 ndb_waiter.1
+
PLIST_SUB+= NDB=""
.else
CONFIGURE_ARGS+= --without-plugin-ndbcluster
@@ -231,18 +237,25 @@ CONFIGURE_ARGS+= --with-extra-charsets=${WITH_XCHARSET}
CONFIGURE_ARGS+= --with-collation=${WITH_COLLATION}
.endif
+.if !defined(MARIADB_SCRIPTS_SLAVE)
pre-fetch:
- @${ECHO} ""
- @${ECHO} " WITH_CHARSET=charset Define the primary built-in charset (def: latin1 selected: ${WITH_CHARSET})."
- @${ECHO} " WITH_XCHARSET=list Define other built-in charsets (selected: ${WITH_XCHARSET})."
- @${ECHO} " WITH_COLLATION=collate Define default collation (def: latin1_swedish_ci selected: ${WITH_COLLATION})."
- @${ECHO} ""
+ @${ECHO} ''
+ @${ECHO} ' The following configuration options can be set in /etc/make.conf'
+ @${ECHO} ''
+ @${ECHO} " WITH_COLLATION=collate"
+ @${ECHO} " Default collation (default: latin1_swedish_ci, selected: ${WITH_COLLATION})."
+ @${ECHO} " WITH_CHARSET=charset"
+ @${ECHO} " Primary built-in charset (default: latin1, selected: ${WITH_CHARSET})."
+ @${ECHO} " WITH_XCHARSET=list"
+ @${ECHO} " Other built-in charsets (default: none, selected: ${WITH_XCHARSET})."
+ @${ECHO} ''
post-patch:
@${REINPLACE_CMD} -e '/^install:/ s|^\(install:\).*$$|\1|' \
${WRKSRC}/mysql-test/Makefile.in ${WRKSRC}/sql-bench/Makefile.in
-port-install:
+post-install:
@${CAT} pkg-message
+.endif
.include <bsd.port.mk>
diff --git a/databases/mariadb-server/files/patch-extra::yassl::src::yassl_error.cpp b/databases/mariadb-server/files/patch-extra::yassl::src::yassl_error.cpp
index 22f981de5570..27c39649dce6 100644
--- a/databases/mariadb-server/files/patch-extra::yassl::src::yassl_error.cpp
+++ b/databases/mariadb-server/files/patch-extra::yassl::src::yassl_error.cpp
@@ -1,13 +1,11 @@
---- extra/yassl/src/yassl_error.cpp 2010-04-28 12:52:24 +0000
-+++ extra/yassl/src/yassl_error.cpp 2011-03-01 17:03:38 +0000
+--- extra/yassl/src/yassl_error.cpp.orig 2011-03-01 22:22:55.000000000 -0800
++++ extra/yassl/src/yassl_error.cpp 2011-05-31 16:50:56.000000000 -0700
@@ -128,7 +128,7 @@
break;
-
+
case badVersion_error :
- strncpy(buffer, "protocl version mismatch", max);
+ strncpy(buffer, "protocol version mismatch", max);
break;
-
+
case compress_error :
-
-
diff --git a/databases/mariadb-server/files/patch-sql::mysqld.cc b/databases/mariadb-server/files/patch-sql::mysqld.cc
index b3eb0311e544..91fdb26d2169 100644
--- a/databases/mariadb-server/files/patch-sql::mysqld.cc
+++ b/databases/mariadb-server/files/patch-sql::mysqld.cc
@@ -1,8 +1,8 @@
---- sql/mysqld.cc 2011-02-28 17:39:30 +0000
-+++ sql/mysqld.cc 2011-03-04 10:39:27 +0000
+--- sql/mysqld.cc.orig 2011-03-01 22:24:07.000000000 -0800
++++ sql/mysqld.cc 2011-05-31 16:50:56.000000000 -0700
@@ -744,9 +744,7 @@
/* Static variables */
-
+
static bool kill_in_progress, segfaulted;
-#ifdef HAVE_STACKTRACE
static my_bool opt_stack_trace;
@@ -10,5 +10,3 @@
static my_bool opt_bootstrap, opt_myisam_log;
static int cleanup_done;
static ulong opt_specialflag, opt_myisam_block_size;
-
-
diff --git a/databases/mariadb-server/pkg-message b/databases/mariadb-server/pkg-message
index 4bfcf37dd75a..d1d9d9292c7e 100644
--- a/databases/mariadb-server/pkg-message
+++ b/databases/mariadb-server/pkg-message
@@ -1,5 +1,5 @@
-MariaDB: you may want to activate plugins
- some plugins (those in ${LOCALBASE}/lib/mysql/plugin/*.so) must be loaded in <datadir>/my.cnf:
+Some optional plugins (those in ${LOCALBASE}/lib/mysql/plugin/*.so)
+must be loaded in <datadir>/my.cnf. For example:
[mysqld]
plugin-load=ha_xtradb.so:ha_federatedx.so