summaryrefslogtreecommitdiff
path: root/dev-db/mysql-udf-http
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-db/mysql-udf-http
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-db/mysql-udf-http')
-rw-r--r--dev-db/mysql-udf-http/Manifest6
-rw-r--r--dev-db/mysql-udf-http/files/mysql-udf-http-stdlib.patch10
-rw-r--r--dev-db/mysql-udf-http/metadata.xml8
-rw-r--r--dev-db/mysql-udf-http/mysql-udf-http-1.0.ebuild59
4 files changed, 83 insertions, 0 deletions
diff --git a/dev-db/mysql-udf-http/Manifest b/dev-db/mysql-udf-http/Manifest
new file mode 100644
index 000000000000..22fbbbac79a4
--- /dev/null
+++ b/dev-db/mysql-udf-http/Manifest
@@ -0,0 +1,6 @@
+AUX mysql-udf-http-stdlib.patch 262 SHA256 e1341833a06d14502cc257e011216a7655f9c6106742a65faf804f78a7fc8b54 SHA512 9e914bafffa08ace217ffab6de9497cf0cbe4bcc2f5c10fb9c381e540cc700bdf356fdde8edcce539e3e0d2728083451e5ec147c24bf63c9861d35b3030a6b77 WHIRLPOOL 9128ced7781c05a17f84048122e270cb8be5e488361ed2f882c0bf97dc5aa934a0b2b910015b632f63f17e1f1003d9d7806e86f805d161a273bc544aafb4b0ce
+DIST mysql-udf-http-1.0.tar.gz 322160 SHA256 c487b140bcf030e080279e5274e0de71838241a0ef0ac464bcf0d93a31a3c26a SHA512 84feb7cfec052e368131bdf44937868339d9d8694128cd5257aa248ce3d1e2e660f3df1e7da99f64b3954fa66c29ed7af5a809fa5ebbd93a96c6cd2ec2ec81de WHIRLPOOL dd3954d530c4c46238c8102ba2feed0d8dafe180b70767ba260ec3396ba6afa7ce11756292434749ff7553e3cfdbabb51eeb0b7382d6f1a0a38a37e980be7bda
+EBUILD mysql-udf-http-1.0.ebuild 1303 SHA256 ec6eed912f035623b2aa5b9713d9d52fbf066acb6caa596a5f759b8a428d8946 SHA512 bdbbc1ddb92411972cfd1365cf3745669006f86710a17a5d3adc6232c33e2e5868b3ca1f272a9dcd57a444cac1ced5cad38dc2a28a97a403c09302af73a64306 WHIRLPOOL e6b75ba9268a71d52e829ec2ea9cbe2f3996dffc48e8539fb5279f4f745a14665b7fda590ade8518be196d2d1cfa36bbbcc98c50fd4ba86fd4d8c981987c7755
+MISC ChangeLog 2903 SHA256 5b2129325b44f8eb40b512369a603018d76e7105cec2ef50349f8ba835681360 SHA512 0957fb916c332754dd96f69e8c4c7f759f7c131634fbd7ac153dd475e1efdf4117173dee4b543b3bb71562dc6b8287b2faf2b7a6ca4e38f412f1a376a35ea1d2 WHIRLPOOL 3a6ec89a97ec065e99611f66b11bb1a3e41a3382b3edfcb1872a5da2265375d3df6759950a36e70666689a49c179f0ae7cf93726da1c4b2304ce8a24e90e7773
+MISC ChangeLog-2015 600 SHA256 f6f1760a549c97387ddb69c8fd37af51f85dae209afcc4f898a9e2b75e611aa8 SHA512 3f575fdcb1c376c2a169b959c59b1d14a3682e1d971cc93c7168b228c8d3b3ddc24fe91a31309310e4c7c06b019b2ad96ed3de67c3325d447cd86c6e4cd60d22 WHIRLPOOL 79b345e5bbbc9f7de26912f70f29800f0e50b313b479608817fcbd354f946839fecb3f328488564b221a144ede7228616a2b1f1b3d1fc5050fd2b4379621f904
+MISC metadata.xml 251 SHA256 800c8ed0fce04ce2e9bb3acd214911f3548e28f026e55bdc04ba7cd23ba03df7 SHA512 e1e841d7dcee0bb517f95e3e36a03deb356ff186b63674f3f4b87cf29daed5b3070ac9442eec72c84820a4c01ef0f715b8589f496495a4a8eac2c4d4be48815d WHIRLPOOL 9105208fb8cb6cbb6b9e6da1f92d5f0498a611531d01e882cb9acdbcfcff8de1f2262eb70fe8a54187618697e426d603e9fb29020941c088faf51801e12c7463
diff --git a/dev-db/mysql-udf-http/files/mysql-udf-http-stdlib.patch b/dev-db/mysql-udf-http/files/mysql-udf-http-stdlib.patch
new file mode 100644
index 000000000000..6e371fc4a835
--- /dev/null
+++ b/dev-db/mysql-udf-http/files/mysql-udf-http-stdlib.patch
@@ -0,0 +1,10 @@
+--- src/mysql-udf-http.c.orig 2010-09-06 06:00:32.000000000 +0200
++++ src/mysql-udf-http.c 2011-10-18 16:36:37.000000000 +0200
+@@ -2,6 +2,7 @@
+ #include <string.h>
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <curl/curl.h>
+ #include "mysql-udf-http.h"
+
diff --git a/dev-db/mysql-udf-http/metadata.xml b/dev-db/mysql-udf-http/metadata.xml
new file mode 100644
index 000000000000..c28680ca19b4
--- /dev/null
+++ b/dev-db/mysql-udf-http/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="google-code">mysql-udf-http</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-db/mysql-udf-http/mysql-udf-http-1.0.ebuild b/dev-db/mysql-udf-http/mysql-udf-http-1.0.ebuild
new file mode 100644
index 000000000000..76152f4b2812
--- /dev/null
+++ b/dev-db/mysql-udf-http/mysql-udf-http-1.0.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils toolchain-funcs autotools
+
+DESCRIPTION="MySQL User-defined function (UDF) for HTTP REST"
+HOMEPAGE="https://code.google.com/p/mysql-udf-http/"
+SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=virtual/mysql-5.1
+ net-misc/curl"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ MYSQL_PLUGINDIR="$(mysql_config --plugindir)"
+ MYSQL_INCLUDE="$(mysql_config --include)"
+}
+
+src_prepare() {
+ # fix README
+ sed -i -e "s|${PN}\(\.so\)|${PN//-/_}\1|g" README
+
+ # fix Makefile.am
+ sed -i -e "s|${PN}\([_\.]la\)|${PN//-/_}\1|g" \
+ -e "s|\(-module\)|\1 -avoid-version|g" src/Makefile.am
+
+ epatch "${FILESDIR}/${PN}-stdlib.patch"
+ eautoreconf
+}
+
+src_configure() {
+ econf --with-pic --disable-static --libdir="${MYSQL_PLUGINDIR}" \
+ --with-mysql="$(type -p mysql_config)"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc README
+
+ # remove obsolete *.la file
+ rm -f -- "${D}${MYSQL_PLUGINDIR}"/*.la
+}
+
+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
+}