Skip to content

Commit

Permalink
Initial import of handlersocket.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Perkin committed Jan 31, 2013
1 parent 8002760 commit 67a8ad3
Show file tree
Hide file tree
Showing 7 changed files with 97 additions and 0 deletions.
5 changes: 5 additions & 0 deletions handlersocket/DESCR
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
HandlerSocket is a NoSQL plugin for MySQL. It works as a daemon inside the
mysqld process, accept tcp connections, and execute requests from clients.

HandlerSocket does not support SQL queries. Instead, it supports simple CRUD
operations on tables.
37 changes: 37 additions & 0 deletions handlersocket/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# $NetBSD$
#

DISTNAME= handlersocket_1.1.0-7-g1044a28.orig
PKGNAME= handlersocket-1.1.0
CATEGORIES= databases
MASTER_SITES= http://launchpad.net/ubuntu/+archive/primary/+files/

MAINTAINER= pkgsrc-users@netbsd.org
HOMEPAGE= http://www.percona.com/software/percona-xtrabackup
COMMENT= HandlerSocket

# Requires MySQL source tree
MYSQL= Percona-Server-5.5.29-rel29.4
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${MYSQL}.tar.gz
SITES.${MYSQL}.tar.gz= http://www.percona.com/redir/downloads/Percona-Server-5.5/Percona-Server-5.5.29-29.4/source/

DEPENDS+= percona-server-[0-9*:../../joyent/percona55-server

USE_LANGUAGES= c c++
USE_LIBTOOL= yes
USE_TOOLS+= aclocal autoconf autoheader automake gmake

WRKSRC= ${WRKDIR}/DeNADev-HandlerSocket-Plugin-for-MySQL-1044a28

#CFLAGS+= -I${PREFIX}/include/mysql
LDFLAGS.SunOS+= -lsocket -lnsl -lxnet

do-configure:
${RUN} cd ${WRKSRC} && \
./autogen.sh && \
${CONFIGURE_ENV} ./configure --with-mysql-source=${WRKDIR}/${MYSQL} \
--with-mysql-bindir=${PREFIX}/bin \
--with-mysql-plugindir=${PREFIX}/lib/mysql/plugin

.include "../../joyent/percona55-client/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
2 changes: 2 additions & 0 deletions handlersocket/PLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@comment $NetBSD$
lib/mysql/plugin/handlersocket.la
11 changes: 11 additions & 0 deletions handlersocket/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
$NetBSD$

SHA1 (Percona-Server-5.5.29-rel29.4.tar.gz) = 0c02296414739a29e8a3c81ff7fab68a45d5b8a2
RMD160 (Percona-Server-5.5.29-rel29.4.tar.gz) = 00acc15dde50735ee8e92e8b69d08fe77159acd8
Size (Percona-Server-5.5.29-rel29.4.tar.gz) = 22472140 bytes
SHA1 (handlersocket_1.1.0-7-g1044a28.orig.tar.gz) = 9c4d4619445fffc08cc61205082f8a3a799748aa
RMD160 (handlersocket_1.1.0-7-g1044a28.orig.tar.gz) = eb3af68a40bef7a823559e2e1fd77f55bcc96ff5
Size (handlersocket_1.1.0-7-g1044a28.orig.tar.gz) = 163737 bytes
SHA1 (patch-configure.ac) = 190c1bc337ef07b115a1827c5dc11fba6df249bc
SHA1 (patch-libhsclient_allocator.hpp) = e2569d58f5159949bd55342716beb186439cfe94
SHA1 (patch-libhsclient_fatal.cpp) = 01a29cd82ede826bd56b13ed955f94bc6f3f8272
16 changes: 16 additions & 0 deletions handlersocket/patches/patch-configure.ac
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
$NetBSD$

* Upstream patch to fix automake.

--- configure.ac.orig 2012-05-01 12:09:31.000000000 +0000
+++ configure.ac
@@ -8,6 +8,9 @@ AM_INIT_AUTOMAKE([-Wall -Werror foreign]
AC_CONFIG_SRCDIR([libhsclient/fatal.cpp])
AC_CONFIG_MACRO_DIR([m4])

+# For automake >= 1.12
+m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
+
AC_PROG_CC
AC_PROG_CXX
AC_PROG_CPP
12 changes: 12 additions & 0 deletions handlersocket/patches/patch-libhsclient_allocator.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
$NetBSD$

--- libhsclient/allocator.hpp.orig 2012-05-01 12:09:31.000000000 +0000
+++ libhsclient/allocator.hpp
@@ -9,6 +9,7 @@
#ifndef DENA_ALLOCATOR_HPP
#define DENA_ALLOCATOR_HPP

+#include <alloca.h>
#include <stdlib.h>
#include <string.h>

14 changes: 14 additions & 0 deletions handlersocket/patches/patch-libhsclient_fatal.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
$NetBSD$

* Upstream patch.

--- libhsclient/fatal.cpp.orig 2012-05-01 12:09:31.000000000 +0000
+++ libhsclient/fatal.cpp
@@ -9,6 +9,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <syslog.h>
+#include <unistd.h>

#include "fatal.hpp"

0 comments on commit 67a8ad3

Please sign in to comment.