summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorStefan Briesenick <sbriesen@gentoo.org>2011-10-19 11:59:44 +0000
committerStefan Briesenick <sbriesen@gentoo.org>2011-10-19 11:59:44 +0000
commit8d373eea5ab4eb35e49bad7a29535ba67b495570 (patch)
treeabb4805d88bab9ed38a2ca6d162e40acf8f284b3 /dev-db
parentStable for HPPA (bug #385859). (diff)
downloadhistorical-8d373eea5ab4eb35e49bad7a29535ba67b495570.tar.gz
historical-8d373eea5ab4eb35e49bad7a29535ba67b495570.tar.bz2
historical-8d373eea5ab4eb35e49bad7a29535ba67b495570.zip
initial commit
Package-Manager: portage-2.2.0_alpha67/cvs/Linux x86_64
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/mysql-udf-base64/ChangeLog11
-rw-r--r--dev-db/mysql-udf-base64/Manifest19
-rw-r--r--dev-db/mysql-udf-base64/files/mysql-udf-base64-signedness.patch29
-rw-r--r--dev-db/mysql-udf-base64/files/mysql-udf-base64.sql5
-rw-r--r--dev-db/mysql-udf-base64/metadata.xml9
-rw-r--r--dev-db/mysql-udf-base64/mysql-udf-base64-20010618.ebuild66
6 files changed, 139 insertions, 0 deletions
diff --git a/dev-db/mysql-udf-base64/ChangeLog b/dev-db/mysql-udf-base64/ChangeLog
new file mode 100644
index 000000000000..5bc473a0bb5a
--- /dev/null
+++ b/dev-db/mysql-udf-base64/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-db/mysql-udf-base64
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-udf-base64/ChangeLog,v 1.1 2011/10/19 11:59:44 sbriesen Exp $
+
+*mysql-udf-base64-20010618 (19 Oct 2011)
+
+ 19 Oct 2011; Stefan Briesenick <sbriesen@gentoo.org>
+ +files/mysql-udf-base64-signedness.patch, +mysql-udf-base64-20010618.ebuild,
+ +files/mysql-udf-base64.sql, +metadata.xml:
+ initial commit
+
diff --git a/dev-db/mysql-udf-base64/Manifest b/dev-db/mysql-udf-base64/Manifest
new file mode 100644
index 000000000000..c316f937b20c
--- /dev/null
+++ b/dev-db/mysql-udf-base64/Manifest
@@ -0,0 +1,19 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX mysql-udf-base64-signedness.patch 879 RMD160 6f8f6b14a6ab85dfb38566f07edd598a9c03f597 SHA1 2b4a57d2e5576eb42b8877a23b12a77292c150ff SHA256 f91151971fc53032f402d92184ca24db879c72f62dd7a864133d935d6524a759
+AUX mysql-udf-base64.sql 205 RMD160 cb1e927679819152bc9144bc01dd02dd86524990 SHA1 c1ce9ce68c3f60b726ef85a73603d4d067b298c9 SHA256 77d88be8ee6f5744169111bebf141cee32df1e9877b05599795444b4e5c092bf
+DIST mysql-udf-base64-20010618.c 7106 RMD160 2390ef1c18e2b42175dbabdbbe4ffb347133bc26 SHA1 58cc6f6cd3f37efd5bd5817a8cb1cc7f1d68f800 SHA256 6d1efdee8489ee2b5d133d0d8997dce08d417d511b8dc80019bed2ca44a56472
+DIST mysql-udf-base64-20010618.readme 222 RMD160 8448613fc85da9b8901782adbc2b6ec9ef52ad56 SHA1 d4d21f85529bd0331a0aa71ff37b6f4937d71104 SHA256 39f41fd56716021358b2f49c290871ca6618fba77ad45ce8c904250a569c09a9
+EBUILD mysql-udf-base64-20010618.ebuild 1560 RMD160 3b95ec8e68498941deba6a3c54deb7b1e19dae70 SHA1 c3609a45a99d70cd4812156de97295485103beb1 SHA256 f10aa3a94b2ea065862cbd87a780cbe8e904d18e89972b255a19d40b27550c0a
+MISC ChangeLog 461 RMD160 4d26c0d07b271914a1a1f56ded998a6eaeda900f SHA1 96f76d91bcb83b6428db208a8c95825a20237a8f SHA256 3353f0474165da9f70ba6929fb1389e1bd2d5cf4c568fc10bd984bf0747ed391
+MISC metadata.xml 260 RMD160 ec3e42bcfecae9e6ec261e08c455086395cb31d7 SHA1 4bd905c3b4ec03f6ff5443d315cc0ee9e6de4441 SHA256 3daf3f2d4dff9acd7d244b31f754164ad4d8a5d0243a4ca117ec9118ff31f98f
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.18 (GNU/Linux)
+
+iJwEAQECAAYFAk6eu70ACgkQIaLonLtsQsfrPgP/T7NqImPuhQ0+hibA/qX40J8B
+ML3G2ttdmYeP4aZsRnm/9Ra51S25NKXRzLbsctE5nIhTMreuAIg2Qu4XOC+W3ScW
+pM1+o2qYq+DcyBeBQiOWmBIZVjO9Y75HkgLO9HwtkYxeNWDhyMbhmtq3HGMRihph
+yDx0KDMrJjNvq1v0nQA=
+=pOsr
+-----END PGP SIGNATURE-----
diff --git a/dev-db/mysql-udf-base64/files/mysql-udf-base64-signedness.patch b/dev-db/mysql-udf-base64/files/mysql-udf-base64-signedness.patch
new file mode 100644
index 000000000000..5084a9dd0128
--- /dev/null
+++ b/dev-db/mysql-udf-base64/files/mysql-udf-base64-signedness.patch
@@ -0,0 +1,29 @@
+--- mysql-udf-base64.c.orig 2011-10-16 14:17:13.000000000 +0200
++++ mysql-udf-base64.c 2011-10-16 14:18:41.000000000 +0200
+@@ -49,7 +49,7 @@
+ #include <string.h>
+ #include <mysql/mysql.h>
+
+-static char base64_table[] =
++static const char base64_table[] =
+ { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
+ 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
+ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
+@@ -101,7 +101,7 @@
+ unsigned long len;
+
+ /* *is_null=0; */
+- current = args->args[0];
++ current = (unsigned char*) args->args[0];
+ len = args->lengths[0];
+
+ if (len <= 0 || args->arg_type[0] != STRING_RESULT )
+@@ -211,7 +211,7 @@
+ }
+ }
+
+- current = args->args[0];
++ current = (unsigned char*) args->args[0];
+ len = args->lengths[0];
+
+ if (len <= 0 || args->arg_type[0] != STRING_RESULT )
diff --git a/dev-db/mysql-udf-base64/files/mysql-udf-base64.sql b/dev-db/mysql-udf-base64/files/mysql-udf-base64.sql
new file mode 100644
index 000000000000..619d4b0013d2
--- /dev/null
+++ b/dev-db/mysql-udf-base64/files/mysql-udf-base64.sql
@@ -0,0 +1,5 @@
+drop function base64encode;
+drop function base64decode;
+
+create function base64encode returns string soname 'mysql_udf_base64.so';
+create function base64decode returns string soname 'mysql_udf_base64.so';
diff --git a/dev-db/mysql-udf-base64/metadata.xml b/dev-db/mysql-udf-base64/metadata.xml
new file mode 100644
index 000000000000..abc550987baf
--- /dev/null
+++ b/dev-db/mysql-udf-base64/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-base64/mysql-udf-base64-20010618.ebuild b/dev-db/mysql-udf-base64/mysql-udf-base64-20010618.ebuild
new file mode 100644
index 000000000000..485c8795ef80
--- /dev/null
+++ b/dev-db/mysql-udf-base64/mysql-udf-base64-20010618.ebuild
@@ -0,0 +1,66 @@
+# 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-base64/mysql-udf-base64-20010618.ebuild,v 1.1 2011/10/19 11:59:44 sbriesen Exp $
+
+EAPI=4
+
+inherit eutils toolchain-funcs
+
+MY_PN="${PN//-/_}"
+
+DESCRIPTION="MySQL UDFs that provide base64 encode/decode"
+HOMEPAGE="http://mirrors.sohu.com/mysql/Contrib/Old-Versions/"
+SRC_URI="http://mirrors.sohu.com/mysql/Contrib/Old-Versions/${PN}.c -> ${P}.c
+ http://mirrors.sohu.com/mysql/Contrib/Old-Versions/${PN}.readme -> ${P}.readme"
+
+LICENSE="PHP-2.02"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=virtual/mysql-5.1"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"
+
+# compile helper
+_compile() {
+ local CC="$(tc-getCC)"
+ echo "${CC} ${@}" && "${CC}" "${@}"
+}
+
+pkg_setup() {
+ MYSQL_PLUGINDIR="$(mysql_config --plugindir)"
+ MYSQL_INCLUDE="$(mysql_config --include)"
+}
+
+src_unpack() {
+ cp -f "${DISTDIR}/${P}.c" "${S}/${PN}.c"
+ cp -f "${DISTDIR}/${P}.readme" "${S}/${PN}.readme"
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-signedness.patch"
+}
+
+src_compile() {
+ _compile ${CFLAGS} -Wall -fPIC ${MYSQL_INCLUDE} \
+ -shared ${LDFLAGS} -o ${MY_PN}.so ${PN}.c
+}
+
+src_install() {
+ exeinto "${MYSQL_PLUGINDIR}"
+ doexe ${MY_PN}.so
+ newdoc ${PN}.readme README
+ newdoc ${FILESDIR}/${PN}.sql ${MY_PN}.sql
+}
+
+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
+}