Changeset 0ee931e for scripts/untested/blfs-scripts/blfs-mysql-32.sh
- Timestamp:
- Feb 21, 2006, 8:16:10 AM (19 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- 99e4712
- Parents:
- 12ba0a4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/untested/blfs-scripts/blfs-mysql-32.sh
-
Property mode
changed from
100644
to120000
r12ba0a4 r0ee931e 1 #!/bin/bash 2 3 ### mysql ### 4 5 cd ${SRC} 6 LOG=mysql-blfs.log 7 8 SELF=`basename ${0}` 9 set_buildenv 10 set_libdirname 11 setup_multiarch 12 if [ ! "${libdirname}" = "lib" ]; then 13 extra_conf="--libdir=/usr/${libdirname}" 14 fi 15 16 unpack_tarball mysql-${MYSQL_VER} 17 cd ${PKGDIR} 18 19 max_log_init mysql ${MYSQL_VER} "blfs (shared)" ${CONFLOGS} ${LOG} 20 CC="${CC-gcc} ${ARCH_CFLAGS}" \ 21 CXX="${CXX-g++} ${ARCH_CFLAGS}" \ 22 CFLAGS="${TGT_CFLAGS}" \ 23 CXXLAGS="${TGT_CFLAGS}" \ 24 CPPFLAGS="-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 && 33 echo " o Configure OK" && 34 35 min_log_init ${BUILDLOGS} && 36 make ${PMFLAGS} testdir=/usr/${libdirname}/mysql/mysql-test \ 37 >> ${LOGFILE} 2>&1 && 38 echo " o Build OK" && 39 40 min_log_init ${INSTLOGS} && 41 make testdir=/usr/${libdirname}/mysql/mysql-test install \ 42 >> ${LOGFILE} 2>&1 && 43 echo " o ALL OK" || barf 44 45 if [ "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 48 fi 49 50 cd /usr/${libdirname} && 51 ln -sf mysql/libmysqlclient{,_r}.so* . 52 #!/bin/bash 53 54 ### mysql ### 55 56 cd ${SRC} 57 LOG=mysql-blfs.log 58 59 SELF=`basename ${0}` 60 set_buildenv 61 set_libdirname 62 setup_multiarch 63 if [ ! "${libdirname}" = "lib" ]; then 64 extra_conf="--libdir=/usr/${libdirname}" 65 fi 66 67 unpack_tarball mysql-${MYSQL_VER} 68 cd ${PKGDIR} 69 70 max_log_init mysql ${MYSQL_VER} "blfs (shared)" ${CONFLOGS} ${LOG} 71 CC="${CC-gcc} ${ARCH_CFLAGS}" \ 72 CXX="${CXX-g++} ${ARCH_CFLAGS}" \ 73 CFLAGS="${TGT_CFLAGS}" \ 74 CXXLAGS="${TGT_CFLAGS}" \ 75 CPPFLAGS="-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 && 84 echo " o Configure OK" && 85 86 min_log_init ${BUILDLOGS} && 87 make ${PMFLAGS} testdir=/usr/${libdirname}/mysql/mysql-test \ 88 >> ${LOGFILE} 2>&1 && 89 echo " o Build OK" && 90 91 min_log_init ${INSTLOGS} && 92 make testdir=/usr/${libdirname}/mysql/mysql-test install \ 93 >> ${LOGFILE} 2>&1 && 94 echo " o ALL OK" || barf 95 96 if [ "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 99 fi 100 101 cd /usr/${libdirname} && 102 ln -sf mysql/libmysqlclient{,_r}.so* . 1 blfs-mysql.sh -
Property mode
changed from
Note:
See TracChangeset
for help on using the changeset viewer.