1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

MySAC: MySQL Simple Asynchonous Client

MySAC is a library that provides mechanisms for making asynchronous
request to MySQL database. It uses uses the official MySQL client
library for authentication and network functions. Memory allocation
must be done in user code, so any memory manager can be used.

WWW: http://cv.arpalert.org/page.sh?mysac

PR:		ports/163767
Submitted by:	Jake Smith <jake@xz.cx>
This commit is contained in:
Pawel Pekala 2012-01-05 23:34:56 +00:00
parent cc94b105fb
commit d5f91b2971
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=288576
7 changed files with 108 additions and 0 deletions

View File

@ -196,6 +196,7 @@
SUBDIR += mydbf2mysql
SUBDIR += mydumper
SUBDIR += mylibrary
SUBDIR += mysac
SUBDIR += mysql++1
SUBDIR += mysql++3
SUBDIR += mysql-connector-c++

39
databases/mysac/Makefile Normal file
View File

@ -0,0 +1,39 @@
# New ports collection makefile for: mysac
# Date created: 1 January 2012
# Whom: Jake Smith <jake@xz.cx>
#
# $FreeBSD$
#
PORTNAME= mysac
PORTVERSION= 1.1.1
CATEGORIES= databases
MASTER_SITES= http://www.arpalert.org/src/ \
http://xz.cx/downloads/mysac/
MAINTAINER= jake@xz.cx
COMMENT= MySAC: MySQL Simple Asynchonous Client
USE_LDCONFIG= yes
USE_MYSQL= yes
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -I${LOCALBASE}/lib
PLIST_FILES= lib/libmysac.so \
lib/libmysac.so.0 \
lib/libmysac-static.a \
include/mysac.h
pre-build:
${TOUCH} ${WRKSRC}/make.deps
do-install:
${INSTALL_LIB} ${WRKSRC}/libmysac.so \
${PREFIX}/lib/libmysac.so
${LN} -sf ${PREFIX}/lib/libmysac.so \
${PREFIX}/lib/libmysac.so.0
${INSTALL_LIB} ${WRKSRC}/libmysac-static.a ${PREFIX}/lib/libmysac-static.a
${INSTALL_DATA} ${WRKSRC}/mysac.h ${PREFIX}/include/mysac.h
.include <bsd.port.mk>

2
databases/mysac/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (mysac-1.1.1.tar.gz) = 63fb38ca6a6ee8d28bbad0552c7c7d240fbc6ed06ca886ad2ba31cf1ce8596d3
SIZE (mysac-1.1.1.tar.gz) = 46060

View File

@ -0,0 +1,34 @@
--- Makefile.orig 2012-01-02 06:39:03.451282135 +0000
+++ Makefile 2012-01-02 06:40:08.403362273 +0000
@@ -15,24 +15,26 @@
# You should have received a copy of the GNU General Public License
# along with MySAC. If not, see <http://www.gnu.org/licenses/>.
#
-SHELL=/bin/bash
+SHELL=/bin/sh
# Mysql lib directory
# exemple: <path>/mysql-5.1.41/libmysql_r/.libs
-MYSQL_LIB := /usr/lib
+MYSQL_LIB := $(LOCALBASE)/lib/mysql
# Mysql include directory
# exemple: <path>/mysql-5.1.41/include
-MYSQL_INC := /usr/include/mysql
+MYSQL_INC := $(LOCALBASE)/include/mysql
# get build version from the git tree in the form "lasttag-changes",
# and use "VERSION" file if unknown.
BUILDVER := $(shell ./mysac_ver)
-CFLAGS = -DBUILDVER=$(BUILDVER) -I$(MYSQL_INC) -O0 -g -Wall -Werror -fpic
-LDFLAGS = -g -L$(MYSQL_LIB) -lmysqlclient_r
+CFLAGS += -DBUILDVER=$(BUILDVER) -I$(MYSQL_INC) -O0 -g -Wall -fpic
+LDFLAGS += -g -L$(MYSQL_LIB) -lmysqlclient_r
OBJS = mysac.o mysac_net.o mysac_decode_field.o mysac_decode_row.o mysac_encode_values.o mysac_errors.o
+all: build
+
build: make.deps
$(MAKE) lib

View File

@ -0,0 +1,12 @@
--- mysac.c.orig 2012-01-02 05:39:13.267796448 +0000
+++ mysac.c 2012-01-02 05:39:23.079360664 +0000
@@ -22,8 +22,8 @@
#include <string.h>
#include <stdarg.h>
#include <ctype.h>
-#include <mysql/mysql.h>
#include <mysql/my_global.h>
+#include <mysql/mysql.h>
#include "mysac_decode_field.h"
#include "mysac_encode_values.h"

View File

@ -0,0 +1,12 @@
--- mysac_decode_field.c.orig 2011-06-06 20:58:33.000000000 +0100
+++ mysac_decode_field.c 2012-01-02 05:47:37.837388605 +0000
@@ -21,8 +21,8 @@
#include <stdint.h>
#include <string.h>
#include <stdarg.h>
-#include <mysql/mysql.h>
#include <mysql/my_global.h>
+#include <mysql/mysql.h>
#include "mysac_utils.h"
#include "mysac.h"

View File

@ -0,0 +1,8 @@
MySAC: MySQL Simple Asynchonous Client
MySAC is a library that provides mechanisms for making asynchronous
request to MySQL database. It uses uses the official MySQL client
library for authentication and network functions. Memory allocation
must be done in user code, so any memory manager can be used.
WWW: http://cv.arpalert.org/page.sh?mysac