SHARE
TWEET

mydumper build with mysql v5.6.26

a guest Aug 31st, 2015 21 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
  2.  
  3. pkgname=mydumper
  4. pkgver=0.6.2
  5. _myver=5.6.26
  6. pkgrel=3
  7. pkgdesc="A high performance MySQL backup tool."
  8. arch=("i686" "x86_64")
  9. url="https://launchpad.net/mydumper"
  10. license=('GPL')
  11. depends=("glib2" "pcre" "libmysqlclient")
  12. makedepends=("cmake" "python2-sphinx")
  13.  
  14. source=("http://launchpad.net/mydumper/${pkgver%.*}/$pkgver/+download/$pkgname-$pkgver.tar.gz"
  15.         "https://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-${_myver}.tar.gz"
  16.         "mysql-cmake.patch"
  17.         "mysql-compat.patch")
  18.  
  19. prepare() {
  20.         cd "$srcdir/$pkgname-$pkgver"
  21.         patch -p1 -i "$srcdir/mysql-cmake.patch"
  22.         patch -p1 -i "$srcdir/mysql-compat.patch"
  23.         sed -r 's/sphinx-build$/sphinx-build2/' -i cmake/modules/FindSphinx.cmake
  24. }
  25.  
  26. build() {
  27.         cd "${srcdir}"
  28.         rm -rf build-mysql
  29.         mkdir build-mysql
  30.         cd build-mysql
  31.  
  32.         cmake "$srcdir/mysql-$_myver" \
  33.                 -DCMAKE_BUILD_TYPE=Release \
  34.                 -DCMAKE_INSTALL_PREFIX=/usr \
  35.                 -DSYSCONFDIR=/etc/mysql \
  36.                 -DMYSQL_DATADIR=/var/lib/mysql \
  37.                 -DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock \
  38.                 -DDEFAULT_CHARSET=utf8 \
  39.                 -DDEFAULT_COLLATION=utf8_general_ci \
  40.                 -DENABLED_LOCAL_INFILE=ON \
  41.                 -DINSTALL_INFODIR=share/mysql/docs \
  42.                 -DINSTALL_MANDIR=share/man \
  43.                 -DINSTALL_PLUGINDIR=lib/mysql/plugin \
  44.                 -DINSTALL_SCRIPTDIR=bin \
  45.                 -DINSTALL_INCLUDEDIR=include/mysql \
  46.                 -DINSTALL_DOCREADMEDIR=share/mysql \
  47.                 -DINSTALL_SUPPORTFILESDIR=share/mysql \
  48.                 -DINSTALL_MYSQLSHAREDIR=share/mysql \
  49.                 -DINSTALL_DOCDIR=share/mysql/docs \
  50.                 -DINSTALL_SHAREDIR=share/mysql \
  51.                 -DWITH_READLINE=ON \
  52.                 -DWITH_ZLIB=system \
  53.                 -DWITH_SSL=system \
  54.                 -DWITH_LIBWRAP=OFF \
  55.                 -DWITH_LIBEDIT=OFF \
  56.                 -DWITH_UNIT_TESTS=OFF \
  57.                 -DWITH_EXTRA_CHARSETS=complex \
  58.                 -DWITH_EMBEDDED_SERVER=ON \
  59.                 -DWITH_INNODB_MEMCACHED=ON \
  60.                 -DWITH_INNOBASE_STORAGE_ENGINE=ON \
  61.                 -DWITH_PARTITION_STORAGE_ENGINE=ON \
  62.                 -DWITH_PERFSCHEMA_STORAGE_ENGINE=ON \
  63.                 -DWITH_ARCHIVE_STORAGE_ENGINE=ON \
  64.                 -DWITH_BLACKHOLE_STORAGE_ENGINE=ON \
  65.                 -DWITH_FEDERATED_STORAGE_ENGINE=OFF \
  66.                 -DWITH_EXAMPLE_STORAGE_ENGINE=OFF \
  67.                 -DCMAKE_C_FLAGS="-fPIC $CFLAGS -fno-strict-aliasing -DBIG_JOINS=1 -fomit-frame-pointer" \
  68.                 -DCMAKE_CXX_FLAGS="-fPIC $CXXFLAGS -fno-strict-aliasing -DBIG_JOINS=1 -felide-constructors -fno-rtti" \
  69.                 -DWITH_MYSQLD_LDFLAGS="$LDFLAGS"
  70.         make
  71.  
  72.         cd "${srcdir}"
  73.         rm -rf build-mydumper
  74.         mkdir build-mydumper
  75.         cd build-mydumper
  76.  
  77.         cmake "$srcdir/$pkgname-$pkgver" \
  78.                 -DCMAKE_INSTALL_PREFIX=/usr \
  79.                 -DCMAKE_BUILD_TYPE=Release \
  80.                 -DMYSQL_INCLUDE_DIR="$srcdir/mysql-$_myver/include" \
  81.                 -DEXTRA_INCLUDE_DIR="/usr/include/mysql" \
  82.                 -DEXTRA_CFLAGS="-L../build-mysql/libmysql" \
  83.                 -DMYSQL_CFLAGS="-lm"
  84.         make VERBOSE=1
  85. }
  86.  
  87. package() {
  88.         cd "$srcdir/build-mydumper"
  89.         make DESTDIR="$pkgdir" install
  90. }
  91.  
  92. sha256sums=('fa28563e8967752828954c5d81e26ef50aad9083d50a977bf5733833b23e3330'
  93.             'b44c6ce5f95172c56c73edfa8b710b39242ec7af0ab182c040208c41866e5070'
  94.             'e6b7d938cc5882cad564103f6e367c1babaccb624587c96e9e6c349e58e7ede4'
  95.             '9b35858057d82948579f43d8b95605a88d80580412bf5ed1daf992c092ca4edf')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top