diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2011-01-03 11:44:38 +0100 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-01-03 12:02:34 +0100 |
commit | ef3de09a6bec187e1b6b8db46c55a237ba226a2c (patch) | |
tree | 5f843e4bfe14f8334eeb2bc1be7eeb348d49b0b6 /recipes-support/mysql/mysql5_5.1.40.inc | |
parent | 156f6d3dc264c26f743a4359e4d40181a79ba038 (diff) | |
download | meta-openembedded-ef3de09a6bec187e1b6b8db46c55a237ba226a2c.tar.gz |
mysql5: import from OE
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'recipes-support/mysql/mysql5_5.1.40.inc')
-rw-r--r-- | recipes-support/mysql/mysql5_5.1.40.inc | 170 |
1 files changed, 170 insertions, 0 deletions
diff --git a/recipes-support/mysql/mysql5_5.1.40.inc b/recipes-support/mysql/mysql5_5.1.40.inc new file mode 100644 index 0000000000..d7c1b7261a --- /dev/null +++ b/recipes-support/mysql/mysql5_5.1.40.inc | |||
@@ -0,0 +1,170 @@ | |||
1 | DESCRIPTION = "The MySQL Open Source Database System" | ||
2 | HOMEPAGE = "http://www.mysql.com/" | ||
3 | SECTION = "libs" | ||
4 | LICENSE = "GPL" | ||
5 | DEPENDS = "ncurses" | ||
6 | PR = "r5" | ||
7 | |||
8 | SRC_URI = "http://downloads.mysql.com/archives/mysql-5.1/mysql-${PV}.tar.gz \ | ||
9 | file://configure.in.patch \ | ||
10 | file://plug.in.patch \ | ||
11 | file://misc.m4.patch \ | ||
12 | file://Makefile.am.patch \ | ||
13 | file://fix_host_path.patch \ | ||
14 | file://configure-ps-cache-check.patch \ | ||
15 | file://fix-abi-check-gcc45.patch \ | ||
16 | file://my.cnf \ | ||
17 | file://mysqld.sh" | ||
18 | |||
19 | S = "${WORKDIR}/mysql-${PV}" | ||
20 | |||
21 | BINCONFIG_GLOB = "mysql_config" | ||
22 | |||
23 | inherit autotools binconfig update-rc.d | ||
24 | |||
25 | INITSCRIPT_PACKAGES = "${PN}-server" | ||
26 | INITSCRIPT_NAME = "mysqld" | ||
27 | INITSCRIPT_PARAMS = "start 45 S . stop 45 0 6 1 ." | ||
28 | |||
29 | export ac_cv_path_PS=/bin/ps | ||
30 | export ac_cv_FIND_PROC="/bin/ps p \$\$PID | grep -v grep | grep mysqld > /dev/null" | ||
31 | PARALLEL_MAKE = " " | ||
32 | EXTRA_OEMAKE = "'GEN_LEX_HASH=${STAGING_BINDIR_NATIVE}/gen_lex_hash'" | ||
33 | EXTRA_OECONF = " --with-atomic-ops=up --with-embedded-server --prefix=/usr --sysconfdir=/etc/mysql --localstatedir=/var/mysql --disable-dependency-tracking --without-raid --without-debug --with-low-memory --without-query-cache --without-man --without-docs --without-innodb " | ||
34 | |||
35 | do_configure_append() { | ||
36 | sed -i /comp_err/d ${S}/sql/share/Makefile | ||
37 | } | ||
38 | |||
39 | SYSROOT_PREPROCESS_FUNCS += "mysql5_sysroot_preprocess" | ||
40 | |||
41 | # We need to append this so it runs *after* binconfig's preprocess function | ||
42 | mysql5_sysroot_preprocess () { | ||
43 | sed -i -es,^pkgincludedir=\'/usr/include/mysql\',pkgincludedir=\'${STAGING_INCDIR}\', ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}/mysql_config | ||
44 | sed -i -es,^pkglibdir=\'/usr/lib/mysql\',pkglibdir=\'${STAGING_LIBDIR}\', ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}/mysql_config | ||
45 | } | ||
46 | |||
47 | do_install() { | ||
48 | oe_runmake 'DESTDIR=${D}' install | ||
49 | mv -f ${D}${libdir}/mysql/* ${D}${libdir} | ||
50 | rmdir ${D}${libdir}/mysql | ||
51 | |||
52 | install -d ${D}/etc/init.d | ||
53 | install -m 0644 ${WORKDIR}/my.cnf ${D}/etc/ | ||
54 | install -m 0755 ${WORKDIR}/mysqld.sh ${D}/etc/init.d/mysqld | ||
55 | } | ||
56 | |||
57 | pkg_postinst_mysql5-server () { | ||
58 | if [ "x$D" != "x" ]; then | ||
59 | exit 1 | ||
60 | fi | ||
61 | |||
62 | grep mysql /etc/passwd || adduser --disabled-password --home=/var/mysql --ingroup nogroup mysql | ||
63 | |||
64 | #Install the database | ||
65 | test -d /usr/bin || mkdir -p /usr/bin | ||
66 | test -e /usr/bin/hostname || ln -s /bin/hostname /usr/bin/hostname | ||
67 | mkdir /var/lib/mysql | ||
68 | chown mysql.nogroup /var/lib/mysql | ||
69 | |||
70 | mysql_install_db | ||
71 | |||
72 | } | ||
73 | |||
74 | pkg_postrm_mysql5-server () { | ||
75 | grep mysql /etc/passwd && deluser mysql | ||
76 | } | ||
77 | |||
78 | PACKAGES = "${PN}-dbg ${PN} \ | ||
79 | libmysqlclient-r libmysqlclient-r-dev libmysqlclient-r-dbg \ | ||
80 | libmysqlclient libmysqlclient-dev libmysqlclient-dbg \ | ||
81 | ${PN}-client ${PN}-server ${PN}-leftovers" | ||
82 | CONFFILES_${PN}-server += "${sysconfdir}/my.cnf" | ||
83 | |||
84 | FILES_${PN} = " " | ||
85 | RDEPENDS_${PN} = "${PN}-client ${PN}-server" | ||
86 | ALLOW_EMPTY_${PN} = "1" | ||
87 | |||
88 | FILES_libmysqlclient = "${libdir}/libmysqlclient.so.*" | ||
89 | FILES_libmysqlclient-dev = " \ | ||
90 | ${includedir}/mysql/ \ | ||
91 | ${libdir}/lib* \ | ||
92 | ${libdir}/plugin/* \ | ||
93 | ${sysconfdir}/aclocal \ | ||
94 | ${bindir}/mysql_config" | ||
95 | FILES_libmysqlclient-dbg = "${libdir}/plugin/.debug/ \ | ||
96 | /usr/mysql-test/lib/My/SafeProcess/.debug/my_safe_process" | ||
97 | |||
98 | FILES_libmysqlclient-r = "${libdir}/libmysqlclient_r.so.*" | ||
99 | FILES_libmysqlclient-r-dev = "${libdir}/libmysqlclient_r.*" | ||
100 | FILES_libmysqlclient-r-dbg = "${libdir}/plugin/.debuglibmysqlclient_r.so.*" | ||
101 | |||
102 | FILES_${PN}-client = "\ | ||
103 | ${bindir}/myisam_ftdump \ | ||
104 | ${bindir}/mysql \ | ||
105 | ${bindir}/mysql_client_test \ | ||
106 | ${bindir}/mysql_client_test_embedded \ | ||
107 | ${bindir}/mysql_find_rows \ | ||
108 | ${bindir}/mysql_fix_extensions \ | ||
109 | ${bindir}/mysql_waitpid \ | ||
110 | ${bindir}/mysqlaccess \ | ||
111 | ${bindir}/mysqladmin \ | ||
112 | ${bindir}/mysqlbug \ | ||
113 | ${bindir}/mysqlcheck \ | ||
114 | ${bindir}/mysqldump \ | ||
115 | ${bindir}/mysqldumpslow \ | ||
116 | ${bindir}/mysqlimport \ | ||
117 | ${bindir}/mysqlshow \ | ||
118 | ${bindir}/mysqlslap \ | ||
119 | ${bindir}/mysqltest_embedded \ | ||
120 | ${libexecdir}/mysqlmanager" | ||
121 | |||
122 | FILES_${PN}-server = "\ | ||
123 | ${bindir}/comp_err \ | ||
124 | ${bindir}/isamchk \ | ||
125 | ${bindir}/isamlog \ | ||
126 | ${bindir}/msql2mysql \ | ||
127 | ${bindir}/my_print_defaults \ | ||
128 | ${bindir}/myisamchk \ | ||
129 | ${bindir}/myisamlog \ | ||
130 | ${bindir}/myisampack \ | ||
131 | ${bindir}/mysql_convert_table_format \ | ||
132 | ${bindir}/mysql_fix_privilege_tables \ | ||
133 | ${bindir}/mysql_install_db \ | ||
134 | ${bindir}/mysql_secure_installation \ | ||
135 | ${bindir}/mysql_setpermission \ | ||
136 | ${bindir}/mysql_tzinfo_to_sql \ | ||
137 | ${bindir}/mysql_upgrade \ | ||
138 | ${bindir}/mysql_zap \ | ||
139 | ${bindir}/mysqlbinlog \ | ||
140 | ${bindir}/mysqld_multi \ | ||
141 | ${bindir}/mysqld_safe \ | ||
142 | ${bindir}/mysqlhotcopy \ | ||
143 | ${bindir}/mysqltest \ | ||
144 | ${bindir}/ndb_delete_all \ | ||
145 | ${bindir}/ndb_desc \ | ||
146 | ${bindir}/ndb_drop_index \ | ||
147 | ${bindir}/ndb_drop_table \ | ||
148 | ${bindir}/ndb_mgm \ | ||
149 | ${bindir}/ndb_restore \ | ||
150 | ${bindir}/ndb_select_all \ | ||
151 | ${bindir}/ndb_select_count \ | ||
152 | ${bindir}/ndb_show_tables \ | ||
153 | ${bindir}/ndb_waiter \ | ||
154 | ${bindir}/pack_isam \ | ||
155 | ${bindir}/perror \ | ||
156 | ${bindir}/replace \ | ||
157 | ${bindir}/resolve_stack_dump \ | ||
158 | ${bindir}/resolveip \ | ||
159 | ${libexecdir}/mysqld \ | ||
160 | ${sbindir}/mysqld \ | ||
161 | ${sbindir}/ndb_cpcd \ | ||
162 | ${sbindir}/ndbd \ | ||
163 | ${sbindir}/ndb_mgmd \ | ||
164 | ${datadir}/mysql/ \ | ||
165 | ${localstatedir}/mysql/ \ | ||
166 | ${sysconfdir}/init.d \ | ||
167 | ${sysconfdir}/my.cnf" | ||
168 | |||
169 | DESCRIPTION_${PN}-leftovers = "unpackaged and probably unneeded files for ${PN}" | ||
170 | FILES_${PN}-leftovers = "/" | ||