blob: b83eec0472c2b725122653df7591938860561305 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
# 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-r2.ebuild,v 1.1 2001/03/06 05:27:27 achim 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 ${P}-db-3.2.3-gentoo.diff..."
patch -p1 < ${FILESDIR}/${P}-db-3.2.3-gentoo.diff
# Required for qmail-mysql
echo ">>> Applying ${P}-nisam.h-gentoo.diff..."
patch -p1 < ${FILESDIR}/${P}-nisam.h-gentoo.diff
}
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
}
|