Added database menu to config (maybe move the other databases under it to remove...
authorArnar Mar Sigurðsson <antab@valka.is>
Sun, 1 Jun 2008 18:08:48 +0000 (18:08 -0000)
committerArnar Mar Sigurðsson <antab@valka.is>
Sun, 1 Jun 2008 18:08:48 +0000 (18:08 -0000)
Added mysql 5.1 client package, can be used to provide mysql support for PHP. Note: This package has only been tested on AVR32.

package/Config.in
package/database/Config.in [new file with mode: 0644]
package/database/database.mk [new file with mode: 0644]
package/database/mysql_client/Config.in [new file with mode: 0644]
package/database/mysql_client/mysql_client.mk [new file with mode: 0644]

index e42a463d80781b2d964f0d0ff7851fac5c3a0e67..34c06816238e82808902076849fe66c9c7f47628 100644 (file)
@@ -127,6 +127,8 @@ if !BR2_PACKAGE_BUSYBOX_HIDE_OTHERS
 source "package/which/Config.in"
 endif
 
+source "package/database/Config.in"
+
 if !BR2_PACKAGE_BUSYBOX_HIDE_OTHERS
 # busybox has an editor
 
diff --git a/package/database/Config.in b/package/database/Config.in
new file mode 100644 (file)
index 0000000..63d8f8f
--- /dev/null
@@ -0,0 +1,5 @@
+menu "Database"
+
+source "package/database/mysql_client/Config.in"
+
+endmenu
diff --git a/package/database/database.mk b/package/database/database.mk
new file mode 100644 (file)
index 0000000..9553847
--- /dev/null
@@ -0,0 +1 @@
+include package/database/*/*.mk
diff --git a/package/database/mysql_client/Config.in b/package/database/mysql_client/Config.in
new file mode 100644 (file)
index 0000000..8375f79
--- /dev/null
@@ -0,0 +1,5 @@
+config BR2_PACKAGE_MYSQL_CLIENT
+       bool "MySQL 5.1 client"
+       default n
+       help
+         MySQL 5.1 client
diff --git a/package/database/mysql_client/mysql_client.mk b/package/database/mysql_client/mysql_client.mk
new file mode 100644 (file)
index 0000000..910db92
--- /dev/null
@@ -0,0 +1,30 @@
+#############################################################
+#
+# MySQL 5.1 Client
+#
+#############################################################
+MYSQL_CLIENT_VERSION = 5.1.23-rc
+MYSQL_CLIENT_SOURCE = mysql-$(MYSQL_CLIENT_VERSION).tar.gz
+MYSQL_CLIENT_SITE = http://mirrors.24-7-solutions.net/pub/mysql/Downloads/MySQL-5.1
+MYSQL_CLIENT_INSTALL_TARGET = YES
+MYSQL_CLIENT_INSTALL_STAGING = YES
+MYSQL_CLIENT_DEPENDENCIES = uclibc readline
+
+MYSQL_CLIENT_CONF_ENV = ac_cv_sys_restartable_syscalls=yes
+MYSQL_CLIENT_CONF_OPT = \
+       --target=$(GNU_TARGET_NAME) \
+       --host=$(GNU_TARGET_NAME) \
+       --build=$(GNU_HOST_NAME) \
+       --program-prefix="" \
+       --prefix=/usr \
+       --without-ndb-binlog \
+       --without-server \
+       --without-docs \
+       --without-man \
+       --without-readline \
+       --without-libedit \
+       --with-low-memory \
+       --enable-thread-safe-client \
+       $(ENABLE_DEBUG)
+
+$(eval $(call AUTOTARGETS,package,mysql_client))