diff options
Diffstat (limited to 'dev-db/mysql-udf-ipv6')
-rw-r--r-- | dev-db/mysql-udf-ipv6/Manifest | 4 | ||||
-rw-r--r-- | dev-db/mysql-udf-ipv6/files/mysql-udf-ipv6-warnings.patch | 28 | ||||
-rw-r--r-- | dev-db/mysql-udf-ipv6/metadata.xml | 8 | ||||
-rw-r--r-- | dev-db/mysql-udf-ipv6/mysql-udf-ipv6-0.4.ebuild | 68 |
4 files changed, 108 insertions, 0 deletions
diff --git a/dev-db/mysql-udf-ipv6/Manifest b/dev-db/mysql-udf-ipv6/Manifest new file mode 100644 index 000000000000..9f455084f5aa --- /dev/null +++ b/dev-db/mysql-udf-ipv6/Manifest @@ -0,0 +1,4 @@ +AUX mysql-udf-ipv6-warnings.patch 767 BLAKE2B 789e9ec57aa89d57385a38c73c363b51e05bde55fa844c6576bf1bfd9d6ed64137dc8a162d83fc8af6c4884e6da93653e0314f3dd11a18b0c2c0fcd0da4bf42d SHA512 6a8c3e771b49c9bb6b59b9eb460128cba37de16aaec8d52dab2d707e23163200be68b39e95290d0f773e1349a088877405fd8d86446e74e60bccb84a82435f9c +DIST watchmouse-mysql-udf-ipv6-01c591b05b79.tar.bz2 10105 BLAKE2B c3f7b71c240af4e89b369b519d03d43cc3fd120d3c66a115ac6869c95ee4cb6ef0d8fc9c9fbc9d86c41eacf50af133db2ff96537c4c8418d32bea11db2247eb5 SHA512 21bcd207076dfbab251b343eb4bf9dd8f783f0ce666ba266b2b9101acfcb764dbb1b4cc2f4b0608a128d0e684b31e9d97d58978b2cdb3a5452c1656780671287 +EBUILD mysql-udf-ipv6-0.4.ebuild 1535 BLAKE2B 81c8f882367cf83986d67e220ec731d45b54cbd9914cf953ef5de10947a907313cef49283563c417709ff62288a8d9c25eaf141d7f1caa840f41aa3715783bb8 SHA512 ad6ad66d4aa9b40b631a51909182a6306a9847d60f05e8c00532a33d7198a98f222426c519d75b1b14db22b8ff6ba036b0031003b3450cdd10d89bc45ac84449 +MISC metadata.xml 260 BLAKE2B c5666bbb5541ad456c9e76699751867b923714eb5624f3f1bc7823fd94aad2be3c02aeacecacd9b8fe3d598ef759a8b0ff00e6e718c06b3e35906f2d293e249d SHA512 0c8d4eac647683711cc2f9a1c2c273bee8fd5a1a9694a0f182bd2b63f0be8beb0468e7fdc704babf10f531099e50cac0700ea39402583847eb28cd909832e370 diff --git a/dev-db/mysql-udf-ipv6/files/mysql-udf-ipv6-warnings.patch b/dev-db/mysql-udf-ipv6/files/mysql-udf-ipv6-warnings.patch new file mode 100644 index 000000000000..392ecd3c4f53 --- /dev/null +++ b/dev-db/mysql-udf-ipv6/files/mysql-udf-ipv6-warnings.patch @@ -0,0 +1,28 @@ +--- mysql_udf_ipv6.c.orig 2011-08-10 10:45:49.000000000 +0200 ++++ mysql_udf_ipv6.c 2011-10-18 16:27:58.000000000 +0200 +@@ -282,7 +282,7 @@ + { + unsigned long length = args->lengths[0]; + long long mask = *((long long *) args->args[1]); +- unsigned char mask8, i; ++ unsigned char i; + + if (!args->args[0] || !length) + { +@@ -299,7 +299,7 @@ + + // my ugly get-the-job-done 128-bit masking + memset(result, 0, INET6_ADDRLEN); +- for (i = 0; i < INET6_ADDRLEN, mask >= 8; i++, mask -= 8) ++ for (i = 0; i < INET6_ADDRLEN && mask >= 8; i++, mask -= 8) + { + result[i] = args->args[0][i]; + } +@@ -347,7 +347,6 @@ + { + struct addrinfo *info; + char *addr; +- ushort i; + + if (!args->args[0] || !args->lengths[0]) + { diff --git a/dev-db/mysql-udf-ipv6/metadata.xml b/dev-db/mysql-udf-ipv6/metadata.xml new file mode 100644 index 000000000000..e3473b0dd86d --- /dev/null +++ b/dev-db/mysql-udf-ipv6/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <upstream> + <remote-id type="bitbucket">watchmouse/mysql-udf-ipv6</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-db/mysql-udf-ipv6/mysql-udf-ipv6-0.4.ebuild b/dev-db/mysql-udf-ipv6/mysql-udf-ipv6-0.4.ebuild new file mode 100644 index 000000000000..e7bcc4490033 --- /dev/null +++ b/dev-db/mysql-udf-ipv6/mysql-udf-ipv6-0.4.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit eutils toolchain-funcs + +MY_REV="01c591b05b79" # checkout revision +MY_USR="watchmouse" # user name + +MY_P="${MY_USR}-${PN}-${MY_REV}" + +DESCRIPTION="IPv6 and internationalized domain (IDNA) functions for MySQL" +HOMEPAGE="http://labs.watchmouse.com/2009/10/extending-mysql-5-with-ipv6-functions/" +SRC_URI="https://bitbucket.org/${MY_USR}/${PN}/get/${MY_REV}.tar.bz2 -> ${MY_P}.tar.bz2" + +LICENSE="EUPL-1.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="idn" + +DEPEND=">=virtual/mysql-5.1 + idn? ( net-dns/libidn )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +# compile helper +_compile() { + local CC="$(tc-getCC)" + echo "${CC} ${@}" && "${CC}" "${@}" +} + +pkg_setup() { + MYSQL_PLUGINDIR="$(mysql_config --plugindir)" + MYSQL_INCLUDE="$(mysql_config --include)" +} + +src_prepare() { + epatch "${FILESDIR}/${PN}-warnings.patch" +} + +src_compile() { + _compile ${CFLAGS} -Wall -fPIC ${MYSQL_INCLUDE} \ + -shared ${LDFLAGS} -o mysql_udf_ipv6.so mysql_udf_ipv6.c + + if use idn; then + _compile ${CFLAGS} -Wall -fPIC ${MYSQL_INCLUDE} -lidn \ + -shared ${LDFLAGS} -o mysql_udf_idna.so mysql_udf_idna.c + fi +} + +src_install() { + exeinto "${MYSQL_PLUGINDIR}" + doexe mysql_udf_*.so + newdoc Changelog ChangeLog + dodoc README +} + +pkg_postinst() { + elog + elog "Please have a look at the documentation, how to" + elog "enable/disable the UDF functions of ${PN}." + elog + elog "The documentation is located here:" + elog "/usr/share/doc/${PF}" + elog +} |