Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/4] mysql: fix missing directory
@ 2014-03-04 14:50 Marcelo Gutiérrez
  2014-03-04 14:50 ` [Buildroot] [PATCH 2/4] mysql: add mysql user Marcelo Gutiérrez
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Marcelo Gutiérrez @ 2014-03-04 14:50 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Marcelo Guti?rrez <kuyurix@gmail.com>
---
 package/mysql/mysql.mk |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/mysql/mysql.mk b/package/mysql/mysql.mk
index 95b30b7..eb3a70e 100644
--- a/package/mysql/mysql.mk
+++ b/package/mysql/mysql.mk
@@ -40,6 +40,7 @@ HOST_MYSQL_CONF_OPT = \
 	--with-embedded-server
 
 MYSQL_CONF_OPT += \
+	--localstatedir=/var/mysql \
 	--disable-dependency-tracking \
 	--with-atomic-ops=up \
 	--with-embedded-server \
@@ -78,6 +79,12 @@ define HOST_MYSQL_INSTALL_CMDS
 	$(INSTALL) -m 0755  $(@D)/sql/gen_lex_hash  $(HOST_DIR)/usr/bin/
 endef
 
+define MYSQL_ADD_FOLDER
+	$(INSTALL) -d $(TARGET_DIR)/var/mysql
+endef
+
+MYSQL_POST_INSTALL_TARGET_HOOKS += MYSQL_ADD_FOLDER
+
 else
 MYSQL_CONF_OPT += \
 	--without-server
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-07-21 22:11 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-04 14:50 [Buildroot] [PATCH 1/4] mysql: fix missing directory Marcelo Gutiérrez
2014-03-04 14:50 ` [Buildroot] [PATCH 2/4] mysql: add mysql user Marcelo Gutiérrez
2014-07-21 22:10   ` Thomas Petazzoni
2014-03-04 14:50 ` [Buildroot] [PATCH 3/4] mysql: add mysql init script Marcelo Gutiérrez
2014-07-21 22:11   ` Thomas Petazzoni
2014-03-04 14:50 ` [Buildroot] [PATCH 4/4] mysql: host-mysql depends on host-zlib Marcelo Gutiérrez
2014-03-04 17:52   ` Thomas Petazzoni
2014-03-04 18:30     ` Marcelo Gutierrez
2014-03-04 20:03       ` Marcelo Gutierrez
2014-07-21 22:11   ` Thomas Petazzoni
2014-07-21 22:09 ` [Buildroot] [PATCH 1/4] mysql: fix missing directory Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox