Update of /cvsroot/devil-linux/build/scripts
In directory sc8-pr-cvs1:/tmp/cvs-serv15031/scripts
Modified Files:
mysql
Log Message:
added mysql server
Index: mysql
===================================================================
RCS file: /cvsroot/devil-linux/build/scripts/mysql,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- mysql 13 Oct 2003 17:36:08 -0000 1.11
+++ mysql 22 Dec 2003 21:28:42 -0000 1.12
@@ -29,11 +29,16 @@
case $1 in
build )
if [ "$CONFIG_MYSQL_CLIENT" = "y" ]; then
- ./configure --prefix=/usr --without-server --without-bench --without-docs --without-debug --enable-thread-safe-client --libdir=/usr/lib || exit 1
- make $PMAKE all || exit 1
- strip_debug
+ FLAGS=""
+ if [ ! "$CONFIG_MYSQL_SERVER" = "y" ]; then
+ FLAGS="--without-server"
+ fi
+ ./configure --prefix=/usr --without-bench --without-docs --without-debug --enable-thread-safe-client --libdir=/usr/lib \
+ --with-openssl --with-mysqlfs --sysconfdir=/etc --libexecdir=/usr/sbin || exit 1
+ make $PMAKE all || exit 1
+ strip_debug
# install it, so other program can make use of it
- make install pkglibdir=/usr/lib
+ make install pkglibdir=/usr/lib
fi
;;
@@ -52,6 +57,14 @@
mkdir -p $CDDIR
copy_files $WORKDIR/tmp/usr $CDDIR || exit 1
rm -rf $WORKDIR/tmp || exit 1
+
+ if [ "$CONFIG_MYSQL_SERVER" = "y" ]; then
+ echo "# Start MySQL Server?" >> $CONFIGFILE
+ echo "START_MYSQL=no" >> $CONFIGFILE
+ echo >> $CONFIGFILE
+ echo "HELP_MYSQL=\"MySQL is a OpenSource DB Server\"" >> $SOFTWAREHELP
+ cp $MYDIR/scripts/mysqld $ETCDIR/etc/init.d || exit 1
+ fi
fi
;;
|