summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Briesenick <sbriesen@gentoo.org>2011-10-19 12:28:09 +0000
committerStefan Briesenick <sbriesen@gentoo.org>2011-10-19 12:28:09 +0000
commit2715a7e5f68d0928a493123e1dafcc19443a9f5e (patch)
tree840b2d07a405cd8f1c6a5d7a322bb0ce945e6fb2 /dev-db/lib_mysqludf_sys
parentinitial commit (diff)
downloadgentoo-2-2715a7e5f68d0928a493123e1dafcc19443a9f5e.tar.gz
gentoo-2-2715a7e5f68d0928a493123e1dafcc19443a9f5e.tar.bz2
gentoo-2-2715a7e5f68d0928a493123e1dafcc19443a9f5e.zip
initial commit
(Portage version: 2.2.0_alpha67/cvs/Linux x86_64)
Diffstat (limited to 'dev-db/lib_mysqludf_sys')
-rw-r--r--dev-db/lib_mysqludf_sys/ChangeLog10
-rw-r--r--dev-db/lib_mysqludf_sys/lib_mysqludf_sys-0.0.2.ebuild59
-rw-r--r--dev-db/lib_mysqludf_sys/metadata.xml9
3 files changed, 78 insertions, 0 deletions
diff --git a/dev-db/lib_mysqludf_sys/ChangeLog b/dev-db/lib_mysqludf_sys/ChangeLog
new file mode 100644
index 000000000000..2ce88f0f0348
--- /dev/null
+++ b/dev-db/lib_mysqludf_sys/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-db/lib_mysqludf_sys
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/lib_mysqludf_sys/ChangeLog,v 1.1 2011/10/19 12:28:09 sbriesen Exp $
+
+*lib_mysqludf_sys-0.0.2 (19 Oct 2011)
+
+ 19 Oct 2011; Stefan Briesenick <sbriesen@gentoo.org>
+ +lib_mysqludf_sys-0.0.2.ebuild, +metadata.xml:
+ initial commit
+
diff --git a/dev-db/lib_mysqludf_sys/lib_mysqludf_sys-0.0.2.ebuild b/dev-db/lib_mysqludf_sys/lib_mysqludf_sys-0.0.2.ebuild
new file mode 100644
index 000000000000..b5a174279ae3
--- /dev/null
+++ b/dev-db/lib_mysqludf_sys/lib_mysqludf_sys-0.0.2.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/lib_mysqludf_sys/lib_mysqludf_sys-0.0.2.ebuild,v 1.1 2011/10/19 12:28:09 sbriesen Exp $
+
+EAPI=4
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="MySQL UDFs that allows one to interact with the operating system"
+HOMEPAGE="http://www.mysqludf.org/lib_mysqludf_sys/"
+SRC_URI="http://www.mysqludf.org/${PN}/${PN}_${PV}.tar.gz"
+
+LICENSE="LGPL-2.1"
+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_prepare() {
+ # remove precompiled object
+ rm -f -- ${PN}.so
+}
+
+src_compile() {
+ _compile ${CFLAGS} -Wall -fPIC ${MYSQL_INCLUDE} \
+ -shared ${LDFLAGS} -o ${PN}.so ${PN}.c
+}
+
+src_install() {
+ exeinto "${MYSQL_PLUGINDIR}"
+ doexe ${PN}.so
+ dodoc ${PN}.sql
+ dohtml ${PN}.html
+}
+
+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
+}
diff --git a/dev-db/lib_mysqludf_sys/metadata.xml b/dev-db/lib_mysqludf_sys/metadata.xml
new file mode 100644
index 000000000000..abc550987baf
--- /dev/null
+++ b/dev-db/lib_mysqludf_sys/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>