mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
community/percona-server to 5.5.24_rel26.0-3
This commit is contained in:
parent
3c37c2ff80
commit
84c7e7e980
4 changed files with 39 additions and 1 deletions
|
@ -7,7 +7,7 @@ plugrel=1
|
|||
|
||||
pkgname=percona-server
|
||||
pkgver=5.5.24_rel26.0
|
||||
pkgrel=1
|
||||
pkgrel=3
|
||||
pkgdesc="A backwards-compatible drop-in replacement for MySQL that provides improved performance, diagnostics and instrumentation, and manageability of the server"
|
||||
arch=('i686' 'x86_64')
|
||||
|
||||
|
@ -25,6 +25,9 @@ install=percona.install
|
|||
source=("http://www.percona.com/downloads/Percona-Server-${pkgver%.*_*}/Percona-Server-${pkgver/_rel/-}/source/Percona-Server-${pkgver/_/-}.tar.gz"
|
||||
'mysqld'
|
||||
'my.cnf'
|
||||
'mysqld-post'
|
||||
'mysqld.service'
|
||||
'tmpfiles.conf'
|
||||
'alarm.patch')
|
||||
|
||||
build() {
|
||||
|
@ -103,9 +106,16 @@ package() {
|
|||
rm "${pkgdir}"/usr/share/man/man1/mysql-test-run.pl.1
|
||||
|
||||
install -dm700 "${pkgdir}"/var/lib/mysql
|
||||
|
||||
install -Dm644 "$srcdir/tmpfiles.conf" "$pkgdir/usr/lib/tmpfiles.d/mysqld.conf"
|
||||
install -Dm644 "$srcdir/mysqld.service" "$pkgdir/usr/lib/systemd/system/mysqld.service"
|
||||
install -Dm755 "$srcdir/mysqld-post" "$pkgdir/usr/bin/mysqld-post"
|
||||
}
|
||||
|
||||
md5sums=('76f835e98ad3c71fcaa33794ee187630'
|
||||
'243864805611764a7e5883c1dba7afd8'
|
||||
'1c949c0dbea5206af0db14942d9927b6'
|
||||
'5143dadeaac15f1ff88ea16716588554'
|
||||
'e2e21a54c1aa1d6ab83a3dd0629aac52'
|
||||
'7af72b49f943bd52defce8bc4e804e64'
|
||||
'9eb0ad531d162e031a2bcc08a5ab3bc5')
|
||||
|
|
6
community/percona-server/mysqld-post
Normal file
6
community/percona-server/mysqld-post
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
while true; do
|
||||
response=`/usr/bin/mysqladmin -uUNKNOWN_USER ping 2>&1` && break
|
||||
echo "$response" | grep -q "mysqld is alive" && break
|
||||
sleep 1
|
||||
done
|
21
community/percona-server/mysqld.service
Normal file
21
community/percona-server/mysqld.service
Normal file
|
@ -0,0 +1,21 @@
|
|||
[Unit]
|
||||
Description=MySQL database server
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
User=mysql
|
||||
Group=mysql
|
||||
|
||||
ExecStart=/usr/bin/mysqld --pid-file=/var/run/mysqld/mysqld.pid
|
||||
ExecStop=/bin/kill -15 $MAINPID
|
||||
PIDFile=/var/run/mysqld/mysqld.pid
|
||||
WorkingDirectory=/usr
|
||||
|
||||
# We rely on systemd, not mysqld_safe, to restart mysqld if it dies
|
||||
Restart=always
|
||||
|
||||
# Place temp files in a secure directory, not /tmp
|
||||
PrivateTmp=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
1
community/percona-server/tmpfiles.conf
Normal file
1
community/percona-server/tmpfiles.conf
Normal file
|
@ -0,0 +1 @@
|
|||
d /var/run/mysqld 0755 mysql mysql -
|
Loading…
Reference in a new issue