diff options
author | Marcin Juszkiewicz <hrw@openembedded.org> | 2005-12-21 16:47:12 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-12-21 16:47:12 +0000 |
commit | dbd1d69358e8ad34bae632f8fff266f21d4440c3 (patch) | |
tree | c5dd46204a3038a1ec82fdb931b3aeb7f0a2288c /packages/mysql/mysql_4.1.16.bb | |
parent | fd021ba0bcb90b524ede0384973cb3571311b5d2 (diff) |
mysql: update to 4.1.16 - close #485
- dropped 4.1.10a, 4.1.12
- removed MAINTAINER field
Diffstat (limited to 'packages/mysql/mysql_4.1.16.bb')
-rw-r--r-- | packages/mysql/mysql_4.1.16.bb | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/packages/mysql/mysql_4.1.16.bb b/packages/mysql/mysql_4.1.16.bb new file mode 100644 index 0000000000..fe8c42dd88 --- /dev/null +++ b/packages/mysql/mysql_4.1.16.bb @@ -0,0 +1,46 @@ +DESCRIPTION = "The MySQL Open Source Database System" +SECTION = "libs" +DEPENDS += "ncurses mysql-native" +LICENSE = "GPL" + +SRC_URI = "http://mirrors.develooper.com/mysql/Downloads/MySQL-4.1/mysql-${PV}.tar.gz \ + file://autofoo.patch;patch=1 \ + file://gen_lex_hash.patch;patch=1" + +S = "${WORKDIR}/mysql-${PV}" + +FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/mysql-${PV}', '${FILE_DIRNAME}/files', '${FILE_DIRNAME}' ], d)}" + +BINCONFIG_GLOB = "mysql_config" +inherit autotools binconfig + + +EXTRA_OEMAKE = "'GEN_LEX_HASH=${STAGING_BINDIR}/gen_lex_hash'" +EXTRA_OECONF = " --with-embedded-server --prefix=/usr --sysconfdir=/etc/mysql --localstatedir=/var/mysql --datadir=/var/mysql --disable-dependency-tracking --without-raid --without-debug --with-low-memory --without-query-cache --without-man --without-docs --without-innodb " + +do_stage() { + autotools_stage_includes + oe_libinstall -a -so -C libmysql libmysqlclient ${STAGING_LIBDIR} + oe_libinstall -a -C libmysqld libmysqld ${STAGING_LIBDIR} +} + +do_install() { + oe_runmake 'DESTDIR=${D}' install + mv -f ${D}${libdir}/mysql/* ${D}${libdir} + rmdir ${D}${libdir}/mysql +} + +pkg_postinst () { + grep mysql /etc/passwd || adduser --disabled-password --home=/var/mysql --ingroup nogroup mysql +} + +pkg_postrm () { + grep mysql /etc/passwd && deluser mysql +} + +PACKAGES =+ "libmysqlclient libmysqlclient-dev" + +FILES_libmysqlclient = "${libdir}/libmysqlclient*.so.*" +FILES_libmysqlclient-dev = "${incdir}/mysql ${libdir}/lib* \ + ${bindir}/mysql_config" + |