summaryrefslogtreecommitdiff
path: root/databases/mysql55-server/Makefile
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2011-04-25 21:12:13 +0000
committeradam <adam@pkgsrc.org>2011-04-25 21:12:13 +0000
commit1ad448cffd113fc58c0db7d7bd8f6cfaadf605a4 (patch)
treed3d2a98ac59fdc6d8ae3edf791fc5225c5ff9735 /databases/mysql55-server/Makefile
parent0f414d3eddb03ad40227c2517bff346f53f425dc (diff)
downloadpkgsrc-1ad448cffd113fc58c0db7d7bd8f6cfaadf605a4.tar.gz
MySQL is a SQL (Structured Query Language) database server. SQL is the most
popular database language in the world. MySQL is a client-server implementation that consists of a server daemon `mysqld' and many different client programs/libraries. The main goals of MySQL are speed and robustness. The base upon which MySQL is built is a set of routines that have been used in a highly demanding production environment for many years. While MySQL is still in development it already offers a rich and highly useful function set. The official way to pronounce 'MySQL' is 'My Ess Que Ell' (Not MY-SEQUEL). This package contains the MySQL server programs and libraries including embedded server (by PKG_OPTION).
Diffstat (limited to 'databases/mysql55-server/Makefile')
-rw-r--r--databases/mysql55-server/Makefile77
1 files changed, 77 insertions, 0 deletions
diff --git a/databases/mysql55-server/Makefile b/databases/mysql55-server/Makefile
new file mode 100644
index 00000000000..a51acb1045a
--- /dev/null
+++ b/databases/mysql55-server/Makefile
@@ -0,0 +1,77 @@
+# $NetBSD: Makefile,v 1.1.1.1 2011/04/25 21:12:13 adam Exp $
+
+PKGNAME= ${DISTNAME:S/-/-server-/}
+SVR4_PKGNAME= mysqs
+COMMENT= MySQL 5, a free SQL database (server)
+
+CONFLICTS= {mysql-server-[0-9]*,mysql3-server-[0-9]*}
+
+# might be removed in the future
+# if mysqld_safe script is installed here, or rc.d script invokes mysqld
+DEPENDS+= mysql-client>=${PKGVERSION_NOREV}:../../databases/mysql55-client
+
+.include "../../databases/mysql55-client/Makefile.common"
+
+INFO_FILES= yes
+CMAKE_ARGS+= -DWITH_LIBWRAP=ON
+
+.if !empty(PKG_OPTIONS:Membedded-server)
+CMAKE_ARGS+= -DWITH_EMBEDDED_SERVER=ON
+PLIST.embedded= yes
+.endif
+
+# ndb-cluster does not configure with cmake
+#.if !empty(PKG_OPTIONS:Mndb-cluster)
+#CMAKE_ARGS+= -DWITH_NDBCLUSTER_STORAGE_ENGINE=ON
+#REPLACE_PERL+= storage/ndb/tools/ndb_error_reporter
+#REPLACE_PERL+= storage/ndb/tools/ndb_size.pl
+#PLIST.ndb= yes
+#.endif
+
+PLIST_VARS+= embedded ndb
+
+PTHREAD_OPTS+= require
+
+PKG_GROUPS= ${MYSQL_GROUP}
+PKG_USERS= ${MYSQL_USER}:${MYSQL_GROUP}
+
+PKG_GECOS.${MYSQL_USER}= MySQL database administrator
+PKG_HOME.${MYSQL_USER}= ${MYSQL_DATADIR}
+PKG_SHELL.${MYSQL_USER}= ${SH}
+
+RCD_SCRIPTS= mysqld
+
+FILES_SUBST+= HOSTNAME_CMD=${HOSTNAME_CMD:Q}
+FILES_SUBST+= MYSQL_DATADIR=${MYSQL_DATADIR}
+FILES_SUBST+= MYSQL_USER=${MYSQL_USER} MYSQL_GROUP=${MYSQL_GROUP}
+MESSAGE_SUBST+= MYSQL_DATADIR=${MYSQL_DATADIR}
+MESSAGE_SUBST+= MYSQL_USER=${MYSQL_USER} MYSQL_GROUP=${MYSQL_GROUP}
+BUILD_DEFS+= MYSQL_DATADIR
+
+REPLACE_PERL+= mysql-test/lib/My/SafeProcess/safe_process.pl
+REPLACE_PERL+= mysql-test/lib/v1/mysql-test-run.pl
+REPLACE_PERL+= mysql-test/mysql-stress-test.pl
+REPLACE_PERL+= mysql-test/mysql-test-run.pl
+REPLACE_PERL+= mysql-test/suite/engines/rr_trx/run_stress_tx_rr.pl
+REPLACE_PERL+= mysql-test/suite/funcs_1/lib/DataGen_local.pl
+REPLACE_PERL+= mysql-test/suite/funcs_1/lib/DataGen_modify.pl
+REPLACE_PERL+= mysql-test/suite/funcs_2/lib/gen_charset_utf8.pl
+REPLACE_PERL+= mysql-test/mtr
+
+INSTALLATION_DIRS= bin
+
+.include "../../mk/compiler.mk"
+
+.if !empty(PKGSRC_COMPILER:Msunpro)
+CFLAGS+= -D_POSIX_C_SOURCE=199506L -D__EXTENSIONS__
+CXXFLAGS+= -D_POSIX_C_SOURCE=199506L -D__EXTENSIONS__
+.endif
+
+# mysql-client includes collide with server includes
+#.include "../../databases/mysql55-client/buildlink3.mk"
+# We only need readline to placate the configure script. None of the binaries
+# are linked against -lreadline, so make this only a build-time dependency.
+BUILDLINK_DEPMETHOD.readline= build
+.include "../../devel/readline/buildlink3.mk"
+.include "../../security/tcp_wrappers/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"