diff options
author | Stefan Briesenick <sbriesen@gentoo.org> | 2011-10-19 12:04:55 +0000 |
---|---|---|
committer | Stefan Briesenick <sbriesen@gentoo.org> | 2011-10-19 12:04:55 +0000 |
commit | f9e53f3f7dd2131a64d47129b7e0550132ef429d (patch) | |
tree | e7c8e059b081091baad8a0c69b3dd76dbcc8ac70 /dev-db/mysql-udf-ipv6 | |
parent | fixed unquoted variable (diff) | |
download | gentoo-2-f9e53f3f7dd2131a64d47129b7e0550132ef429d.tar.gz gentoo-2-f9e53f3f7dd2131a64d47129b7e0550132ef429d.tar.bz2 gentoo-2-f9e53f3f7dd2131a64d47129b7e0550132ef429d.zip |
initial commit
(Portage version: 2.2.0_alpha67/cvs/Linux x86_64)
Diffstat (limited to 'dev-db/mysql-udf-ipv6')
-rw-r--r-- | dev-db/mysql-udf-ipv6/ChangeLog | 11 | ||||
-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 | 9 | ||||
-rw-r--r-- | dev-db/mysql-udf-ipv6/mysql-udf-ipv6-0.4.ebuild | 69 |
4 files changed, 117 insertions, 0 deletions
diff --git a/dev-db/mysql-udf-ipv6/ChangeLog b/dev-db/mysql-udf-ipv6/ChangeLog new file mode 100644 index 000000000000..8c2f90fb4fa0 --- /dev/null +++ b/dev-db/mysql-udf-ipv6/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-db/mysql-udf-ipv6 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-udf-ipv6/ChangeLog,v 1.1 2011/10/19 12:04:55 sbriesen Exp $ + +*mysql-udf-ipv6-0.4 (19 Oct 2011) + + 19 Oct 2011; Stefan Briesenick <sbriesen@gentoo.org> + +files/mysql-udf-ipv6-warnings.patch, +mysql-udf-ipv6-0.4.ebuild, + +metadata.xml: + initial commit + 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..abc550987baf --- /dev/null +++ b/dev-db/mysql-udf-ipv6/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>sbriesen@gentoo.org</email> + <name>Stefan Briesenick</name> + </maintainer> +</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..df0895c62f9d --- /dev/null +++ b/dev-db/mysql-udf-ipv6/mysql-udf-ipv6-0.4.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-udf-ipv6/mysql-udf-ipv6-0.4.ebuild,v 1.1 2011/10/19 12:04:55 sbriesen Exp $ + +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 +} |