diff options
author | Achim Gottinger <achim@gentoo.org> | 2000-11-17 09:35:03 +0000 |
---|---|---|
committer | Achim Gottinger <achim@gentoo.org> | 2000-11-17 09:35:03 +0000 |
commit | 84b8c309049e6ea0236cf0326d0d1197b2b76634 (patch) | |
tree | f32a39c5e68b650df37af172a4fa0d4a20c54e54 /dev-db/mysql | |
parent | Initial import of a slew or Ruby modules. This is the base for (diff) | |
download | historical-84b8c309049e6ea0236cf0326d0d1197b2b76634.tar.gz historical-84b8c309049e6ea0236cf0326d0d1197b2b76634.tar.bz2 historical-84b8c309049e6ea0236cf0326d0d1197b2b76634.zip |
Updated mysql and added manual installation of two include files
required for MyODBC
Diffstat (limited to 'dev-db/mysql')
-rw-r--r-- | dev-db/mysql/files/digest-mysql-3.23.27 | 1 | ||||
-rw-r--r-- | dev-db/mysql/mysql-3.23.27.ebuild | 104 |
2 files changed, 105 insertions, 0 deletions
diff --git a/dev-db/mysql/files/digest-mysql-3.23.27 b/dev-db/mysql/files/digest-mysql-3.23.27 new file mode 100644 index 000000000000..d3db1308c9ad --- /dev/null +++ b/dev-db/mysql/files/digest-mysql-3.23.27 @@ -0,0 +1 @@ +MD5 0d3bce5029cb3cb8c04e33b026a4f475 mysql-3.23.27-beta.tar.gz diff --git a/dev-db/mysql/mysql-3.23.27.ebuild b/dev-db/mysql/mysql-3.23.27.ebuild new file mode 100644 index 000000000000..8d23d1b1ed79 --- /dev/null +++ b/dev-db/mysql/mysql-3.23.27.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/mysql-3.23.27.ebuild,v 1.1 2000/11/17 09:35:03 achim Exp $ + +P=${PN}-${PV}-beta +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="The MySQL Database" +SRC_URI="ftp://mysql.valueclick.com/mysql/Downloads/MySQL-3.23/${A} + http://www.mysql.com/Downloads/MySQL-3.23/${A}" +HOMEPAGE="http://www.mysql.com/" + +DEPEND=">=sys-apps/bash-2.04 + >=sys-apps/tcp-wrappers-7.6 + >=sys-libs/glibc-2.1.3 + >=sys-libs/gpm-1.19.3 + >=sys-libs/ncurses-5.1" + +src_compile() { + if [ "$PLATFORM" = "i686-pc-linux-gnu" ] + then + export CFLAGS="-mpentium" + export CXXFLAGS="-mpentium" + fi + # Patch for qmail-mysql + cd ${S}/include + cp nisam.h nisam.h.orig + sed -e "s/define N_MAX_KEY_LENGTH 256/define N_MAX_KEY_LENGTH 500/" nisam.h.orig > nisam.h + + cd ${S} + CXX=gcc ./configure --prefix=/usr --host=${CHOST} \ + --enable-shared \ + --enable-static \ + --enable-assembler \ + --enable-thread-safe-client \ + --with-raid \ + --with-low-memory \ + --with-libwrap \ + --with-berkley-db \ + --libdir=/usr/lib \ + --libexecdir=/usr/sbin \ + --sysconfdir=/etc/mysql \ + --localstatedir=/var/mysql \ + --infodir=/usr/info \ + --mandir=/usr/man \ + --without-debug \ + --with-mysql-user=mysql + try make benchdir=/usr/share/mysql-bench +} + +src_install() { + + cd ${S} + + # Install MySQL + + try make install prefix=${D}/usr \ + libdir=${D}/usr/lib \ + libexecdir=${D}/usr/sbin \ + sysconfdir=${D}/etc/mysql \ + localstatedir=${D}/var/mysql \ + infodir=${D}/usr/info \ + mandir=${D}/usr/man \ + benchdir=${D}/usr/share/mysql-bench + + + # Move Client Libs + mv ${D}/usr/lib/mysql/libmysqlclient.so* ${D}/usr/lib + + insinto /usr/include/mysql + doins include/my_config.h include/my_dir.h + dodir /etc/mysql + cp scripts/mysqlaccess.conf ${D}/etc/mysql + cp ${O}/files/my.cnf ${D}/etc/mysql + + dodir /etc/rc.d/init.d + cp ${O}/files/mysql ${D}/etc/rc.d/init.d/mysql + + # MySQL Docs + + cd ${S} + into /usr + dodoc INSTALL-SOURCE README MIRRORS + cd ${S}/Docs + dodoc INSTALL-BINARY manual.ps manual.txt + docinto html + dodoc manual.html manual_toc.html + +} + +pkg_config () { + + echo "Setting up symlinks..." + ${ROOT}/usr/sbin/rc-update add mysql + +} + + + + + + + |