CVS: crater/sql/mysql-beta BUILD, NONE, 1.1 CONFIGURE, NONE, 1.1 CONFLICTS, NONE, 1.1 DEPENDS, NONE, 1.1 DETAILS, NONE, 1.1 POST_INSTALL, NONE, 1.1

Florin Braescu florin at lunar-linux.org
Sun Dec 21 14:24:45 GMT 2003


Update of /var/cvs/lunar/crater/sql/mysql-beta
In directory dbguin.lunar-linux.org:/tmp/cvs-serv24452/mysql-beta

Added Files:
	BUILD CONFIGURE CONFLICTS DEPENDS DETAILS POST_INSTALL 
Log Message:
moved from the moonbase.


--- NEW FILE: BUILD ---
(

  add_priv_user mysql:mysql

  devoke_installwatch                                     &&

  set -x
  ./configure  --prefix=/usr                              \
               --without-bench                            \
               --without-debug                            \
               --enable-assembler                         \
               --localstatedir=/var/lib/mysql             \
               --infodir=/usr/share/info                  \
               --mandir=/usr/share/man                    \
               --enable-thread-safe-client                \
               --with-extra-charset=all                   \
               $OPTS                                      &&
  set +x &&             
  invoke_installwatch                                     &&
  make  pkglibdir=/usr/lib                                &&
  prepare_install                                         &&
  make  pkglibdir=/usr/lib  install                       &&
  rm    -rf  /usr/mysql-test                              &&
  if ! grep  -q  "\--without-server" $MODULE_CONFIG;  then
    mysql_install_db
    chown  -R  mysql.mysql  /var/lib/mysql
  fi

  if  [ -x /etc/init.d/mysql.server  ]; then
    rm -f /etc/init.d/mysql.server
    rm -f /etc/rc?.d/???mysql.server
  fi

) > $C_FIFO 2>&1

--- NEW FILE: CONFIGURE ---
if  !  grep  -q  CONFIGURED  $MODULE_CONFIG;  then

 if    query  "Install client only? " n; then
    OPTS="$OPTS --without-server"
  else
    if  query  "Enable InnoDB Support? " y; then
      OPTS="$OPTS --with-innodb"
    else
      OPTS="$OPTS --without-innodb"
    fi

    if  query  "Enable BDB Support? " n; then
      OPTS="$OPTS --with-berkeley-db"
    fi

    if  query  "Enable RAID Support? " n; then
      OPTS="$OPTS --with-raid"
    fi

    if  query  "Disable ISAM Support? " n; then
      OPTS="$OPTS --without-isam"
    fi
  fi

  echo  'CONFIGURED="y"'  >>  $MODULE_CONFIG
  echo  'OPTS='\"$OPTS\"    >>  $MODULE_CONFIG
fi

--- NEW FILE: CONFLICTS ---
conflicts mysql

--- NEW FILE: DEPENDS ---
depends  chkconfig &&
depends  perl

optional_depends "openssl" "--with-vio --with-openssl" "--with-mysqld-ldflags=-all-static" "for SSL support"

--- NEW FILE: DETAILS ---
          MODULE=mysql-beta
            BASE=mysql
         VERSION=4.0.8-gamma
#         VERSION=4.0.4-beta
          SOURCE=$BASE-$VERSION.tar.gz
      SOURCE_VFY=md5:18746d03162b3da8529e2c57919c29a5
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$BASE-$VERSION
   SOURCE_URL[0]=http://mysql.fastmirror.com/Downloads/MySQL-4.0/$SOURCE
        WEB_SITE=http://www.mysql.com
         ENTERED=20021003
         UPDATED=20021003
           FUZZY=off
           SHORT="MySQL is a widely used and fast SQL database server."
cat << EOF
MySQL is a widely used and fast SQL database server. It is a
client/server implementation that consists of a server daemon (mysqld)
and many different client programs/libraries.
EOF

--- NEW FILE: POST_INSTALL ---
TMPFS=`mount | grep "/tmp"`
echo $TMPFS | grep -q ^tmpfs && {
cat << END

if /tmp is tmpfs and if mysql is being used against big 
tables (> 2G) there is a big possibility of data/index 
corruption, especially on myisamchk.

Consider mounting /tmp on a regular file system

END
}
true




More information about the Lunar-commits mailing list