summaryrefslogtreecommitdiff
path: root/databases/mysql51-server/Makefile
diff options
context:
space:
mode:
authortaca <taca>2010-03-21 14:41:41 +0000
committertaca <taca>2010-03-21 14:41:41 +0000
commit1cfce2756cc62bfe93ae4703c4594c5f9e00c9fb (patch)
tree406e75bec7c55984e1d65204a836df458d64b55c /databases/mysql51-server/Makefile
parent70b959866bafabfd3562a404fbf00c80905b6c05 (diff)
downloadpkgsrc-1cfce2756cc62bfe93ae4703c4594c5f9e00c9fb.tar.gz
Add mysqlmanager, ndb-cluster and pstack PKG_OPTIONS.
These are control some optional functions for mysql51-server (leaf package). Bump PKGREVISION.
Diffstat (limited to 'databases/mysql51-server/Makefile')
-rw-r--r--databases/mysql51-server/Makefile31
1 files changed, 23 insertions, 8 deletions
diff --git a/databases/mysql51-server/Makefile b/databases/mysql51-server/Makefile
index 703547099ec..cd64128d3c7 100644
--- a/databases/mysql51-server/Makefile
+++ b/databases/mysql51-server/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.2 2010/03/16 19:24:54 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2010/03/21 14:41:41 taca Exp $
PKGNAME= ${DISTNAME:S/-/-server-/}
-PKGREVISION= 1
+PKGREVISION= 2
SVR4_PKGNAME= mysqs
COMMENT= MySQL 5, a free SQL database (server)
@@ -14,23 +14,38 @@ PKG_DESTDIR_SUPPORT= user-destdir
MAKE_JOBS_SAFE= no
CONFIGURE_ARGS+= --with-libwrap
-CONFIGURE_ARGS+= --with-raid
-CONFIGURE_ARGS+= --without-berkeley-db
-CONFIGURE_ARGS+= --without-mysqlfs
CONFIGURE_ARGS+= --with-mysqld-user=${MYSQL_USER}
.if !empty(PKG_OPTIONS:Membedded-server)
CONFIGURE_ARGS+= --with-embedded-privilege-control
CONFIGURE_ARGS+= --with-embedded-server
-#CONFIGURE_ARGS+= --with-mysqld-ldflags=-all-static
CONFIGURE_ARGS+= --with-pic
PLIST.embedded= yes
.endif
-PLIST_VARS+= embedded
+.if !empty(PKG_OPTIONS:Mndb-cluster)
+CONFIGURE_ARGS+= --with-plugins=innobase,ndbcluster
+REPLACE_PERL+= storage/ndb/tools/ndb_error_reporter \
+ storage/ndb/tools/ndb_size.pl
+PLIST.ndb= yes
+.else
+CONFIGURE_ARGS+= --with-plugins=innobase
+.endif
+
+.if !empty(PKG_OPTIONS:Mpstack)
+CONFIGURE_ARGS+= --with-pstack
+PLIST.pstack= yes
+.endif
+
+.if !empty(PKG_OPTIONS:Mmysqlmanager)
+CONFIGURE_ARGS+= --with-mysqlmanager
+PLIST.manager= yes
+.endif
+
+PLIST_VARS+= embedded manager ndb pstack
PTHREAD_OPTS+= require
-CONFIGURE_ARGS+= --with-pthreads
+CONFIGURE_ARGS+= --with-pthread
PKG_GROUPS= ${MYSQL_GROUP}
PKG_USERS= ${MYSQL_USER}:${MYSQL_GROUP}