mariadb: update to 10.0.14; added runit service.

This commit is contained in:
Juan RP 2014-10-27 17:01:32 +01:00
parent 26077e53cc
commit cc4b5da06a
3 changed files with 18 additions and 10 deletions

View File

@ -0,0 +1,2 @@
#!/bin/sh
exec logger -p daemon.notice

View File

@ -0,0 +1,4 @@
#!/bin/sh
[ ! -d /run/mysqld ] && mkdir -p /run/mysqld
chown mysql:mysql /run/mysqld
exec chpst -u mysql:mysql mysqld --user=mysql 2>&1

View File

@ -1,7 +1,7 @@
# Template file for 'mariadb' # Template file for 'mariadb'
pkgname=mariadb pkgname=mariadb
version=10.0.12 version=10.0.14
revision=2 revision=1
build_style=cmake build_style=cmake
configure_args="-DSYSCONFDIR=/etc/mysql -DMYSQL_DATADIR=/var/lib/mysql configure_args="-DSYSCONFDIR=/etc/mysql -DMYSQL_DATADIR=/var/lib/mysql
-DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock -DDEFAULT_CHARSET=utf8 -DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock -DDEFAULT_CHARSET=utf8
@ -26,15 +26,15 @@ depends="mariadb-client"
provides="mysql-${version}_${revision}" provides="mysql-${version}_${revision}"
replaces="mysql>=0" replaces="mysql>=0"
conf_files="/etc/mysql/my.cnf" conf_files="/etc/mysql/my.cnf"
systemd_services="mysqld.service on" build_options="systemd"
system_accounts="mysql" system_accounts="mysql"
mysqld_homedir="/var/lib/mysql" mysql_homedir="/var/lib/mysql"
short_desc="Fast SQL database server, drop-in replacement for MySQL" short_desc="Fast SQL database server, drop-in replacement for MySQL"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://mariadb.org/" homepage="http://mariadb.org/"
license="GPL-2" license="GPL-2"
distfiles="https://downloads.$pkgname.org/f/$pkgname-$version/source/$pkgname-$version.tar.gz" distfiles="https://downloads.$pkgname.org/f/$pkgname-$version/source/$pkgname-$version.tar.gz"
checksum=612bc7360997173d536b79d744e8418d3910924775cbb0614d0843d609be162d checksum=ac0eca4ebb278aa304236bf6dbd5e8c9cf285431333f1379051c231c08e2e31d
pre_configure() { pre_configure() {
# We need some host binaries before starting cross compilation. # We need some host binaries before starting cross compilation.
@ -69,10 +69,14 @@ post_install() {
# Configuration file. # Configuration file.
install -Dm644 ${DESTDIR}/usr/share/mysql/my-medium.cnf ${DESTDIR}/etc/mysql/my.cnf install -Dm644 ${DESTDIR}/usr/share/mysql/my-medium.cnf ${DESTDIR}/etc/mysql/my.cnf
vsv mysqld
# systemd service. # systemd service.
vinstall ${FILESDIR}/mysqld.service 644 usr/lib/systemd/system if [ "$build_option_systemd" ]; then
vinstall ${FILESDIR}/mysqld-post 755 usr/bin vinstall ${FILESDIR}/mysqld.service 644 usr/lib/systemd/system
vinstall ${FILESDIR}/mysqld.tmpfiles 644 usr/lib/tmpfiles.d mysqld.conf vinstall ${FILESDIR}/mysqld-post 755 usr/bin
vinstall ${FILESDIR}/mysqld.tmpfiles 644 usr/lib/tmpfiles.d mysqld.conf
fi
} }
libmariadbclient_package() { libmariadbclient_package() {
@ -84,7 +88,6 @@ libmariadbclient_package() {
vmove "usr/lib/libmysqlclient*.so.*" vmove "usr/lib/libmysqlclient*.so.*"
} }
} }
libmariadbclient-devel_package() { libmariadbclient-devel_package() {
depends="libmariadbclient>=${version}_${revision}" depends="libmariadbclient>=${version}_${revision}"
provides="libmysqlclient-devel-${version}_${revision}" provides="libmysqlclient-devel-${version}_${revision}"
@ -98,7 +101,6 @@ libmariadbclient-devel_package() {
vmove "usr/lib/*.so" vmove "usr/lib/*.so"
} }
} }
mariadb-client_package() { mariadb-client_package() {
depends="perl" depends="perl"
provides="mysql-client-${version}_${revision}" provides="mysql-client-${version}_${revision}"