diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:20:04 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:20:04 +0200 |
commit | 1b8dfe266937a37a4c642f96ceb2347bf4c00a17 (patch) | |
tree | 0c6aab146bb3c82efd9c7846a9a4e70dcb0ec84f /meta-oe/recipes-support/mysql/mariadb_5.1.67.inc | |
download | meta-openembedded-daisy-140929.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-oe/recipes-support/mysql/mariadb_5.1.67.inc')
-rw-r--r-- | meta-oe/recipes-support/mysql/mariadb_5.1.67.inc | 234 |
1 files changed, 234 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/mysql/mariadb_5.1.67.inc b/meta-oe/recipes-support/mysql/mariadb_5.1.67.inc new file mode 100644 index 0000000000..0c83c71038 --- /dev/null +++ b/meta-oe/recipes-support/mysql/mariadb_5.1.67.inc | |||
@@ -0,0 +1,234 @@ | |||
1 | SUMMARY = "A robust, scalable, and reliable SQL server" | ||
2 | HOMEPAGE = "http://mariadb.org" | ||
3 | SECTION = "libs" | ||
4 | LICENSE = "GPLv2" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | ||
6 | |||
7 | SRC_URI = "http://mirrors.coreix.net/mariadb/mariadb-${PV}/kvm-tarbake-jaunty-x86/mariadb-${PV}.tar.gz \ | ||
8 | file://configure.in.patch \ | ||
9 | file://plug.in.patch \ | ||
10 | file://misc.m4.patch \ | ||
11 | file://Makefile.am.patch \ | ||
12 | file://fix_host_path.patch \ | ||
13 | file://configure-ps-cache-check.patch \ | ||
14 | file://fix-cve-2013-1861-1.patch \ | ||
15 | file://fix-cve-2013-1861-2.patch \ | ||
16 | file://zlib-let-libdir-configurable.patch \ | ||
17 | file://storage-forbids-absolute-addresses-on-IA-32.patch \ | ||
18 | file://my.cnf \ | ||
19 | file://mysqld.sh \ | ||
20 | file://avoid-plugin-options-warnings.patch \ | ||
21 | file://fix-link-error-ub1310.patch \ | ||
22 | " | ||
23 | |||
24 | SRC_URI[md5sum] = "44c331fa91943155e4796f89e17a0612" | ||
25 | SRC_URI[sha256sum] = "33471e9275c9b03919cabc38eb39f807d645adabf6a1a18f2e41ed73f47677c8" | ||
26 | |||
27 | S = "${WORKDIR}/mariadb-${PV}" | ||
28 | |||
29 | BINCONFIG_GLOB = "mysql_config" | ||
30 | |||
31 | inherit autotools-brokensep binconfig update-rc.d useradd | ||
32 | |||
33 | INITSCRIPT_PACKAGES = "${PN}-server" | ||
34 | INITSCRIPT_NAME = "mysqld" | ||
35 | INITSCRIPT_PARAMS = "start 45 5 . stop 45 0 6 1 ." | ||
36 | |||
37 | USERADD_PACKAGES = "${PN}-server" | ||
38 | USERADD_PARAM_${PN}-server = "--system --home-dir /var/mysql -g nogroup --shell /bin/false mysql" | ||
39 | |||
40 | |||
41 | export ac_cv_path_PS="/bin/ps" | ||
42 | export ac_cv_FIND_PROC="/bin/ps p \$\$PID | grep -v grep | grep mysqld > /dev/null" | ||
43 | PARALLEL_MAKE = " " | ||
44 | EXTRA_OEMAKE = "'GEN_LEX_HASH=${STAGING_BINDIR_NATIVE}/gen_lex_hash'" | ||
45 | EXTRA_OECONF = "--with-atomic-ops=up \ | ||
46 | --with-embedded-server \ | ||
47 | --sysconfdir=/etc/mysql \ | ||
48 | --localstatedir=/var/mysql \ | ||
49 | --disable-dependency-tracking \ | ||
50 | --without-debug \ | ||
51 | --with-low-memory \ | ||
52 | --without-query-cache \ | ||
53 | --without-plugin-maria \ | ||
54 | --without-man \ | ||
55 | --without-docs \ | ||
56 | --with-zlib-dir=${STAGING_EXECPREFIXDIR} \ | ||
57 | --with-baselib-dir=${base_libdir} \ | ||
58 | --with-pic \ | ||
59 | " | ||
60 | |||
61 | do_configure_append() { | ||
62 | sed -i /comp_err/d ${B}/sql/share/Makefile | ||
63 | |||
64 | # handle distros with different values of ${libexecdir} | ||
65 | libexecdir2=`echo ${libexecdir} | sed -e 's+/usr/++g'` | ||
66 | sed -i -e "s:/libexec:/$libexecdir2:g" ${S}/scripts/mysql_install_db.sh | ||
67 | sed -i -e "s:mysqld libexec:mysqld $libexecdir2:g" ${S}/scripts/mysql_install_db.sh | ||
68 | sed -i -e "s:/libexec:/$libexecdir2:g" ${S}/scripts/mysqld_safe.sh | ||
69 | } | ||
70 | |||
71 | SYSROOT_PREPROCESS_FUNCS += "mariadb_sysroot_preprocess" | ||
72 | |||
73 | # We need to append this so it runs *after* binconfig's preprocess function | ||
74 | # | ||
75 | # We really don't care exactly what the directories were set to originally. | ||
76 | # plugindir is not fixed, but we don't create any plugins. | ||
77 | # | ||
78 | mariadb_sysroot_preprocess () { | ||
79 | sed -i -es,^pkgincludedir=.*,pkgincludedir=\'${STAGING_INCDIR}/mysql\', ${SYSROOT_DESTDIR}${bindir_crossscripts}/mysql_config | ||
80 | sed -i -es,^pkglibdir=.*,pkglibdir=\'${STAGING_LIBDIR}\', ${SYSROOT_DESTDIR}${bindir_crossscripts}/mysql_config | ||
81 | } | ||
82 | |||
83 | do_install() { | ||
84 | oe_runmake 'DESTDIR=${D}' install | ||
85 | mv -f ${D}${libdir}/mysql/* ${D}${libdir} | ||
86 | rmdir ${D}${libdir}/mysql | ||
87 | find ${D}${libdir} -name '*.la'|xargs sed -i 's#${libdir}/mysql#${libdir}#' | ||
88 | |||
89 | install -d ${D}/etc/init.d | ||
90 | install -m 0644 ${WORKDIR}/my.cnf ${D}/etc/ | ||
91 | install -m 0755 ${WORKDIR}/mysqld.sh ${D}/etc/init.d/mysqld | ||
92 | } | ||
93 | |||
94 | pkg_postinst_${PN}-server () { | ||
95 | if [ "x$D" != "x" ]; then | ||
96 | exit 1 | ||
97 | fi | ||
98 | |||
99 | #Install the database | ||
100 | test -d /usr/bin || mkdir -p /usr/bin | ||
101 | test -e /usr/bin/hostname || ln -s /bin/hostname /usr/bin/hostname | ||
102 | mkdir /var/lib/mysql | ||
103 | chown mysql.nogroup /var/lib/mysql | ||
104 | |||
105 | mysql_install_db | ||
106 | |||
107 | } | ||
108 | |||
109 | PACKAGES = "${PN}-dbg ${PN} \ | ||
110 | libmysqlclient-r libmysqlclient-r-dev libmysqlclient-r-staticdev libmysqlclient-r-dbg \ | ||
111 | libmysqlclient libmysqlclient-dev libmysqlclient-staticdev libmysqlclient-dbg \ | ||
112 | libmysqld libmysqld-dev ${PN}-client ${PN}-server ${PN}-leftovers" | ||
113 | CONFFILES_${PN}-server += "${sysconfdir}/my.cnf" | ||
114 | |||
115 | FILES_${PN} = " " | ||
116 | RDEPENDS_${PN} = "${PN}-client ${PN}-server" | ||
117 | ALLOW_EMPTY_${PN} = "1" | ||
118 | |||
119 | RDEPENDS_${PN}-client = "perl perl-module-getopt-long perl-module-file-temp \ | ||
120 | perl-module-fcntl perl-module-sys-hostname perl-module-ipc-open3 \ | ||
121 | perl-module-exporter" | ||
122 | RDEPENDS_${PN}-server = "perl perl-module-getopt-long perl-module-data-dumper \ | ||
123 | perl-module-file-basename perl-module-file-path perl-module-sys-hostname \ | ||
124 | perl-module-file-copy perl-module-file-temp perl-module-posix" | ||
125 | RDEPENDS_${PN}-leftovers = "perl perl-module-cwd perl-module-benchmark perl-module-getopt-long \ | ||
126 | perl-module-posix perl-module-data-dumper perl-module-sigtrap perl-module-threads \ | ||
127 | perl-module-threads-shared perl-module-io-socket perl-module-sys-hostname perl-module-file-copy \ | ||
128 | perl-module-file-spec perl-module-file-find perl-module-file-basename perl-module-file-path \ | ||
129 | perl-module-constant perl-module-lib perl-module-file-temp perl-module-file-spec-functions \ | ||
130 | perl-module-io-socket-inet perl-module-io-select" | ||
131 | |||
132 | FILES_libmysqlclient = "\ | ||
133 | ${libdir}/libmysqlclient.so.* \ | ||
134 | ${libdir}/plugin/*.so.*" | ||
135 | FILES_libmysqlclient-dev = " \ | ||
136 | ${includedir}/mysql/ \ | ||
137 | ${libdir}/libmysqlclient.so \ | ||
138 | ${libdir}/libmysqlclient.la \ | ||
139 | ${libdir}/plugin/*.so \ | ||
140 | ${libdir}/plugin/*.la \ | ||
141 | ${sysconfdir}/aclocal \ | ||
142 | ${bindir}/mysql_config" | ||
143 | FILES_libmysqlclient-staticdev = "\ | ||
144 | ${libdir}/*.a \ | ||
145 | ${libdir}/plugin/*.a" | ||
146 | FILES_libmysqlclient-dbg = "${libdir}/plugin/.debug/ \ | ||
147 | /usr/mysql-test/lib/My/SafeProcess/.debug/my_safe_process" | ||
148 | |||
149 | # Avoid warnings about ha_xtradb.so.0.0.0 and ha_innodb_plugin.so.0.0.0 | ||
150 | # which are intentionally non-PIC on 32-bit x86 (see e.g. | ||
151 | # storage/xtradb/plug.in in the source) | ||
152 | INSANE_SKIP_libmysqlclient_append_i586 = " textrel" | ||
153 | |||
154 | FILES_libmysqlclient-r = "${libdir}/libmysqlclient_r.so.*" | ||
155 | FILES_libmysqlclient-r-dev = "\ | ||
156 | ${libdir}/libmysqlclient_r.so \ | ||
157 | ${libdir}/libmysqlclient_r.la" | ||
158 | FILES_libmysqlclient-r-staticdev = "${libdir}/libmysqlclient_r.a" | ||
159 | FILES_libmysqlclient-r-dbg = "${libdir}/plugin/.debuglibmysqlclient_r.so.*" | ||
160 | |||
161 | FILES_libmysqld = "\ | ||
162 | ${libdir}/libmysqld.so.*" | ||
163 | FILES_libmysqld-dev = "\ | ||
164 | ${libdir}/libmysqld.so" | ||
165 | |||
166 | FILES_${PN}-client = "\ | ||
167 | ${bindir}/myisam_ftdump \ | ||
168 | ${bindir}/mysql \ | ||
169 | ${bindir}/mysql_client_test \ | ||
170 | ${bindir}/mysql_client_test_embedded \ | ||
171 | ${bindir}/mysql_find_rows \ | ||
172 | ${bindir}/mysql_fix_extensions \ | ||
173 | ${bindir}/mysql_waitpid \ | ||
174 | ${bindir}/mysqlaccess \ | ||
175 | ${bindir}/mysqladmin \ | ||
176 | ${bindir}/mysqlbug \ | ||
177 | ${bindir}/mysqlcheck \ | ||
178 | ${bindir}/mysqldump \ | ||
179 | ${bindir}/mysqldumpslow \ | ||
180 | ${bindir}/mysqlimport \ | ||
181 | ${bindir}/mysqlshow \ | ||
182 | ${bindir}/mysqlslap \ | ||
183 | ${bindir}/mysqltest_embedded \ | ||
184 | ${libexecdir}/mysqlmanager" | ||
185 | |||
186 | FILES_${PN}-server = "\ | ||
187 | ${bindir}/comp_err \ | ||
188 | ${bindir}/isamchk \ | ||
189 | ${bindir}/isamlog \ | ||
190 | ${bindir}/msql2mysql \ | ||
191 | ${bindir}/my_print_defaults \ | ||
192 | ${bindir}/myisamchk \ | ||
193 | ${bindir}/myisamlog \ | ||
194 | ${bindir}/myisampack \ | ||
195 | ${bindir}/mysql_convert_table_format \ | ||
196 | ${bindir}/mysql_fix_privilege_tables \ | ||
197 | ${bindir}/mysql_install_db \ | ||
198 | ${bindir}/mysql_secure_installation \ | ||
199 | ${bindir}/mysql_setpermission \ | ||
200 | ${bindir}/mysql_tzinfo_to_sql \ | ||
201 | ${bindir}/mysql_upgrade \ | ||
202 | ${bindir}/mysql_zap \ | ||
203 | ${bindir}/mysqlbinlog \ | ||
204 | ${bindir}/mysqld_multi \ | ||
205 | ${bindir}/mysqld_safe \ | ||
206 | ${bindir}/mysqlhotcopy \ | ||
207 | ${bindir}/mysqltest \ | ||
208 | ${bindir}/ndb_delete_all \ | ||
209 | ${bindir}/ndb_desc \ | ||
210 | ${bindir}/ndb_drop_index \ | ||
211 | ${bindir}/ndb_drop_table \ | ||
212 | ${bindir}/ndb_mgm \ | ||
213 | ${bindir}/ndb_restore \ | ||
214 | ${bindir}/ndb_select_all \ | ||
215 | ${bindir}/ndb_select_count \ | ||
216 | ${bindir}/ndb_show_tables \ | ||
217 | ${bindir}/ndb_waiter \ | ||
218 | ${bindir}/pack_isam \ | ||
219 | ${bindir}/perror \ | ||
220 | ${bindir}/replace \ | ||
221 | ${bindir}/resolve_stack_dump \ | ||
222 | ${bindir}/resolveip \ | ||
223 | ${libexecdir}/mysqld \ | ||
224 | ${sbindir}/mysqld \ | ||
225 | ${sbindir}/ndb_cpcd \ | ||
226 | ${sbindir}/ndbd \ | ||
227 | ${sbindir}/ndb_mgmd \ | ||
228 | ${datadir}/mysql/ \ | ||
229 | ${localstatedir}/mysql/ \ | ||
230 | ${sysconfdir}/init.d \ | ||
231 | ${sysconfdir}/my.cnf" | ||
232 | |||
233 | DESCRIPTION_${PN}-leftovers = "unpackaged and probably unneeded files for ${PN}" | ||
234 | FILES_${PN}-leftovers = "/" | ||