1
0
forked from ports/opt
opt/mysql/Pkgfile

39 lines
1.3 KiB
Plaintext
Raw Normal View History

2005-11-16 18:05:23 +00:00
# Description: SQL database server
# URL: http://www.mysql.com
# Maintainer: J<>rgen Daubert, juergen dot daubert at t-online dot de
2006-01-08 13:48:19 +00:00
# Depends on: ncurses, zlib
2005-11-16 18:05:23 +00:00
name=mysql
2006-02-03 06:38:50 +00:00
version=4.1.18
2005-11-16 18:05:23 +00:00
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
2005-12-12 17:49:09 +00:00
install -D -m 755 $SRC/mysqld $PKG/etc/rc.d/mysqld
install -m 600 $SRC/my.cnf $PKG/etc
2005-11-16 18:05:23 +00:00
}