author | Christian Hesse
<eworm@archlinux.org> 2017-01-05 13:33:11 UTC |
committer | Christian Hesse
<eworm@archlinux.org> 2017-01-05 13:33:11 UTC |
parent | 1f1964749f7985b005c8537d72e646091c4423d3 |
PKGBUILD | +8 | -2 |
diff --git a/PKGBUILD b/PKGBUILD index c614df0..7099274 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -5,7 +5,7 @@ pkgbase=mariadb pkgname=('libmariadbclient' 'mariadb-clients' 'mytop' 'mariadb') pkgver=10.1.20 _pkgver=${pkgver/.a/a} -pkgrel=2 +pkgrel=3 arch=('i686' 'x86_64') license=('GPL') url='http://mariadb.org/' @@ -38,7 +38,6 @@ build() { -DCMAKE_RANLIB=/usr/bin/gcc-ranlib \ -DBUILD_CONFIG=mysql_release \ -DCMAKE_INSTALL_PREFIX=/usr \ - -DSYSCONFDIR=/etc/mysql \ -DMYSQL_DATADIR=/var/lib/mysql \ -DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock \ -DDEFAULT_CHARSET=utf8 \ @@ -49,6 +48,8 @@ build() { -DINSTALL_MANDIR=share/man \ -DINSTALL_PLUGINDIR=lib/mysql/plugin \ -DINSTALL_SCRIPTDIR=bin \ + -DINSTALL_SYSCONFDIR=/etc/mysql \ + -DINSTALL_SYSCONF2DIR=/etc/mysql \ -DINSTALL_INCLUDEDIR=include/mysql \ -DINSTALL_SUPPORTFILESDIR=share/mysql \ -DINSTALL_MYSQLSHAREDIR=share/mysql \ @@ -144,7 +145,12 @@ package_mariadb() { cd "$pkgdir" + # We specified INSTALL_SYSCONFDIR and INSTALL_SYSCONF2DIR to have proper paths + # in binaries and support file. But we want our own files... + # TOOD: Change to upstream file layout with version 10.2.x? + rm -r etc/ install -Dm0644 usr/share/mysql/my-medium.cnf etc/mysql/my.cnf + install -Dm0644 "${srcdir}"/mariadb-tmpfile.conf usr/lib/tmpfiles.d/mariadb.conf install -Dm0644 "${srcdir}"/mariadb-sysusers.conf usr/lib/sysusers.d/mariadb.conf ln -s mariadb.service usr/lib/systemd/system/mysqld.service