2010-03-04 12:50:13 +00:00
|
|
|
# Template file for 'mysql'
|
|
|
|
pkgname=mysql
|
2010-12-18 14:54:10 +00:00
|
|
|
version=5.1.54
|
2011-07-04 03:53:26 +00:00
|
|
|
distfiles="http://downloads.mysql.com/archives/mysql-5.1/$pkgname-$version.tar.gz"
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2011-10-16 17:46:38 +00:00
|
|
|
configure_args="--sysconfdir=/etc/mysql
|
2010-03-04 12:50:13 +00:00
|
|
|
--with-libwrap --with-charset=utf8 --with-collation=utf8_general_ci
|
|
|
|
--with-extra-charsets=complex --with-embedded-server --enable-local-infile
|
|
|
|
--with-unix-socket-path=/var/run/mysqld/mysqld.sock --enable-assembler
|
|
|
|
--with-pthread --with-named-curses-libs=\"-lncursesw\" --with-ssl=/usr
|
|
|
|
--with-zlib-dir=/usr --with-fast-mutexes --with-big-tables
|
|
|
|
--with-plugins=all --with-embedded-privilege-control --with-mysqlmanager
|
|
|
|
--with-mysqld-user=mysqld --enable-thread-safe-client
|
|
|
|
--libexecdir=/usr/sbin --without-readline"
|
2012-06-05 16:49:00 +00:00
|
|
|
revision=5
|
2012-05-23 16:26:56 +00:00
|
|
|
depends="mysql-client"
|
|
|
|
makedepends="libstdc++-devel zlib-devel tcp_wrappers-devel ncurses-devel openssl-devel readline-devel"
|
|
|
|
fulldepends="perl>=0 procps"
|
2010-03-04 12:50:13 +00:00
|
|
|
short_desc="The world's most popular open source database"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2010-12-18 14:54:10 +00:00
|
|
|
checksum=84370fffc4fe277645fb3a5040d153ff567576b664f0663452be077826b7ab1f
|
2010-03-04 12:50:13 +00:00
|
|
|
long_desc="
|
|
|
|
MySQL is the world's most popular open source database software, with over
|
|
|
|
100 million copies of its software downloaded or distributed throughout
|
|
|
|
it's history. With its superior speed, reliability, and ease of use, MySQL
|
|
|
|
has become the preferred choice for Web, Web 2.0, SaaS, ISV, Telecom
|
|
|
|
companies and forward-thinking corporate IT Managers because it eliminates
|
|
|
|
the major problems associated with downtime, maintenance and administration
|
|
|
|
for modern, online applications."
|
|
|
|
|
|
|
|
# Fix build with gcc-4.4.
|
|
|
|
CFLAGS="-fPIC -fno-strict-aliasing"
|
|
|
|
CXXFLAGS="-fPIC -fno-strict-aliasing"
|
|
|
|
|
|
|
|
subpackages="libmysqlclient libmysqlclient-devel libndbclient"
|
|
|
|
subpackages="${subpackages} libndbclient-devel libmysqld-devel"
|
|
|
|
subpackages="${subpackages} mysql-client mysql-ndb"
|
|
|
|
|
|
|
|
conf_files="/etc/mysql/my.cnf /etc/conf.d/mysqld"
|
2010-04-16 20:10:19 +00:00
|
|
|
openrc_services="mysqld default false"
|
2010-03-04 12:50:13 +00:00
|
|
|
|
|
|
|
# Create mysqld user/group.
|
|
|
|
system_accounts="mysqld"
|
|
|
|
mysqld_homedir="/var/lib/mysql"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
post_install()
|
|
|
|
{
|
|
|
|
# Remove tests
|
|
|
|
rm -rf ${DESTDIR}/usr/sql-bench ${DESTDIR}/usr/mysql-test
|
|
|
|
|
|
|
|
# Install config files and OpenRC service.
|
|
|
|
install -D -m640 ${FILESDIR}/my.cnf ${DESTDIR}/etc/mysql/my.cnf
|
|
|
|
install -D -m644 ${FILESDIR}/mysqld.confd ${DESTDIR}/etc/conf.d/mysqld
|
|
|
|
install -D -m755 ${FILESDIR}/mysqld.rc ${DESTDIR}/etc/init.d/mysqld
|
|
|
|
}
|