From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-db/mysql-udf-base64/Manifest | 8 +++ .../files/mysql-udf-base64-signedness.patch | 29 ++++++++++ dev-db/mysql-udf-base64/files/mysql-udf-base64.sql | 5 ++ dev-db/mysql-udf-base64/metadata.xml | 5 ++ .../mysql-udf-base64-20010618.ebuild | 65 ++++++++++++++++++++++ 5 files changed, 112 insertions(+) create mode 100644 dev-db/mysql-udf-base64/Manifest create mode 100644 dev-db/mysql-udf-base64/files/mysql-udf-base64-signedness.patch create mode 100644 dev-db/mysql-udf-base64/files/mysql-udf-base64.sql create mode 100644 dev-db/mysql-udf-base64/metadata.xml create mode 100644 dev-db/mysql-udf-base64/mysql-udf-base64-20010618.ebuild (limited to 'dev-db/mysql-udf-base64') diff --git a/dev-db/mysql-udf-base64/Manifest b/dev-db/mysql-udf-base64/Manifest new file mode 100644 index 000000000000..eea22ec5cd50 --- /dev/null +++ b/dev-db/mysql-udf-base64/Manifest @@ -0,0 +1,8 @@ +AUX mysql-udf-base64-signedness.patch 879 SHA256 f91151971fc53032f402d92184ca24db879c72f62dd7a864133d935d6524a759 SHA512 7bbd3c477feacecf2bcb8297e1ab482c5b67efbec8cc475627886d4bc48105ca31d32b49fa9ee0d7d0948d94d9d202a2d48c82ebf0e19dd2f3f3da1da362a7ba WHIRLPOOL e7fa4fdd3f6e0df7952d82205789acf75a204a03c13a064a9a1f1dacaaf576d58692c11f776bc42b9c9dbc8520f6dc246f741abf6bd7e0138a276960aedde0cf +AUX mysql-udf-base64.sql 205 SHA256 77d88be8ee6f5744169111bebf141cee32df1e9877b05599795444b4e5c092bf SHA512 d223b2dc206930a46c6c2c5311f4cbeb5757c7a66b5c5f345533e2d319dc6185eada25b98ef1d5b05c2b804c0f92f22e99b3a340a8b9bb332d8adc00585997d2 WHIRLPOOL dc45d0a74a7234172027c2ba5cedadd1a520f320bb09048bf2454e3e540bcade43631923a448d92d31b6792681c38d7a394051f873604a364cbcc51e77eeb2f8 +DIST mysql-udf-base64-20010618.c 7106 SHA256 6d1efdee8489ee2b5d133d0d8997dce08d417d511b8dc80019bed2ca44a56472 SHA512 23d2d1da7481626ebdb8ca3e31d01ae17903ff431415c7bca6ab20e414dc8751ab105a73e55b66a380e0e11ac0fc949b79d5f3c34f3d353abc1a52627be45f86 WHIRLPOOL 2ed00abd547ed54a38adece50682f4866bcdae8d5e72aaa9b113bfdafbfcab20ed8d321b4cd664d145bf4f8d193dca85a175bc8e40cf3163a4f04514f5c297b8 +DIST mysql-udf-base64-20010618.readme 222 SHA256 39f41fd56716021358b2f49c290871ca6618fba77ad45ce8c904250a569c09a9 SHA512 2e2a17d7d1f1435bda59c89529e38a4843be814de5cb0db57643f8feb99a59cadf1e518e2903c470cd5931a964541dc5cc5d1b7f9041e7ed49442c37f139b2aa WHIRLPOOL 3f3abbc448e23a0642e43f70bffa81771eea344b266d41859b91f0d1ced6c9ba16229e4c5109a8e29f2df2c4b6671c8f84ce95bb410aac7ec1aa2d1bef6b92ac +EBUILD mysql-udf-base64-20010618.ebuild 1429 SHA256 019711808dd6f2e7f528d48a56f71b9fe9d4e249f82267ec699a9e9a15b1940e SHA512 6ac0dd2e8128945f8d8ace8ae5c9227a2224fcd51513b4a52f24f238f75511b9ca1d5b1076807356ea36ac3c83157b7dea42fd6f856e4b25085028c7d49eabf3 WHIRLPOOL 97bf532892bb35a6627fb246ac08f738f7866f248ff78b44006fa98978ee11fabd02cc044962a4377d7955230ff7e201c9997f3ef2bad0623f7cf0f5bee4132e +MISC ChangeLog 2626 SHA256 22dd6b7d25e304837896907ebc5cba1a389ee860c277dc61dcd2e182fac186b4 SHA512 746c5e45e1c9c09b7c087f99dd4cda6c15cf948315f388c71a4f564b1d7aba1166a0ade39af9ef8d497e23729e372cd6af304d65d340945cf76b3bd35b13e299 WHIRLPOOL a3e21f23a54cd4387e227999b5944f1e32f4a16b796b8fa407089bc6266c54ff3e99b4b759725745730d221138200ef1971a0e789f33b1e0d3c7b6fb91b9f521 +MISC ChangeLog-2015 657 SHA256 432bbd55d943209c2e879439fbf526d778c6efd0b82cabd0eba6ac4d1e715175 SHA512 e141d5cb108d6c301f0a4e904773bb6457119a2282a4904f937b2949615498f4aad24379905c6126618ba3077ddb06556a9bac45817d6f3fe713dcda16d5f818 WHIRLPOOL a76e901fe77c319d69a883035f484907e52c9af96f0fbe255df04e3ede5e08a8b8b1b804d75ecbb50b249cc87ce557a05f2c6eccc71ee99102a15458d1811551 +MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968 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 + #include + +-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..6f49eba8f496 --- /dev/null +++ b/dev-db/mysql-udf-base64/metadata.xml @@ -0,0 +1,5 @@ + + + + + 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..a7b4b06a6907 --- /dev/null +++ b/dev-db/mysql-udf-base64/mysql-udf-base64-20010618.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 +} -- cgit v1.2.3