extra/mariadb to 10.0.18-1

This commit is contained in:
Kevin Mihelich 2015-05-08 12:45:16 +00:00
parent c4fafb7e0c
commit 9592ea8bee
2 changed files with 10 additions and 20 deletions

View file

@ -6,18 +6,19 @@
pkgbase=mariadb pkgbase=mariadb
pkgname=('libmariadbclient' 'mariadb-clients' 'mytop' 'mariadb') pkgname=('libmariadbclient' 'mariadb-clients' 'mytop' 'mariadb')
pkgver=10.0.17 pkgver=10.0.18
_pkgver=${pkgver/.a/a} _pkgver=${pkgver/.a/a}
pkgrel=2 pkgrel=1
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
license=('GPL') license=('GPL')
url='http://mariadb.org/' url='http://mariadb.org/'
makedepends=('cmake' 'openssl' 'zlib' 'libaio' 'libxml2' 'openssl' 'pcre' 'jemalloc') makedepends=('cmake' 'openssl' 'zlib' 'libaio' 'libxml2' 'openssl' 'pcre'
'jemalloc' 'lz4')
source=(https://downloads.mariadb.org/interstitial/mariadb-$pkgver/source/mariadb-$pkgver.tar.gz source=(https://downloads.mariadb.org/interstitial/mariadb-$pkgver/source/mariadb-$pkgver.tar.gz
mariadb.service mariadb.service
mariadb-post.sh mariadb-post.sh
mariadb-tmpfile.conf) mariadb-tmpfile.conf)
md5sums=('3101d1e79c1b04699cde10780f959625' md5sums=('eab4f9303883d33558c0059af9e30aa4'
'd488fffa9f62f9949c4aa1bb6e6db692' 'd488fffa9f62f9949c4aa1bb6e6db692'
'b79e65a5aa536e6b5bc60988eb0b78a2' 'b79e65a5aa536e6b5bc60988eb0b78a2'
'2fa6e456964d4ff5e6d4f9ff0126aed6') '2fa6e456964d4ff5e6d4f9ff0126aed6')
@ -130,7 +131,8 @@ package_mariadb() {
pkgdesc='Fast SQL database server, drop-in replacement for MySQL' pkgdesc='Fast SQL database server, drop-in replacement for MySQL'
backup=('etc/mysql/my.cnf') backup=('etc/mysql/my.cnf')
install=mariadb.install install=mariadb.install
depends=('mariadb-clients' 'inetutils' 'libaio' 'libxml2' 'pcre' 'jemalloc') depends=('mariadb-clients' 'inetutils' 'libaio' 'libxml2' 'pcre' 'jemalloc'
'lz4')
optdepends=('perl-dbd-mysql: for mysqlhotcopy, mysql_convert_table_format and mysql_setpermission') optdepends=('perl-dbd-mysql: for mysqlhotcopy, mysql_convert_table_format and mysql_setpermission')
conflicts=('mysql') conflicts=('mysql')
provides=("mysql=$pkgver") provides=("mysql=$pkgver")
@ -144,6 +146,9 @@ package_mariadb() {
install -Dm644 ../mariadb.service "$pkgdir"/usr/lib/systemd/system/mysqld.service install -Dm644 ../mariadb.service "$pkgdir"/usr/lib/systemd/system/mysqld.service
install -Dm644 ../mariadb-tmpfile.conf "$pkgdir"/usr/lib/tmpfiles.d/mysql.conf install -Dm644 ../mariadb-tmpfile.conf "$pkgdir"/usr/lib/tmpfiles.d/mysql.conf
install -dm700 var/lib/mysql
chown -R 89:89 var/lib/mysql &>/dev/null
# provided by libmariadbclient # provided by libmariadbclient
cd "$pkgdir" cd "$pkgdir"
rm usr/bin/{mysql_config,mysql_client_test_embedded,mysqltest_embedded} rm usr/bin/{mysql_config,mysql_client_test_embedded,mysqltest_embedded}

View file

@ -2,11 +2,6 @@ post_install(){
groupadd -g 89 mysql &>/dev/null groupadd -g 89 mysql &>/dev/null
useradd -u 89 -g mysql -d /var/lib/mysql -s /bin/false mysql &>/dev/null useradd -u 89 -g mysql -d /var/lib/mysql -s /bin/false mysql &>/dev/null
if [[ ! -e var/lib/mysql ]]; then
install -dm700 var/lib/mysql
chown -R mysql:mysql var/lib/mysql &>/dev/null
fi
echo ":: You need to initialize the MariaDB data directory prior to starting" echo ":: You need to initialize the MariaDB data directory prior to starting"
echo " the service. This can be done with mysql_install_db command, e.g.:" echo " the service. This can be done with mysql_install_db command, e.g.:"
echo " mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql" echo " mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql"
@ -36,13 +31,3 @@ post_upgrade(){
echo " running mysql_upgrade afterwards." echo " running mysql_upgrade afterwards."
fi 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
}