2010-03-04 13:50:13 +01:00
|
|
|
# Template file for 'mysql'
|
|
|
|
pkgname=mysql
|
2010-12-18 15:54:10 +01:00
|
|
|
version=5.1.54
|
2011-07-04 05:53:26 +02:00
|
|
|
distfiles="http://downloads.mysql.com/archives/mysql-5.1/$pkgname-$version.tar.gz"
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2011-10-16 19:46:38 +02:00
|
|
|
configure_args="--sysconfdir=/etc/mysql
|
2010-03-04 13:50:13 +01: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-05-23 08:14:33 +02:00
|
|
|
revision=4
|
2012-05-23 18:26:56 +02: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 13:50:13 +01:00
|
|
|
short_desc="The world's most popular open source database"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2010-12-18 15:54:10 +01:00
|
|
|
checksum=84370fffc4fe277645fb3a5040d153ff567576b664f0663452be077826b7ab1f
|
2010-03-04 13:50:13 +01: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 22:10:19 +02:00
|
|
|
openrc_services="mysqld default false"
|
2010-03-04 13:50:13 +01: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
|
|
|
|
}
|