mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
removed community/percona-server
This commit is contained in:
parent
2352932139
commit
3cc66e7754
8 changed files with 0 additions and 4120 deletions
|
@ -1,117 +0,0 @@
|
|||
# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - added alarm.patch
|
||||
|
||||
pkgname=percona-server
|
||||
pkgver=5.6.13_rel61.0
|
||||
pkgrel=1
|
||||
pkgdesc="A backwards-compatible drop-in replacement for MySQL that provides improved performance, diagnostics and instrumentation"
|
||||
arch=('i686' 'x86_64')
|
||||
|
||||
depends=('mariadb-clients' 'libaio' 'systemd-tools')
|
||||
conflicts=('mysql')
|
||||
provides=("mysql=${pkgver/_rel*}" "mariadb=${pkgver/_rel*}")
|
||||
optdepends=('perl-dbi' 'perl-dbd-mysql')
|
||||
makedepends=('cmake' 'openssl' 'zlib')
|
||||
|
||||
license=('GPL')
|
||||
url="http://www.percona.com/software/percona-server/"
|
||||
options=('!libtool' 'emptydirs')
|
||||
backup=('etc/mysql/my.cnf')
|
||||
install=percona.install
|
||||
source=("http://www.percona.com/downloads/Percona-Server-${pkgver%.*_*}/Percona-Server-${pkgver/_/-}/source/Percona-Server-${pkgver/_/-}.tar.gz"
|
||||
'mysqld-post.sh'
|
||||
'mysqld.service'
|
||||
'mysqld-tmpfile.conf'
|
||||
'mysql56-bufsize.patch'
|
||||
'mysql56-bison3.patch'
|
||||
'alarm.patch')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}/Percona-Server-${pkgver/_/-}"
|
||||
patch -p0 -i "$srcdir/mysql56-bufsize.patch"
|
||||
patch -p1 -i "$srcdir/mysql56-bison3.patch"
|
||||
patch -p1 -i "${srcdir}/alarm.patch"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}"
|
||||
rm -rf build
|
||||
mkdir build
|
||||
cd build
|
||||
|
||||
cmake "${srcdir}/Percona-Server-${pkgver/_/-}" \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DSYSCONFDIR=/etc/mysql \
|
||||
-DMYSQL_DATADIR=/var/lib/mysql \
|
||||
-DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock \
|
||||
-DDEFAULT_CHARSET=utf8 \
|
||||
-DDEFAULT_COLLATION=utf8_general_ci \
|
||||
-DENABLED_LOCAL_INFILE=ON \
|
||||
-DINSTALL_INFODIR=share/mysql/docs \
|
||||
-DINSTALL_MANDIR=share/man \
|
||||
-DINSTALL_PLUGINDIR=lib/mysql/plugin \
|
||||
-DINSTALL_SCRIPTDIR=bin \
|
||||
-DINSTALL_INCLUDEDIR=include/mysql \
|
||||
-DINSTALL_DOCREADMEDIR=share/mysql \
|
||||
-DINSTALL_SUPPORTFILESDIR=share/mysql \
|
||||
-DINSTALL_MYSQLSHAREDIR=share/mysql \
|
||||
-DINSTALL_DOCDIR=share/mysql/docs \
|
||||
-DINSTALL_SHAREDIR=share/mysql \
|
||||
-DWITH_READLINE=ON \
|
||||
-DWITH_ZLIB=system \
|
||||
-DWITH_SSL=system \
|
||||
-DWITH_LIBWRAP=OFF \
|
||||
-DWITH_LIBEDIT=OFF \
|
||||
-DWITH_UNIT_TESTS=OFF \
|
||||
-DWITH_MYSQLD_LDFLAGS="${LDFLAGS}" \
|
||||
-DWITH_EXTRA_CHARSETS=complex \
|
||||
-DWITH_EMBEDDED_SERVER=ON \
|
||||
-DWITH_INNOBASE_STORAGE_ENGINE=ON \
|
||||
-DWITH_PARTITION_STORAGE_ENGINE=ON \
|
||||
-DWITH_PERFSCHEMA_STORAGE_ENGINE=ON \
|
||||
-DWITH_ARCHIVE_STORAGE_ENGINE=ON \
|
||||
-DWITH_BLACKHOLE_STORAGE_ENGINE=ON \
|
||||
-DWITH_FEDERATED_STORAGE_ENGINE=OFF \
|
||||
-DWITH_EXAMPLE_STORAGE_ENGINE=OFF \
|
||||
-DCMAKE_C_FLAGS="-fPIC ${CFLAGS} -fno-strict-aliasing -DBIG_JOINS=1 -fomit-frame-pointer" \
|
||||
-DCMAKE_CXX_FLAGS="-fPIC ${CXXFLAGS} -fno-strict-aliasing -DBIG_JOINS=1 -felide-constructors -fno-rtti"
|
||||
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}"/build
|
||||
make DESTDIR=${pkgdir} install
|
||||
|
||||
install -Dm644 "${pkgdir}"/usr/share/mysql/my-default.cnf "${pkgdir}"/etc/mysql/my.cnf
|
||||
install -Dm755 "${srcdir}"/mysqld-post.sh "${pkgdir}"/usr/bin/mysqld-post
|
||||
install -Dm644 "${srcdir}"/mysqld-tmpfile.conf "${pkgdir}"/usr/lib/tmpfiles.d/mysqld.conf
|
||||
install -Dm644 "${srcdir}"/mysqld.service "${pkgdir}"/usr/lib/systemd/system/mysqld.service
|
||||
|
||||
# provided by libmysqlclient
|
||||
rm ${pkgdir}/usr/bin/mysql_config
|
||||
rm ${pkgdir}/usr/lib/libmysql*
|
||||
rm -r ${pkgdir}/usr/include/
|
||||
rm ${pkgdir}/usr/share/man/man1/{mysql_config,mysql_client_test_embedded,mysqltest_embedded}.1
|
||||
|
||||
# provided by mysql-clients
|
||||
rm ${pkgdir}/usr/bin/{mysql,mysqladmin,mysqlcheck,mysqldump,mysqlimport,mysqlshow,mysqlslap}
|
||||
rm ${pkgdir}/usr/share/man/man1/{mysql,mysqladmin,mysqlcheck,mysqldump,mysqlimport,mysqlshow,mysqlslap}.1
|
||||
|
||||
# not needed
|
||||
rm -r ${pkgdir}/usr/{data,mysql-test,sql-bench}
|
||||
rm "${pkgdir}"/usr/share/man/man1/mysql-test-run.pl.1
|
||||
|
||||
install -dm700 "${pkgdir}"/var/lib/mysql
|
||||
}
|
||||
|
||||
sha256sums=('6fa6c240f08c3aedacbefe31559128d239c7f18089c5bba64136698bd64910c8'
|
||||
'82a241d9fa4032187a26597d044e94ba810b209b53a7ce14bb6eb92555993a48'
|
||||
'9bc66470f3f80534c0bb62f9f8325ccf60b164f421f74ad74a963f065d7b1869'
|
||||
'badf6a701d9dc6ea3b4ddca26cb0f42b6236432ccdbc14c64962147802594a60'
|
||||
'1039e232a7778544b00eb215c93bb06c588c95c2fd49cfb162dc50eb4dfbf729'
|
||||
'89aab4eafa97cd0e40b61871a472fd90b4372e69c7af0d86145e5a7de9c8d4ee'
|
||||
'e33db2d543bd8cba732c1387adc3d67017aaec27a9c5618695063acd374777a0')
|
|
@ -1,28 +0,0 @@
|
|||
diff -urN a/sql-common/client_plugin.c b/sql-common/client_plugin.c
|
||||
--- a/sql-common/client_plugin.c 2011-03-31 07:36:18.000000000 -0600
|
||||
+++ b/sql-common/client_plugin.c 2011-04-07 11:59:48.000000000 -0600
|
||||
@@ -242,9 +242,9 @@
|
||||
initialized= 1;
|
||||
|
||||
pthread_mutex_lock(&LOCK_load_client_plugin);
|
||||
-
|
||||
+ va_list a = {0};
|
||||
for (builtin= mysql_client_builtins; *builtin; builtin++)
|
||||
- add_plugin(&mysql, *builtin, 0, 0, 0);
|
||||
+ add_plugin(&mysql, *builtin, 0, 0, a);
|
||||
|
||||
pthread_mutex_unlock(&LOCK_load_client_plugin);
|
||||
|
||||
@@ -301,8 +301,10 @@
|
||||
plugin->name, "it is already loaded");
|
||||
plugin= NULL;
|
||||
}
|
||||
- else
|
||||
- plugin= add_plugin(mysql, plugin, 0, 0, 0);
|
||||
+ else {
|
||||
+ va_list a = {0};
|
||||
+ plugin= add_plugin(mysql, plugin, 0, 0, a);
|
||||
+ }
|
||||
|
||||
pthread_mutex_unlock(&LOCK_load_client_plugin);
|
||||
return plugin;
|
File diff suppressed because it is too large
Load diff
|
@ -1,20 +0,0 @@
|
|||
--- storage/innobase/row/row0log.cc.orig 2013-10-14 09:44:46.060172260 +0200
|
||||
+++ storage/innobase/row/row0log.cc 2013-10-14 10:05:51.822170509 +0200
|
||||
@@ -2364,7 +2364,7 @@
|
||||
and be ignored when the operation is unsupported. */
|
||||
fallocate(index->online_log->fd,
|
||||
FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE,
|
||||
- ofs, srv_buf_size);
|
||||
+ ofs, srv_sort_buf_size);
|
||||
#endif /* FALLOC_FL_PUNCH_HOLE */
|
||||
|
||||
next_mrec = index->online_log->head.block;
|
||||
@@ -3153,7 +3153,7 @@
|
||||
and be ignored when the operation is unsupported. */
|
||||
fallocate(index->online_log->fd,
|
||||
FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE,
|
||||
- ofs, srv_buf_size);
|
||||
+ ofs, srv_sort_buf_size);
|
||||
#endif /* FALLOC_FL_PUNCH_HOLE */
|
||||
|
||||
next_mrec = index->online_log->head.block;
|
|
@ -1,8 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
while true; do
|
||||
response=$(/usr/bin/mysqladmin -uUNKNOWN_USER ping 2>&1) && break
|
||||
echo "$response" | grep -q "mysqld is alive" && break
|
||||
echo "$response" | grep -q "Access denied for user" && break
|
||||
sleep 1
|
||||
done
|
|
@ -1 +0,0 @@
|
|||
d /run/mysqld 0755 mysql mysql -
|
|
@ -1,16 +0,0 @@
|
|||
[Unit]
|
||||
Description=MySQL database server
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
User=mysql
|
||||
Group=mysql
|
||||
|
||||
ExecStart=/usr/bin/mysqld --pid-file=/run/mysqld/mysqld.pid
|
||||
ExecStartPost=/usr/bin/mysqld-post
|
||||
|
||||
Restart=always
|
||||
PrivateTmp=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -1,37 +0,0 @@
|
|||
if [[ $(command -v my_print_defaults >/dev/null 2>&1) ]]; then
|
||||
datadir=$(my_print_defaults mysqld | sed -n "s/^--datadir=//p")
|
||||
fi
|
||||
[[ -z $datadir ]] && datadir=/var/lib/mysql
|
||||
|
||||
post_install(){
|
||||
groupadd -g 89 mysql &>/dev/null
|
||||
useradd -u 89 -g mysql -d $datadir -s /bin/false mysql &>/dev/null
|
||||
|
||||
if [[ ! -e $datadir ]]; then
|
||||
install -dm700 $datadir
|
||||
usr/bin/mysql_install_db --user=mysql --basedir=/usr --datadir=$datadir
|
||||
chown -R mysql:mysql $datadir &>/dev/null
|
||||
fi
|
||||
|
||||
usr/bin/systemd-tmpfiles --create mysqld.conf
|
||||
}
|
||||
|
||||
post_upgrade(){
|
||||
getent group mysql >/dev/null 2>&1 || groupadd -g 89 mysql &>/dev/null
|
||||
getent passwd mysql >/dev/null 2>&1 || useradd -u 89 -g mysql -d $datadir -s /bin/false mysql &>/dev/null
|
||||
|
||||
if [ "$(vercmp $2 5.6)" -lt 0 ]; then
|
||||
echo " >> "
|
||||
echo " >> Major version update. Consider restart the service, and then running mysql_upgrade after it."
|
||||
echo " >> "
|
||||
fi
|
||||
}
|
||||
|
||||
post_remove(){
|
||||
if getent passwd mysql >/dev/null 2>&1; then
|
||||
userdel mysql
|
||||
fi
|
||||
if getent group mysql >/dev/null 2>&1; then
|
||||
groupdel mysql
|
||||
fi
|
||||
}
|
Loading…
Reference in a new issue