Page MenuHomeSolus

0001-Initial-Commit.patch

Authored By
flippedBit
Sep 15 2016, 6:18 AM
Size
20 KB
Referenced Files
None
Subscribers
None

0001-Initial-Commit.patch

From fca02cff58c48c9d40b0f3cf116ca52d44b964d5 Mon Sep 17 00:00:00 2001
From: Ryan Rushton <rrushton@gmail.com>
Date: Wed, 14 Sep 2016 23:10:21 -0700
Subject: [PATCH] Initial Commit
---
files/mariadb-systemd-start | 34 +++++++
files/mariadb.service | 17 ++++
files/mysql-tmpfile.conf | 1 +
files/mysql.conf | 1 +
package.yml | 76 ++++++++++++++++
pspec_x86_64.xml | 214 ++++++++++++++++++++++++++++++++++++++++++++
6 files changed, 343 insertions(+)
create mode 100644 files/mariadb-systemd-start
create mode 100644 files/mariadb.service
create mode 100644 files/mysql-tmpfile.conf
create mode 100644 files/mysql.conf
create mode 100644 package.yml
create mode 100644 pspec_x86_64.xml
diff --git a/files/mariadb-systemd-start b/files/mariadb-systemd-start
new file mode 100644
index 0000000..9a840eb
--- /dev/null
+++ b/files/mariadb-systemd-start
@@ -0,0 +1,34 @@
+#! /bin/bash
+#
+# Scripts to run by MySQL systemd service
+#
+# Needed argument: pre | post
+#
+# pre mode : try to run mysql_install_db
+# post mode : ping server until answer is received and create socket directory
+#
+
+before () {
+ /usr/bin/mysql_install_db --user=mysql --datadir=/var/lib64/mysql --basedir=/usr
+ /bin/mkdir -p /run/mysqld
+ /bin/chown mysql:mysql -R /run/mysqld
+}
+
+after () {
+ # Wait for ping to answer to signal startup completed,
+ # might take a while in case of e.g. crash recovery
+ # MySQL systemd service will timeout script if no answer
+ while /bin/true ; do
+ sleep 1
+ mysqladmin ping >/dev/null 2>&1 && break
+ done
+ exit 0
+}
+
+# main
+case $1 in
+ "pre") before ;;
+ "post") after ;;
+esac
+
+exit 0
diff --git a/files/mariadb.service b/files/mariadb.service
new file mode 100644
index 0000000..96176c5
--- /dev/null
+++ b/files/mariadb.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=MariaDB database server
+After=syslog.target
+
+[Service]
+User=mysql
+Group=mysql
+PermissionsStartOnly=true
+ExecStartPre=/usr/bin/mariadb-systemd-start pre
+ExecStart=/usr/bin/mysqld_safe --pid-file=/run/mysqld/mysqld.pid --datadir=/var/lib64/mysql
+ExecStartPost=/usr/bin/mariadb-systemd-start post
+TimeoutSec=600
+Restart=always
+PrivateTmp=true
+
+[Install]
+WantedBy=multi-user.target
diff --git a/files/mysql-tmpfile.conf b/files/mysql-tmpfile.conf
new file mode 100644
index 0000000..3318161
--- /dev/null
+++ b/files/mysql-tmpfile.conf
@@ -0,0 +1 @@
+d /var/lib64/mysql 0755 mysql mysql -
diff --git a/files/mysql.conf b/files/mysql.conf
new file mode 100644
index 0000000..5c0ce7f
--- /dev/null
+++ b/files/mysql.conf
@@ -0,0 +1 @@
+u mysql 130 - -
diff --git a/package.yml b/package.yml
new file mode 100644
index 0000000..a7ac98c
--- /dev/null
+++ b/package.yml
@@ -0,0 +1,76 @@
+name : mariadb
+version : 10.1.17
+release : 1
+source :
+ - https://downloads.mariadb.org/f/mariadb-10.1.17/source/mariadb-10.1.17.tar.gz : 4ca45ac5e34418761868115ebc8c068d511fed08e283b2cac52559d63ba4aab5
+license : GPL-2.0
+summary : MariaDB server is a community developed fork of MySQL server.
+component : database
+description: |
+ MariaDB is designed as a drop-in replacement of MySQL(R) with more features, new storage engines, fewer bugs, and better performance.
+builddeps :
+ - libaio-devel
+ - pkgconfig(jemalloc)
+setup : |
+ %cmake . \
+ -DBUILD_CONFIG=mysql_release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DMYSQL_DATADIR=/var/lib64/mysql \
+ -DSYSCONFDIR=/etc/mysql \
+ -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 \
+ -DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock \
+ -DDEFAULT_CHARSET=utf8 \
+ -DDEFAULT_COLLATION=utf8_general_ci \
+ -DWITH_SSL=system \
+ -DWITH_PCRE=system \
+ -DWITH_JEMALLOC=yes \
+ -DWITH_ARCHIVE_STORAGE_ENGINE=1 \
+ -DWITH_BLACKHOLE_STORAGE_ENGINE=1 \
+ -DWITH_INNOBASE_STORAGE_ENGINE=1 \
+ -DWITH_PARTITION_STORAGE_ENGINE=1 \
+ -DWITH_TOKUDB_STORAGE_ENGINE=1 \
+ -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 \
+ -DWITHOUT_FEDERATED_STORAGE_ENGINE=1 \
+ -DWITHOUT_PBXT_STORAGE_ENGINE=1
+
+patterns:
+ - libclient:
+ - /usr/lib/libmysqlclient.so.18
+ - /usr/lib/libmysqlclient.so.18.0.0
+ - /usr/lib/mysql/plugin/mysql_clear_password.so
+ - /usr/lib/mysql/plugin/dialog.so
+ - libclient-devel:
+ - /usr/include/mysql/*
+ - /usr/lib/libmysqlclient.a
+ - /usr/lib/libmysqlclient.so
+ - /usr/lib/libmysqlclient_r.a
+ - /usr/lib/libmysqlclient_r.so
+ - /usr/lib/libmysqlclient_r.so.18
+ - /usr/lib/libmysqlclient_r.so.18.0.0
+ - /usr/lib/libmysqlservices.a
+ - /usr/share/mysql/aclocal/mysql.m4
+ - /usr/share/man/man1/mysql_config.1
+ - /usr/bin/mysql_config
+build : |
+ %make
+install : |
+ %make_install
+
+ install -D -m 00644 $installdir/usr/share/mysql/my-medium.cnf $installdir/etc/mysql/my.cnf
+ install -D -m 00644 $pkgfiles/mysql.conf $installdir/%libdir%/sysusers.d/mysql.conf
+ install -D -m 00644 $pkgfiles/mariadb.service $installdir/%libdir%/systemd/system/mysqld.service
+ install -D -m 00644 $pkgfiles/mysql-tmpfile.conf $installdir/%libdir%/tmpfiles.d/mysql.conf
+ install -D -m 00755 $pkgfiles/mariadb-systemd-start $installdir/usr/bin/mariadb-systemd-start
+
+ mkdir /run/mysqld
+
+ rm -r $installdir/usr/{data,mysql-test,sql-bench}
\ No newline at end of file
diff --git a/pspec_x86_64.xml b/pspec_x86_64.xml
new file mode 100644
index 0000000..25e707e
--- /dev/null
+++ b/pspec_x86_64.xml
@@ -0,0 +1,214 @@
+<PISI>
+ <Source>
+ <Name>mariadb</Name>
+ <Packager>
+ <Name>Ryan Rushton</Name>
+ <Email>rrushton@gmail.com</Email>
+ </Packager>
+ <License>GPL-2.0</License>
+ <PartOf>database</PartOf>
+ <Summary xml:lang="en">MariaDB server is a community developed fork of MySQL server.</Summary>
+ <Description xml:lang="en">MariaDB is designed as a drop-in replacement of MySQL(R) with more features, new storage engines, fewer bugs, and better performance.
+</Description>
+ <Archive type="binary" sha1sum="79eb0752a961b8e0d15c77d298c97498fbc89c5a">https://solus-project.com/sources/README.Solus</Archive>
+ </Source>
+ <Package>
+ <Name>mariadb</Name>
+ <Summary xml:lang="en">MariaDB server is a community developed fork of MySQL server.</Summary>
+ <Description xml:lang="en">MariaDB is designed as a drop-in replacement of MySQL(R) with more features, new storage engines, fewer bugs, and better performance.
+</Description>
+ <PartOf>database</PartOf>
+ <Files>
+ <Path fileType="config">/etc/mysql/my.cnf</Path>
+ <Path fileType="executable">/usr/bin</Path>
+ <Path fileType="library">/usr/lib/lib*.so.*</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/adt_null.so</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/auth_0x0100.so</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/auth_pam.so</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/auth_socket.so</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/auth_test_plugin.so</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/daemon_example.ini</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/debug_key_management.so</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/dialog_examples.so</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/example_key_management.so</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/file_key_management.so</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/ha_connect.so</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/ha_federatedx.so</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/ha_innodb.so</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/ha_mroonga.so</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/ha_sphinx.so</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/ha_spider.so</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/ha_test_sql_discovery.so</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/ha_tokudb.so</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/handlersocket.so</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/libdaemon_example.so</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/locales.so</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/metadata_lock_info.so</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/mypluglib.so</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/qa_auth_client.so</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/qa_auth_interface.so</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/qa_auth_server.so</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/query_cache_info.so</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/query_response_time.so</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/semisync_master.so</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/semisync_slave.so</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/server_audit.so</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/simple_password_check.so</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/sql_errlog.so</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/wsrep_info.so</Path>
+ <Path fileType="library">/usr/lib64/systemd/system/mysqld.service</Path>
+ <Path fileType="library">/usr/lib64/sysusers.d/mysql.conf</Path>
+ <Path fileType="library">/usr/lib64/tmpfiles.d/mysql.conf</Path>
+ <Path fileType="man">/usr/share/man</Path>
+ <Path fileType="data">/usr/share/mysql/COPYING</Path>
+ <Path fileType="data">/usr/share/mysql/COPYING.LESSER</Path>
+ <Path fileType="data">/usr/share/mysql/COPYING.thirdparty</Path>
+ <Path fileType="data">/usr/share/mysql/CREDITS</Path>
+ <Path fileType="data">/usr/share/mysql/EXCEPTIONS-CLIENT</Path>
+ <Path fileType="data">/usr/share/mysql/INSTALL-BINARY</Path>
+ <Path fileType="data">/usr/share/mysql/README</Path>
+ <Path fileType="data">/usr/share/mysql/README-wsrep</Path>
+ <Path fileType="data">/usr/share/mysql/binary-configure</Path>
+ <Path fileType="data">/usr/share/mysql/charsets/Index.xml</Path>
+ <Path fileType="data">/usr/share/mysql/charsets/README</Path>
+ <Path fileType="data">/usr/share/mysql/charsets/armscii8.xml</Path>
+ <Path fileType="data">/usr/share/mysql/charsets/ascii.xml</Path>
+ <Path fileType="data">/usr/share/mysql/charsets/cp1250.xml</Path>
+ <Path fileType="data">/usr/share/mysql/charsets/cp1251.xml</Path>
+ <Path fileType="data">/usr/share/mysql/charsets/cp1256.xml</Path>
+ <Path fileType="data">/usr/share/mysql/charsets/cp1257.xml</Path>
+ <Path fileType="data">/usr/share/mysql/charsets/cp850.xml</Path>
+ <Path fileType="data">/usr/share/mysql/charsets/cp852.xml</Path>
+ <Path fileType="data">/usr/share/mysql/charsets/cp866.xml</Path>
+ <Path fileType="data">/usr/share/mysql/charsets/dec8.xml</Path>
+ <Path fileType="data">/usr/share/mysql/charsets/geostd8.xml</Path>
+ <Path fileType="data">/usr/share/mysql/charsets/greek.xml</Path>
+ <Path fileType="data">/usr/share/mysql/charsets/hebrew.xml</Path>
+ <Path fileType="data">/usr/share/mysql/charsets/hp8.xml</Path>
+ <Path fileType="data">/usr/share/mysql/charsets/keybcs2.xml</Path>
+ <Path fileType="data">/usr/share/mysql/charsets/koi8r.xml</Path>
+ <Path fileType="data">/usr/share/mysql/charsets/koi8u.xml</Path>
+ <Path fileType="data">/usr/share/mysql/charsets/latin1.xml</Path>
+ <Path fileType="data">/usr/share/mysql/charsets/latin2.xml</Path>
+ <Path fileType="data">/usr/share/mysql/charsets/latin5.xml</Path>
+ <Path fileType="data">/usr/share/mysql/charsets/latin7.xml</Path>
+ <Path fileType="data">/usr/share/mysql/charsets/macce.xml</Path>
+ <Path fileType="data">/usr/share/mysql/charsets/macroman.xml</Path>
+ <Path fileType="data">/usr/share/mysql/charsets/swe7.xml</Path>
+ <Path fileType="data">/usr/share/mysql/czech/errmsg.sys</Path>
+ <Path fileType="data">/usr/share/mysql/danish/errmsg.sys</Path>
+ <Path fileType="data">/usr/share/mysql/docs/COPYING.AGPLv3</Path>
+ <Path fileType="data">/usr/share/mysql/docs/COPYING.GPLv2</Path>
+ <Path fileType="data">/usr/share/mysql/docs/PATENTS</Path>
+ <Path fileType="data">/usr/share/mysql/docs/README.md</Path>
+ <Path fileType="data">/usr/share/mysql/dutch/errmsg.sys</Path>
+ <Path fileType="data">/usr/share/mysql/english/errmsg.sys</Path>
+ <Path fileType="data">/usr/share/mysql/errmsg-utf8.txt</Path>
+ <Path fileType="data">/usr/share/mysql/estonian/errmsg.sys</Path>
+ <Path fileType="data">/usr/share/mysql/fill_help_tables.sql</Path>
+ <Path fileType="data">/usr/share/mysql/french/errmsg.sys</Path>
+ <Path fileType="data">/usr/share/mysql/german/errmsg.sys</Path>
+ <Path fileType="data">/usr/share/mysql/greek/errmsg.sys</Path>
+ <Path fileType="data">/usr/share/mysql/hungarian/errmsg.sys</Path>
+ <Path fileType="data">/usr/share/mysql/install_spider.sql</Path>
+ <Path fileType="data">/usr/share/mysql/italian/errmsg.sys</Path>
+ <Path fileType="data">/usr/share/mysql/japanese/errmsg.sys</Path>
+ <Path fileType="data">/usr/share/mysql/korean/errmsg.sys</Path>
+ <Path fileType="data">/usr/share/mysql/magic</Path>
+ <Path fileType="data">/usr/share/mysql/maria_add_gis_sp.sql</Path>
+ <Path fileType="data">/usr/share/mysql/maria_add_gis_sp_bootstrap.sql</Path>
+ <Path fileType="data">/usr/share/mysql/mroonga/install.sql</Path>
+ <Path fileType="data">/usr/share/mysql/mroonga/uninstall.sql</Path>
+ <Path fileType="data">/usr/share/mysql/my-huge.cnf</Path>
+ <Path fileType="data">/usr/share/mysql/my-innodb-heavy-4G.cnf</Path>
+ <Path fileType="data">/usr/share/mysql/my-large.cnf</Path>
+ <Path fileType="data">/usr/share/mysql/my-medium.cnf</Path>
+ <Path fileType="data">/usr/share/mysql/my-small.cnf</Path>
+ <Path fileType="data">/usr/share/mysql/mysql-log-rotate</Path>
+ <Path fileType="data">/usr/share/mysql/mysql.server</Path>
+ <Path fileType="data">/usr/share/mysql/mysql_performance_tables.sql</Path>
+ <Path fileType="data">/usr/share/mysql/mysql_system_tables.sql</Path>
+ <Path fileType="data">/usr/share/mysql/mysql_system_tables_data.sql</Path>
+ <Path fileType="data">/usr/share/mysql/mysql_test_data_timezone.sql</Path>
+ <Path fileType="data">/usr/share/mysql/mysql_to_mariadb.sql</Path>
+ <Path fileType="data">/usr/share/mysql/mysqld_multi.server</Path>
+ <Path fileType="data">/usr/share/mysql/norwegian-ny/errmsg.sys</Path>
+ <Path fileType="data">/usr/share/mysql/norwegian/errmsg.sys</Path>
+ <Path fileType="data">/usr/share/mysql/pkgconfig/mariadb.pc</Path>
+ <Path fileType="data">/usr/share/mysql/policy/apparmor/README</Path>
+ <Path fileType="data">/usr/share/mysql/policy/apparmor/usr.sbin.mysqld</Path>
+ <Path fileType="data">/usr/share/mysql/policy/apparmor/usr.sbin.mysqld.local</Path>
+ <Path fileType="data">/usr/share/mysql/policy/selinux/README</Path>
+ <Path fileType="data">/usr/share/mysql/policy/selinux/mariadb-server.fc</Path>
+ <Path fileType="data">/usr/share/mysql/policy/selinux/mariadb-server.te</Path>
+ <Path fileType="data">/usr/share/mysql/polish/errmsg.sys</Path>
+ <Path fileType="data">/usr/share/mysql/portuguese/errmsg.sys</Path>
+ <Path fileType="data">/usr/share/mysql/romanian/errmsg.sys</Path>
+ <Path fileType="data">/usr/share/mysql/russian/errmsg.sys</Path>
+ <Path fileType="data">/usr/share/mysql/serbian/errmsg.sys</Path>
+ <Path fileType="data">/usr/share/mysql/slovak/errmsg.sys</Path>
+ <Path fileType="data">/usr/share/mysql/spanish/errmsg.sys</Path>
+ <Path fileType="data">/usr/share/mysql/swedish/errmsg.sys</Path>
+ <Path fileType="data">/usr/share/mysql/systemd/mariadb.service</Path>
+ <Path fileType="data">/usr/share/mysql/systemd/mariadb@.service</Path>
+ <Path fileType="data">/usr/share/mysql/systemd/use_galera_new_cluster.conf</Path>
+ <Path fileType="data">/usr/share/mysql/ukrainian/errmsg.sys</Path>
+ <Path fileType="data">/usr/share/mysql/wsrep.cnf</Path>
+ <Path fileType="data">/usr/share/mysql/wsrep_notify</Path>
+ </Files>
+ </Package>
+ <Package>
+ <Name>mariadb-devel</Name>
+ <Summary xml:lang="en">Development files for mariadb</Summary>
+ <Description xml:lang="en">MariaDB is designed as a drop-in replacement of MySQL(R) with more features, new storage engines, fewer bugs, and better performance.
+</Description>
+ <PartOf>programming.devel</PartOf>
+ <RuntimeDependencies>
+ <Dependency release="1">mariadb</Dependency>
+ </RuntimeDependencies>
+ <Files>
+ <Path fileType="library">/usr/lib/lib*.a</Path>
+ <Path fileType="library">/usr/lib/lib*.so</Path>
+ </Files>
+ </Package>
+ <Package>
+ <Name>mariadb-libclient</Name>
+ <Summary xml:lang="en">MariaDB server is a community developed fork of MySQL server.</Summary>
+ <Description xml:lang="en">MariaDB is designed as a drop-in replacement of MySQL(R) with more features, new storage engines, fewer bugs, and better performance.
+</Description>
+ <Files>
+ <Path fileType="library">/usr/lib/libmysqlclient.so.18</Path>
+ <Path fileType="library">/usr/lib/libmysqlclient.so.18.0.0</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/dialog.so</Path>
+ <Path fileType="library">/usr/lib/mysql/plugin/mysql_clear_password.so</Path>
+ </Files>
+ </Package>
+ <Package>
+ <Name>mariadb-libclient-devel</Name>
+ <Summary xml:lang="en">MariaDB server is a community developed fork of MySQL server.</Summary>
+ <Description xml:lang="en">MariaDB is designed as a drop-in replacement of MySQL(R) with more features, new storage engines, fewer bugs, and better performance.
+</Description>
+ <Files>
+ <Path fileType="executable">/usr/bin/mysql_config</Path>
+ <Path fileType="header">/usr/include/mysql/*</Path>
+ <Path fileType="library">/usr/lib/libmysqlclient.a</Path>
+ <Path fileType="library">/usr/lib/libmysqlclient.so</Path>
+ <Path fileType="library">/usr/lib/libmysqlclient_r.a</Path>
+ <Path fileType="library">/usr/lib/libmysqlclient_r.so</Path>
+ <Path fileType="library">/usr/lib/libmysqlclient_r.so.18</Path>
+ <Path fileType="library">/usr/lib/libmysqlclient_r.so.18.0.0</Path>
+ <Path fileType="library">/usr/lib/libmysqlservices.a</Path>
+ <Path fileType="man">/usr/share/man/man1/mysql_config.1</Path>
+ <Path fileType="data">/usr/share/mysql/aclocal/mysql.m4</Path>
+ </Files>
+ </Package>
+ <History>
+ <Update release="1">
+ <Date>2016-09-15</Date>
+ <Version>10.1.17</Version>
+ <Comment>Packaging update</Comment>
+ <Name>Ryan Rushton</Name>
+ <Email>rrushton@gmail.com</Email>
+ </Update>
+ </History>
+</PISI>
\ No newline at end of file
--
2.10.0

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2008
Default Alt Text
0001-Initial-Commit.patch (20 KB)

Event Timeline