From c8a63c112e73408c20fe4333e8488f13a3f7a743 Mon Sep 17 00:00:00 2001 From: Pawel Pekala Date: Tue, 20 Dec 2011 21:12:37 +0000 Subject: This package contains a number of functions that allows one to interact with the operating system from MySQL: sys_eval - executes an arbitrary command, and returns it's output. sys_exec - executes an arbitrary command, and returns it's exit code. sys_get - gets the value of an environment variable. sys_set - create an environment variable, or update the value of an existing environment variable. Use lib_mysqludf_sys_info() to obtain information about the currently installed version of lib_mysqludf_sys. WWW: http://www.mysqludf.org/lib_mysqludf_sys PR: ports/163216 Submitted by: David Cornejo --- databases/mysql-udf-sys/files/patch-Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 databases/mysql-udf-sys/files/patch-Makefile (limited to 'databases/mysql-udf-sys/files') diff --git a/databases/mysql-udf-sys/files/patch-Makefile b/databases/mysql-udf-sys/files/patch-Makefile new file mode 100644 index 000000000000..07286a216082 --- /dev/null +++ b/databases/mysql-udf-sys/files/patch-Makefile @@ -0,0 +1,22 @@ +--- Makefile.orig 2009-01-18 23:11:00.000000000 -1000 ++++ Makefile 2011-12-12 13:16:07.000000000 -1000 +@@ -1,4 +1,16 @@ +-LIBDIR=/usr/lib ++ ++LIBDIR= %%PREFIX%%/lib/mysql/plugin ++INCDIR= %%LOCALBASE%%/include/mysql ++PROG= lib_mysqludf_sys.so ++ ++all: lib_mysql_udf.so ++ ++lib_mysql_udf.so: ++ $(CC) -fPIC -Wall -I$(INCDIR) -I. -shared lib_mysqludf_sys.c -o $(PROG) + + install: +- gcc -Wall -I/usr/include/mysql -I. -shared lib_mysqludf_sys.c -o $(LIBDIR)/lib_mysqludf_sys.so ++ mkdir -p $(LIBDIR) ++ install -o root -g wheel -m 0755 $(PROG) $(LIBDIR) ++ ++clean: ++ rm -f $(PROG) ++ -- cgit v1.2.3