summaryrefslogtreecommitdiff
path: root/mysql/Pkgfile
blob: f9c35e881f03288126313c71608dece8b415b031 (plain)
    1 # Description: SQL database server
    2 # URL:         http://www.mysql.com
    3 # Maintainer:  Jürgen Daubert, juergen dot daubert at t-online dot de
    4 # Depends on:  ncurses, zlib
    5 
    6 name=mysql
    7 version=5.0.26
    8 release=1
    9 source=(http://mirrors.sunsite.dk/mysql/Downloads/MySQL-5.0/$name-$version.tar.gz \
   10         my.cnf mysqld)
   11 
   12 build () {
   13     cd $name-$version
   14     ./configure --prefix=/usr \
   15                 --sysconfdir=/etc \
   16                 --libexecdir=/usr/sbin \
   17                 --localstatedir=/var/lib \
   18                 --enable-assembler \
   19                 --enable-thread-safe-client \
   20                 --without-berkeley-db \
   21                 --enable-innodb \
   22                 --without-debug \
   23                 --without-docs \
   24                 --without-bench 
   25     make
   26     make DESTDIR=$PKG install
   27 
   28     rm -r $PKG/usr/mysql-test
   29     rm $PKG/usr/share/mysql/charsets/README
   30     find $PKG/usr/share/mysql/* -prune -type f ! -regex '.*\(cnf\|sql\)$' | xargs rm -f {} \;
   31     find $PKG/usr/share/mysql/* -type d ! -name english ! -name charsets | xargs rm -rf {} \;
   32 
   33     mkdir -p $PKG/{var/lib,var/log}
   34     touch mysqld.log
   35     install -m 600 -o daemon -g daemon mysqld.log $PKG/var/log
   36     install -d -m 700 -o daemon -g daemon $PKG/var/lib/mysql
   37     install -D -m 755 $SRC/mysqld $PKG/etc/rc.d/mysqld
   38     install -m 600 $SRC/my.cnf $PKG/etc
   39 }

Generated by cgit