opt/mysql/Pkgfile

45 lines
1.4 KiB
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# Description: SQL database server
# URL: http://www.mysql.com
2008-07-11 09:29:19 +02:00
# Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de
2008-08-08 09:12:34 +02:00
# Depends on: ncurses readline zlib
2006-02-23 16:26:10 +01:00
name=mysql
2010-07-23 11:46:54 +02:00
version=5.1.49
2008-12-22 18:12:16 +01:00
release=1
2009-06-13 23:15:46 +02:00
source=(http://mirror.switch.ch/mirror/mysql/Downloads/MySQL-5.1/$name-$version.tar.gz \
my.cnf mysqld mysql-5.1-gcc45-apicheck.patch)
2006-02-23 16:26:10 +01:00
build () {
cd $name-$version
2009-06-13 23:15:46 +02:00
patch -p1 -i $SRC/mysql-5.1-gcc45-apicheck.patch
2006-02-23 16:26:10 +01:00
./configure --prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/sbin \
--localstatedir=/var/lib \
2009-02-17 15:48:55 +01:00
--mandir=/usr/man \
2006-02-23 16:26:10 +01:00
--enable-assembler \
--enable-thread-safe-client \
2009-06-13 23:15:46 +02:00
--without-{readline,debug,docs} \
--with-ssl \
--with-plugins=myisam,innobase
2006-02-23 16:26:10 +01:00
make
make DESTDIR=$PKG install
2009-06-13 23:15:46 +02:00
rm -r $PKG/usr/{mysql-test,sql-bench}
2006-08-04 17:05:43 +02:00
rm $PKG/usr/share/mysql/charsets/README
2006-02-23 16:26:10 +01:00
find $PKG/usr/share/mysql/* -type d ! -name english ! -name charsets | xargs rm -rf {} \;
2009-06-13 23:15:46 +02:00
install -d $PKG/var/{lib,log}
2006-02-23 16:26:10 +01:00
touch mysqld.log
2009-06-13 23:15:46 +02:00
install -m 600 -o mysql -g mysql mysqld.log $PKG/var/log
install -d -m 700 -o mysql -g mysql $PKG/var/lib/mysql
2006-02-23 16:26:10 +01:00
install -D -m 755 $SRC/mysqld $PKG/etc/rc.d/mysqld
install -m 600 $SRC/my.cnf $PKG/etc
install -d $PKG/etc/ld.so.conf.d
echo "/usr/lib/mysql" > $PKG/etc/ld.so.conf.d/mysql.conf
2006-02-23 16:26:10 +01:00
}