From 636e027b6ee2d394995925754805b626b772f71b Mon Sep 17 00:00:00 2001 From: Ying-Chieh Liao Date: Mon, 6 May 2002 14:47:14 +0000 Subject: add libshbuf 0.0.2 Library for Shared Buffer IPC --- devel/libshbuf/Makefile | 24 ++++++++++++++++++++++++ devel/libshbuf/distinfo | 1 + devel/libshbuf/files/patch-internal.h | 11 +++++++++++ devel/libshbuf/files/patch-shbuf.c | 10 ++++++++++ devel/libshbuf/pkg-comment | 1 + devel/libshbuf/pkg-descr | 14 ++++++++++++++ devel/libshbuf/pkg-plist | 7 +++++++ 7 files changed, 68 insertions(+) create mode 100644 devel/libshbuf/Makefile create mode 100644 devel/libshbuf/distinfo create mode 100644 devel/libshbuf/files/patch-internal.h create mode 100644 devel/libshbuf/files/patch-shbuf.c create mode 100644 devel/libshbuf/pkg-comment create mode 100644 devel/libshbuf/pkg-descr create mode 100644 devel/libshbuf/pkg-plist (limited to 'devel/libshbuf') diff --git a/devel/libshbuf/Makefile b/devel/libshbuf/Makefile new file mode 100644 index 000000000000..83c092661a3b --- /dev/null +++ b/devel/libshbuf/Makefile @@ -0,0 +1,24 @@ +# ex:ts=8 +# Ports collection makefile for: libshbuf +# Date created: May 6, 2002 +# Whom: ijliao +# +# $FreeBSD$ +# + +PORTNAME= libshbuf +PORTVERSION= 0.0.2 +CATEGORIES= devel +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= ports@FreeBSD.org + +USE_LIBTOOL= yes +GNU_CONFIGURE= yes +INSTALLS_SHLIB= yes + +post-patch: + @${PERL} -pi -e "s,-lpthread,${PTHREAD_LIBS},g" ${WRKSRC}/configure + +.include diff --git a/devel/libshbuf/distinfo b/devel/libshbuf/distinfo new file mode 100644 index 000000000000..4161a949c0f3 --- /dev/null +++ b/devel/libshbuf/distinfo @@ -0,0 +1 @@ +MD5 (libshbuf-0.0.2.tar.gz) = 1da7981daeb36e9b7ac968eb1f8266fd diff --git a/devel/libshbuf/files/patch-internal.h b/devel/libshbuf/files/patch-internal.h new file mode 100644 index 000000000000..d734ac900137 --- /dev/null +++ b/devel/libshbuf/files/patch-internal.h @@ -0,0 +1,11 @@ +--- src/internal.h.orig Mon May 6 22:38:42 2002 ++++ src/internal.h Mon May 6 22:40:33 2002 +@@ -72,7 +72,7 @@ + pthread_t thread; + }; + +-#if defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED) ++#if (defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED) || defined(__FreeBSD__)) + /* union semun is defined by including */ + #else + /* according to X/OPEN we have to define it ourselves */ diff --git a/devel/libshbuf/files/patch-shbuf.c b/devel/libshbuf/files/patch-shbuf.c new file mode 100644 index 000000000000..56cb781c214a --- /dev/null +++ b/devel/libshbuf/files/patch-shbuf.c @@ -0,0 +1,10 @@ +--- src/shbuf.c.orig Mon May 6 22:37:36 2002 ++++ src/shbuf.c Mon May 6 22:38:02 2002 +@@ -24,6 +24,7 @@ + #include + #include + #include ++#include + + #include "shbuf.h" + #include "internal.h" diff --git a/devel/libshbuf/pkg-comment b/devel/libshbuf/pkg-comment new file mode 100644 index 000000000000..8b066a622f4a --- /dev/null +++ b/devel/libshbuf/pkg-comment @@ -0,0 +1 @@ +Library for Shared Buffer IPC diff --git a/devel/libshbuf/pkg-descr b/devel/libshbuf/pkg-descr new file mode 100644 index 000000000000..7e67b38d76c2 --- /dev/null +++ b/devel/libshbuf/pkg-descr @@ -0,0 +1,14 @@ +libshbuf implements a new kind of IPC: the "shared buffer", a faster, more +flexible replacement for standard Unix FIFOs. It offers the following +advantages: + - Normally better latency and throughput + - Full access to the buffer at any time + - Connecting processes need not to be children of each other + - Arbitrary buffer lengths + - Memory mapped + - "Backlog" + +The implementation is based on SysV shared memory, semaphores and message +queues. It makes use of POSIX pthreads. + +WWW: http://libshbuf.sourceforge.net/ diff --git a/devel/libshbuf/pkg-plist b/devel/libshbuf/pkg-plist new file mode 100644 index 000000000000..24b5c1cc9886 --- /dev/null +++ b/devel/libshbuf/pkg-plist @@ -0,0 +1,7 @@ +include/libshbuf/shbuf.h +include/libshbuf/shbuferr.h +@dirrm include/libshbuf +lib/libshbuf.a +lib/libshbuf.la +lib/libshbuf.so +lib/libshbuf.so.1 -- cgit v1.2.3