summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorPeter Gavin <pete@gentoo.org>2001-02-16 14:01:14 +0000
committerPeter Gavin <pete@gentoo.org>2001-02-16 14:01:14 +0000
commit8f7b11acccb05e0efc068d00834a10e52566a22a (patch)
tree43aacfba3b82619075362b30f1e84399343a9161 /dev-db
parent:) (diff)
downloadgentoo-2-8f7b11acccb05e0efc068d00834a10e52566a22a.tar.gz
gentoo-2-8f7b11acccb05e0efc068d00834a10e52566a22a.tar.bz2
gentoo-2-8f7b11acccb05e0efc068d00834a10e52566a22a.zip
added mysql-3.23.32-r1.ebuild; same as r0 but runs
aclocal/autoconf/automake, and uses a patch for acinclude.m4 since the sed script in r0 missed one replacement (which couldn't be done with sed w/o replacing a whole bunch of other ones). also added 2 digests.
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/mysql/files/digest-mysql-3.23.32-r11
-rw-r--r--dev-db/mysql/files/mysql-3.23.32-r1-gentoo.diff27
-rw-r--r--dev-db/mysql/mysql-3.23.32-r1.ebuild121
3 files changed, 149 insertions, 0 deletions
diff --git a/dev-db/mysql/files/digest-mysql-3.23.32-r1 b/dev-db/mysql/files/digest-mysql-3.23.32-r1
new file mode 100644
index 000000000000..063412352c47
--- /dev/null
+++ b/dev-db/mysql/files/digest-mysql-3.23.32-r1
@@ -0,0 +1 @@
+MD5 a25ee394377a9d8c14bb9fbd3f84fafa mysql-3.23.32.tar.gz
diff --git a/dev-db/mysql/files/mysql-3.23.32-r1-gentoo.diff b/dev-db/mysql/files/mysql-3.23.32-r1-gentoo.diff
new file mode 100644
index 000000000000..c029a6c435de
--- /dev/null
+++ b/dev-db/mysql/files/mysql-3.23.32-r1-gentoo.diff
@@ -0,0 +1,27 @@
+diff -ru mysql-3.23.32.orig/acinclude.m4 mysql-3.23.32/acinclude.m4
+--- mysql-3.23.32.orig/acinclude.m4 Mon Jan 22 08:37:02 2001
++++ mysql-3.23.32/acinclude.m4 Thu Feb 15 22:31:56 2001
+@@ -744,12 +744,12 @@
+ if test X"$bdb_version_ok" = Xyes; then
+ save_LDFLAGS="$LDFLAGS"
+ LDFLAGS="-L$lib $LDFLAGS"
+- AC_CHECK_LIB(db,db_env_create, [
++ AC_CHECK_LIB(db-3.2,db_env_create, [
+ bdb_dir_ok=installed
+ MYSQL_TOP_BUILDDIR([inc])
+ MYSQL_TOP_BUILDDIR([lib])
+ bdb_includes="-I$inc"
+- bdb_libs="-L$lib -ldb"
++ bdb_libs="-L$lib -ldb-3.2"
+ ])
+ LDFLAGS="$save_LDFLAGS"
+ else
+@@ -777,7 +777,7 @@
+ bdb="$dir"
+ MYSQL_TOP_BUILDDIR([dir])
+ bdb_includes="-I$dir/build_unix"
+- bdb_libs="-L$dir/build_unix -ldb"
++ bdb_libs="-L$dir/build_unix -ldb-3.2"
+ else
+ bdb_dir_ok="$bdb_version_ok"
+ fi
diff --git a/dev-db/mysql/mysql-3.23.32-r1.ebuild b/dev-db/mysql/mysql-3.23.32-r1.ebuild
new file mode 100644
index 000000000000..97df601aed01
--- /dev/null
+++ b/dev-db/mysql/mysql-3.23.32-r1.ebuild
@@ -0,0 +1,121 @@
+# 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.32-r1.ebuild,v 1.1 2001/02/16 14:01:14 pete Exp $
+
+#P=
+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/db-3.2.3h
+ >=sys-libs/glibc-2.1.3
+ >=sys-libs/gpm-1.19.3
+ >=sys-libs/ncurses-5.1
+ >=sys-devel/autoconf-2.13
+ >=sys-devel/automake-1.4"
+
+RDEPEND=">=sys-apps/bash-2.04
+ >=sys-apps/tcp-wrappers-7.6
+ >=sys-libs/db-3.2.3h
+ >=sys-libs/glibc-2.1.3
+ >=sys-libs/gpm-1.19.3
+ >=sys-libs/ncurses-5.1"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ echo ">>> Applying ${PF}-gentoo.diff..."
+ patch -p1 < ${FILESDIR}/${PF}-gentoo.diff
+ echo ">>> Running aclocal..."
+ aclocal
+ echo ">>> Running autoconf (ignore any warnings concerning AC_TRY_RUN)..."
+ autoconf
+ echo ">>> Running automake..."
+ automake
+ # Patch for qmail-mysql
+ cd ${S}/include
+ mv 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
+}
+
+src_compile() {
+
+ export CFLAGS="${CFLAGS/-O?/}"
+ export CXXFLAGS="${CXXFLAGS/-O?/}"
+
+ try CXX=gcc ./configure --prefix=/usr --host=${CHOST} \
+ --enable-shared \
+ --enable-static \
+ --enable-assembler \
+ --enable-thread-safe-client \
+ --with-raid \
+ --with-low-memory \
+ --with-libwrap \
+ --without-readline \
+ --libdir=/usr/lib \
+ --libexecdir=/usr/sbin \
+ --sysconfdir=/etc/mysql \
+ --localstatedir=/var/mysql \
+ --infodir=/usr/share/info \
+ --mandir=/usr/share/man \
+ --without-debug \
+ --with-mysql-user=mysql \
+ --with-berkeley-db-includes=/usr/include/db3 \
+ --with-berkeley-db-libs=/usr/lib
+ try make testdir=/usr/share/mysql/test benchdir=/usr/share/mysql/bench
+}
+
+src_install() {
+
+
+ # 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/share/info \
+ mandir=${D}/usr/share/man \
+ testdir=${D}/usr/share/mysql/test \
+ 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 ${FILESDIR}/my.cnf ${D}/etc/mysql
+
+ dodir /etc/rc.d/init.d
+ cp ${FILESDIR}/mysql ${D}/etc/rc.d/init.d/mysql
+
+ # MySQL Docs
+
+
+ dodoc README MIRRORS
+ cd ${S}/Docs
+ docinto ps
+ dodoc manual.ps
+ docinto txt
+ dodoc manual.txt
+ docinto html
+ dodoc manual.html manual_toc.html
+
+}
+
+pkg_config () {
+
+ echo "Setting up symlinks..."
+ ${ROOT}/usr/sbin/rc-update add mysql
+
+}