source: scripts/untested/blfs-scripts/blfs-mysql.sh @ 617118d

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 617118d was 617118d, checked in by Jim Gifford <clfs@…>, 18 years ago

r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure

  • Property mode set to 100755
File size: 1.4 KB
Line 
1#!/bin/bash
2
3### mysql ###
4
5cd ${SRC}
6LOG=mysql-blfs.log
7
8SELF=`basename ${0}`
9set_buildenv
10set_libdirname
11setup_multiarch
12if [ ! "${libdirname}" = "lib" ]; then
13   extra_conf="--libdir=/usr/${libdirname}"
14fi
15
16unpack_tarball mysql-${MYSQL_VER}
17cd ${PKGDIR}
18
19max_log_init mysql ${MYSQL_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
20CC="${CC-gcc} ${ARCH_CFLAGS}" \
21CXX="${CXX-g++} ${ARCH_CFLAGS}" \
22CFLAGS="${TGT_CFLAGS}" \
23CXXLAGS="${TGT_CFLAGS}" \
24CPPFLAGS="-D_GNU_SOURCE" \
25./configure --prefix=/usr ${extra_conf} \
26   --libexecdir=/usr/${libdirname}/mysql --localstatedir=/var/lib/mysql \
27   --enable-thread-safe-client --enable-assembler \
28   --enable-local-infile --with-named-thread-libs=-lpthread \
29   --with-unix-socket-path=/var/run/mysql/mysql.sock \
30   --without-debug --without-bench --without-readline \
31   --with-libwrap --with-openssl \
32   >> ${LOGFILE} 2>&1 &&
33echo " o Configure OK" &&
34
35min_log_init ${BUILDLOGS} &&
36make ${PMFLAGS} testdir=/usr/${libdirname}/mysql/mysql-test \
37   >> ${LOGFILE} 2>&1 &&
38echo " o Build OK" &&
39
40min_log_init ${INSTLOGS} &&
41make testdir=/usr/${libdirname}/mysql/mysql-test install \
42   >> ${LOGFILE} 2>&1 &&
43echo " o ALL OK" || barf
44
45if [ "Y" = "${MULTIARCH}" ]; then
46   use_wrapper /usr/bin/{mysql_config,mysql_fix_privilege_tables,mysql_install_db,mysqlbug}
47   create_stub_hdrs /usr/include/mysql/my_config.h
48fi
49
50cd /usr/${libdirname} &&
51ln -sf mysql/libmysqlclient{,_r}.so* .
Note: See TracBrowser for help on using the repository browser.