diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-db/mysql-udf-ipv6 | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-db/mysql-udf-ipv6')
-rw-r--r-- | dev-db/mysql-udf-ipv6/Manifest | 1 | ||||
-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 | 7 | ||||
-rw-r--r-- | dev-db/mysql-udf-ipv6/mysql-udf-ipv6-0.4.ebuild | 69 |
4 files changed, 105 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..66886a81f1e1 --- /dev/null +++ b/dev-db/mysql-udf-ipv6/Manifest @@ -0,0 +1 @@ +DIST watchmouse-mysql-udf-ipv6-01c591b05b79.tar.bz2 10105 SHA256 4975c8edbea6c44eccb967697ba43becd6d105c63ace7af01db0482d20d3b251 SHA512 21bcd207076dfbab251b343eb4bf9dd8f783f0ce666ba266b2b9101acfcb764dbb1b4cc2f4b0608a128d0e684b31e9d97d58978b2cdb3a5452c1656780671287 WHIRLPOOL fc6397eee33da05f1164f522abdd8dd7ea16a4ee17eddef3fc6c59f656038762ae4ea9ae934943f9e7576961cd61699eb428804fa2c082e84a23a765b3eeb4dd 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..91f4e72fb544 --- /dev/null +++ b/dev-db/mysql-udf-ipv6/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </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..2c36b9b40d3e --- /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 +# $Id$ + +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 +} |