dev-db/mysql-cluster: Add LibreSSL support
authorBrian Evans <grknight@gentoo.org>
Tue, 20 Oct 2015 14:42:07 +0000 (10:42 -0400)
committerBrian Evans <grknight@gentoo.org>
Tue, 20 Oct 2015 14:52:30 +0000 (10:52 -0400)
Package-Manager: portage-2.2.23

dev-db/mysql-cluster/metadata.xml
dev-db/mysql-cluster/mysql-cluster-7.3.8.ebuild
dev-db/mysql-cluster/mysql-cluster-7.3.9-r1.ebuild

index 0fd723f94d87ccb430414e8247ced784437aa141..3e4bee60e5271e2a0b7034f778b81d7bb2a04a58 100644 (file)
@@ -2,6 +2,10 @@
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
 <herd>mysql</herd>
+  <maintainer restrict="dev-db/mysql[libressl]">
+    <email>hasufell@gentoo.org</email>
+    <description>Libressl issues. Only assign if it's a direct Libressl issue. Do not directly assign for anything else.</description>
+  </maintainer>
 <use>
   <flag name='cluster'>Add support for NDB clustering</flag>
   <flag name='community'>Enables the community features from upstream.</flag>
   <flag name='extraengine'>Add support for alternative storage engines (Archive, CSV, Blackhole, Federated(X), Partition)</flag>
   <flag name="jemalloc">Use <pkg>dev-libs/jemalloc</pkg> for allocations.</flag>
   <flag name='latin1'>Use LATIN1 encoding instead of UTF8</flag>
+  <flag name='libressl'>Enable SSL connections and crypto functions using <pkg>dev-libs/libressl</pkg></flag>
+  <flag name='openssl'>Enable SSL connections and crypto functions using <pkg>dev-libs/openssl</pkg></flag>
   <flag name='max-idx-128'>Raise the max index per table limit from 64 to 128</flag>
   <flag name='minimal'>Install client programs only, no server</flag>
   <flag name='profiling'>Add support for statement profiling (requires USE=community).</flag>
   <flag name="systemtap">Build support for profiling and tracing using <pkg>dev-util/systemtap</pkg></flag>
   <flag name='test'>Install upstream testsuites for end use.</flag>
+  <flag name='yassl'>Enable SSL connections and crypto functions using the bundled yaSSL</flag>
 </use>
 </pkgmetadata>
index 4a10e32edc31cea9aa5d85513d1b7452d47dbdab..1dcd3582e59d58946f377889a74cf606d34d6d98 100644 (file)
@@ -23,6 +23,14 @@ RDEPEND="!media-sound/amarok[embedded]"
 # If you want to add a single patch, copy the ebuild to an overlay
 # and create your own mysql-extras tarball, looking at 000_index.txt
 
+src_prepare() {
+       mysql-multilib_src_prepare
+       if use libressl ; then
+               sed -i 's/OPENSSL_MAJOR_VERSION STREQUAL "1"/OPENSSL_MAJOR_VERSION STREQUAL "2"/' \
+                       "${S}/cmake/ssl.cmake" || die
+       fi
+}
+
 # Official test instructions:
 # USE='cluster extraengine perl ssl community' \
 # FEATURES='test userpriv -usersandbox' \
index 20b5fee46b98711241273bf9d9170eeaaab639a9..c6e01f67ffd69e631601bca9cf89161079bae2a0 100644 (file)
@@ -24,6 +24,14 @@ RDEPEND="!media-sound/amarok[embedded]"
 # If you want to add a single patch, copy the ebuild to an overlay
 # and create your own mysql-extras tarball, looking at 000_index.txt
 
+src_prepare() {
+       mysql-multilib_src_prepare
+       if use libressl ; then
+               sed -i 's/OPENSSL_MAJOR_VERSION STREQUAL "1"/OPENSSL_MAJOR_VERSION STREQUAL "2"/' \
+                       "${S}/cmake/ssl.cmake" || die
+       fi
+}
+
 # Official test instructions:
 # USE='cluster extraengine perl ssl community' \
 # FEATURES='test userpriv -usersandbox' \