39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
![]() |
# Description: SQL database server
|
|||
|
# URL: http://www.mysql.com
|
|||
|
# Maintainer: J<>rgen Daubert, juergen dot daubert at t-online dot de
|
|||
|
# Depends on: ncurses, zlib
|
|||
|
|
|||
|
name=mysql
|
|||
|
version=4.1.18
|
|||
|
release=1
|
|||
|
source=(http://mirrors.sunsite.dk/mysql/Downloads/MySQL-4.1/$name-$version.tar.gz \
|
|||
|
my.cnf mysqld)
|
|||
|
|
|||
|
build () {
|
|||
|
cd $name-$version
|
|||
|
./configure --prefix=/usr \
|
|||
|
--sysconfdir=/etc \
|
|||
|
--libexecdir=/usr/sbin \
|
|||
|
--localstatedir=/var/lib \
|
|||
|
--enable-assembler \
|
|||
|
--enable-thread-safe-client \
|
|||
|
--without-berkeley-db \
|
|||
|
--without-innodb \
|
|||
|
--without-debug \
|
|||
|
--without-docs \
|
|||
|
--without-bench
|
|||
|
make
|
|||
|
make DESTDIR=$PKG install
|
|||
|
|
|||
|
rm -r $PKG/usr/mysql-test
|
|||
|
find $PKG/usr/share/mysql/* -prune -type f ! -regex '.*\(cnf\|sql\)$' | xargs rm -f {} \;
|
|||
|
find $PKG/usr/share/mysql/* -type d ! -name english ! -name charsets | xargs rm -rf {} \;
|
|||
|
|
|||
|
mkdir -p $PKG/{var/lib,var/log}
|
|||
|
touch mysqld.log
|
|||
|
install -m 600 -o daemon -g daemon mysqld.log $PKG/var/log
|
|||
|
install -d -m 700 -o daemon -g daemon $PKG/var/lib/mysql
|
|||
|
install -D -m 755 $SRC/mysqld $PKG/etc/rc.d/mysqld
|
|||
|
install -m 600 $SRC/my.cnf $PKG/etc
|
|||
|
}
|