diff options
Diffstat (limited to 'data/mariadb')
-rw-r--r-- | data/mariadb/.beer | 46 | ||||
-rw-r--r-- | data/mariadb/01.diff | 12 | ||||
-rw-r--r-- | data/mariadb/_metadata/description | 1 | ||||
-rw-r--r-- | data/mariadb/_metadata/homepage | 1 | ||||
-rw-r--r-- | data/mariadb/_metadata/in.1443.00 | 0 | ||||
l--------- | data/mariadb/_metadata/libssl1.0.dep | 1 | ||||
l--------- | data/mariadb/_metadata/maintainer | 1 | ||||
-rw-r--r-- | data/mariadb/_metadata/name | 1 | ||||
l--------- | data/mariadb/_metadata/ncurses.dep | 1 | ||||
-rw-r--r-- | data/mariadb/_metadata/priority | 1 | ||||
l--------- | data/mariadb/_metadata/readline.dep | 1 | ||||
-rw-r--r-- | data/mariadb/_metadata/role | 1 | ||||
-rw-r--r-- | data/mariadb/_metadata/section | 1 | ||||
-rw-r--r-- | data/mariadb/_metadata/tags | 1 | ||||
-rw-r--r-- | data/mariadb/_metadata/version | 1 | ||||
-rwxr-xr-x | data/mariadb/download.sh | 1 | ||||
-rw-r--r-- | data/mariadb/make.sh | 58 | ||||
-rw-r--r-- | data/mariadb/mariadb-10.3.14.tar.gz | bin | 0 -> 70771337 bytes |
18 files changed, 129 insertions, 0 deletions
diff --git a/data/mariadb/.beer b/data/mariadb/.beer new file mode 100644 index 000000000..4524866cf --- /dev/null +++ b/data/mariadb/.beer @@ -0,0 +1,46 @@ +{ + "name": "Mariadb", + "description": "Drop-in replacement for MySQL", + "url": "https://downloads.mariadb.org/f/mariadb-10.3.14/source/mariadb-10.3.14.tar.gz", + "mirror": null, + "homepage": "https://mariadb.org/", + "depends": [ + { + "depend": "cmake", + "build-depend": true + }, + { + "depend": "openssl", + "build-depend": false + } + ], + "resource": [], + "conflicts": [ + { + "conflict": "mysql", + "reason": null + }, + { + "conflict": "mysql-connector-c", + "reason": null + }, + { + "conflict": "mytop", + "reason": "both install `mytop` binaries" + }, + { + "conflict": "mariadb-connector-c", + "reason": null + } + ], + "patches": [], + "install": [ + "(var/\"mysql\").mkpath", + "unless File.exist? \"#{var}/mysql/mysql/user.frm\"", + "ENV[\"TMPDIR\"] = nil", + "system \"#{bin}/mysql_install_db\", \"--verbose\", \"--user=#{ENV[\"USER\"]}\",", + "\"--basedir=#{prefix}\", \"--datadir=#{var}/mysql\", \"--tmpdir=/tmp\"" + ], + "version": "10.3.14", + "file": "mariadb.rb" +}
\ No newline at end of file diff --git a/data/mariadb/01.diff b/data/mariadb/01.diff new file mode 100644 index 000000000..65edc19b5 --- /dev/null +++ b/data/mariadb/01.diff @@ -0,0 +1,12 @@ +diff -ur mariadb-10.3.14/include/my_global.h mariadb-10.3.14+iPhone/include/my_global.h +--- mariadb-10.3.14/include/my_global.h 2019-04-01 14:03:56.000000000 +0000 ++++ mariadb-10.3.14+iPhone/include/my_global.h 2019-05-10 20:07:35.881061675 +0000 +@@ -164,7 +164,7 @@ + # if defined(__i386__) || defined(__ppc__) + # define SIZEOF_CHARP 4 + # define SIZEOF_LONG 4 +-# elif defined(__x86_64__) || defined(__ppc64__) ++# elif defined(__x86_64__) || defined(__ppc64__) || defined(__aarch64__) + # define SIZEOF_CHARP 8 + # define SIZEOF_LONG 8 + # else diff --git a/data/mariadb/_metadata/description b/data/mariadb/_metadata/description new file mode 100644 index 000000000..c26f6a854 --- /dev/null +++ b/data/mariadb/_metadata/description @@ -0,0 +1 @@ +Drop-in replacement for MySQL (just software) diff --git a/data/mariadb/_metadata/homepage b/data/mariadb/_metadata/homepage new file mode 100644 index 000000000..1e559aa2a --- /dev/null +++ b/data/mariadb/_metadata/homepage @@ -0,0 +1 @@ +https://mariadb.org/ diff --git a/data/mariadb/_metadata/in.1443.00 b/data/mariadb/_metadata/in.1443.00 new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/data/mariadb/_metadata/in.1443.00 diff --git a/data/mariadb/_metadata/libssl1.0.dep b/data/mariadb/_metadata/libssl1.0.dep new file mode 120000 index 000000000..a501d00a8 --- /dev/null +++ b/data/mariadb/_metadata/libssl1.0.dep @@ -0,0 +1 @@ +../../libssl1.0
\ No newline at end of file diff --git a/data/mariadb/_metadata/maintainer b/data/mariadb/_metadata/maintainer new file mode 120000 index 000000000..0c538aadb --- /dev/null +++ b/data/mariadb/_metadata/maintainer @@ -0,0 +1 @@ +../../../people/mac
\ No newline at end of file diff --git a/data/mariadb/_metadata/name b/data/mariadb/_metadata/name new file mode 100644 index 000000000..41f1214c1 --- /dev/null +++ b/data/mariadb/_metadata/name @@ -0,0 +1 @@ +Mariadb diff --git a/data/mariadb/_metadata/ncurses.dep b/data/mariadb/_metadata/ncurses.dep new file mode 120000 index 000000000..a395fad08 --- /dev/null +++ b/data/mariadb/_metadata/ncurses.dep @@ -0,0 +1 @@ +../../ncurses
\ No newline at end of file diff --git a/data/mariadb/_metadata/priority b/data/mariadb/_metadata/priority new file mode 100644 index 000000000..134d9bc32 --- /dev/null +++ b/data/mariadb/_metadata/priority @@ -0,0 +1 @@ +optional diff --git a/data/mariadb/_metadata/readline.dep b/data/mariadb/_metadata/readline.dep new file mode 120000 index 000000000..f35c9185b --- /dev/null +++ b/data/mariadb/_metadata/readline.dep @@ -0,0 +1 @@ +../../readline
\ No newline at end of file diff --git a/data/mariadb/_metadata/role b/data/mariadb/_metadata/role new file mode 100644 index 000000000..52b4d7301 --- /dev/null +++ b/data/mariadb/_metadata/role @@ -0,0 +1 @@ +hacker diff --git a/data/mariadb/_metadata/section b/data/mariadb/_metadata/section new file mode 100644 index 000000000..49053f584 --- /dev/null +++ b/data/mariadb/_metadata/section @@ -0,0 +1 @@ +Data_Storage diff --git a/data/mariadb/_metadata/tags b/data/mariadb/_metadata/tags new file mode 100644 index 000000000..f59eb954f --- /dev/null +++ b/data/mariadb/_metadata/tags @@ -0,0 +1 @@ +purpose::consolw diff --git a/data/mariadb/_metadata/version b/data/mariadb/_metadata/version new file mode 100644 index 000000000..773f60c18 --- /dev/null +++ b/data/mariadb/_metadata/version @@ -0,0 +1 @@ +10.3.14 diff --git a/data/mariadb/download.sh b/data/mariadb/download.sh new file mode 100755 index 000000000..93beab041 --- /dev/null +++ b/data/mariadb/download.sh @@ -0,0 +1 @@ +wget https://downloads.mariadb.org/f/mariadb-10.3.14/source/mariadb-10.3.14.tar.gz
\ No newline at end of file diff --git a/data/mariadb/make.sh b/data/mariadb/make.sh new file mode 100644 index 000000000..d0b002358 --- /dev/null +++ b/data/mariadb/make.sh @@ -0,0 +1,58 @@ +pkg:setup +# Host +# https://mariadb.com/kb/en/library/cross-compiling-mariadb/ +mkdir host && cd host +cmake .. +make import_executables +cd .. + +# Target +mkdir target && cd target +cat >iphoneos_toolchain.cmake <<EOF +set(CMAKE_BUILD_TYPE Release) +set(CMAKE_SYSTEM_NAME Darwin) # Tell CMake we're cross-compiling +set(CMAKE_CROSSCOMPILING true) +#include(CMakeForceCompiler) +# Prefix detection only works with compiler id "GNU" +# CMake will look for prefixed g++, cpp, ld, etc. automatically +set(CMAKE_SYSTEM_PROCESSOR aarch64) +set(triple ${PKG_TARG}) +set(CMAKE_FIND_ROOT_PATH $(echo ${PKG_PATH} | sed -e s/:/' '/g)) +set(CMAKE_LIBRARY_PATH $(echo ${LIBRARY_PATH} | sed -e s/:/' '/g)) +set(CMAKE_INCLUDE_PATH $(echo ${INCLUDE_PATH} | sed -e s/:/' '/g)) +set(CMAKE_C_COMPILER ${PKG_TARG}-gcc) +set(CMAKE_CXX_COMPILER ${PKG_TARG}-g++) +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_C_FLAGS_RELEASE "-O2 -DNDEBUG ") +set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG ") +EOF + +cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="${PKG_TAPF}" -DCMAKE_TOOLCHAIN_FILE=iphoneos_toolchain.cmake -DSTACK_DIRECTION=-1 -DHAVE_IB_GCC_ATOMIC_BUILTINS=0 -DIMPORT_EXECUTABLES=../host/import_executables.cmake -DCURSES_LIBRARY="ncurses" -DICONV_LIBRARIES="${PKG_ROOT}/usr/lib/libiconv.tbd" -DCMAKE_CXX_FLAGS="-Wno-error=c++11-narrowing" \ + -DINSTALL_PLUGINDIR=lib/mysql/plugin -DINSTALL_SCRIPTDIR=bin -DINSTALL_SYSCONFDIR=/etc/mysql -DINSTALL_SYSCONF2DIR=/etc/mysql/my.cnf.d -DINSTALL_INCLUDEDIR=include/mysql -DINSTALL_SUPPORTFILESDIR=share/mysql -DINSTALL_MYSQLSHAREDIR=share/mysql -DINSTALL_SHAREDIR=share/mysql \ + -DWITH_SSL=system -DWITH_ZLIB=system -DWITH_PCRE=bundled -DWITH_EMBEDDED_SERVER=ON -DDEFAULT_CHARSET=utf8mb4 -DDEFAULT_COLLATION=utf8mb4_general_ci -DWITH_EXTRA_CHARSETS=complex -DWITH_EMBEDDED_SERVER=ON -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 +pkg:make +pkg:install + +for file in \ + COPYING \ + COPYING.thirdparty \ + CREDITS \ + EXCEPTIONS-CLIENT \ + INSTALL-BINARY \ + README.md \ + README-wsrep +do + pkg: rm -f "${PKG_TAPF}"/"${file}" || : +done + +# XXX: Should this be a seperate package? +pkg: rm -rf "${PKG_TAPF}"/mysql-test +pkg: rm -rf "${PKG_TAPF}"/include +pkg: rm -rf "${PKG_TAPF}"/sql-bench +pkg: rm -rf "${PKG_TAPF}"/data + +pkg: rm -rf "${PKG_TAPF}"/man || : +pkg: rm "${PKG_TAPF}"/lib/*.a || : + diff --git a/data/mariadb/mariadb-10.3.14.tar.gz b/data/mariadb/mariadb-10.3.14.tar.gz Binary files differnew file mode 100644 index 000000000..8b04dfe9f --- /dev/null +++ b/data/mariadb/mariadb-10.3.14.tar.gz |