source: scripts/untested/blfs-scripts/blfs-mysql-32.sh@ 23b6afb

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 23b6afb was 23b6afb, checked in by Jim Gifford <clfs@…>, 19 years ago

r564@server (orig r562): jim | 2005-06-07 20:12:28 -0700
Mirrored from jg555.com on Tue Jun 7 20:12:17 PDT 2005
----------------------------------------------------------------------


  • Property mode set to 100644
File size: 2.8 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* .
52#!/bin/bash
53
54### mysql ###
55
56cd ${SRC}
57LOG=mysql-blfs.log
58
59SELF=`basename ${0}`
60set_buildenv
61set_libdirname
62setup_multiarch
63if [ ! "${libdirname}" = "lib" ]; then
64 extra_conf="--libdir=/usr/${libdirname}"
65fi
66
67unpack_tarball mysql-${MYSQL_VER}
68cd ${PKGDIR}
69
70max_log_init mysql ${MYSQL_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
71CC="${CC-gcc} ${ARCH_CFLAGS}" \
72CXX="${CXX-g++} ${ARCH_CFLAGS}" \
73CFLAGS="${TGT_CFLAGS}" \
74CXXLAGS="${TGT_CFLAGS}" \
75CPPFLAGS="-D_GNU_SOURCE" \
76./configure --prefix=/usr ${extra_conf} \
77 --libexecdir=/usr/${libdirname}/mysql --localstatedir=/var/lib/mysql \
78 --enable-thread-safe-client --enable-assembler \
79 --enable-local-infile --with-named-thread-libs=-lpthread \
80 --with-unix-socket-path=/var/run/mysql/mysql.sock \
81 --without-debug --without-bench --without-readline \
82 --with-libwrap --with-openssl \
83 >> ${LOGFILE} 2>&1 &&
84echo " o Configure OK" &&
85
86min_log_init ${BUILDLOGS} &&
87make ${PMFLAGS} testdir=/usr/${libdirname}/mysql/mysql-test \
88 >> ${LOGFILE} 2>&1 &&
89echo " o Build OK" &&
90
91min_log_init ${INSTLOGS} &&
92make testdir=/usr/${libdirname}/mysql/mysql-test install \
93 >> ${LOGFILE} 2>&1 &&
94echo " o ALL OK" || barf
95
96if [ "Y" = "${MULTIARCH}" ]; then
97 use_wrapper /usr/bin/{mysql_config,mysql_fix_privilege_tables,mysql_install_db,mysqlbug}
98 create_stub_hdrs /usr/include/mysql/my_config.h
99fi
100
101cd /usr/${libdirname} &&
102ln -sf mysql/libmysqlclient{,_r}.so* .
Note: See TracBrowser for help on using the repository browser.