Archivos reorganizados

This commit is contained in:
Juan Ferrer Toribio 2015-10-06 08:54:40 +02:00
parent 2b839cc637
commit 9b0723bf13
5 changed files with 18 additions and 26 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
vn-mysql (1.1-deb8) unstable; urgency=low
vn-mysql (1.2-deb8) unstable; urgency=low
* Initial Release.

7
doc/install.sql Normal file
View File

@ -0,0 +1,7 @@
INSTALL PLUGIN proxy_auth SONAME 'proxy_auth.so';
CREATE AGGREGATE FUNCTION minacum RETURNS INT SONAME 'minacum.so';
CREATE AGGREGATE FUNCTION multimax RETURNS INT SONAME 'multimax.so';
CREATE FUNCTION sql_printf RETURNS STRING SONAME 'sql_printf.so';

7
doc/uninstall.sql Normal file
View File

@ -0,0 +1,7 @@
UNINSTALL PLUGIN proxy_auth;
DROP FUNCTION IF EXISTS minacum;
DROP FUNCTION IF EXISTS multimax;
DROP FUNCTION IF EXISTS sql_printf;

View File

@ -53,3 +53,6 @@ install-data-hook:
rm -f $(DESTDIR)$(plugindir)/multimax.la
rm -f $(DESTDIR)$(plugindir)/multimax.a
#$(FILE): $(SRC)
# gcc -shared -o $@ $< -fPIC

View File

@ -1,25 +0,0 @@
NAME=sql_printf
FILE=$(NAME).so
SRC=$(NAME).c
URL=/usr/lib/mysql/plugin/$(FILE)
SQL_DROP="DROP FUNCTION IF EXISTS $(NAME);"
.PHONY: install uninstall clean
$(FILE): $(SRC)
rm -f $@
gcc -shared -o $@ $< -fPIC
install:
cp $(FILE) $(URL)
echo $(SQL_DROP)
echo "CREATE FUNCTION $(NAME) RETURNS STRING SONAME '$(FILE)';"
uninstall:
rm -f $(URL)
echo $(SQL_DROP)
clean:
rm -f $(FILE)