From 78d9320313f709519b73415e20ac83b1e9b86ee9 Mon Sep 17 00:00:00 2001 From: edwin Date: Tue, 1 Apr 2003 02:36:38 +0000 Subject: databases/puredb: Set of libraries for creating and reading constant databases PureDB is a portable and tiny set of libraries for creating and reading constant databases. It manages data files that contains text or binary key/data pairs of arbitrary sizes. Lookups are very fast (normally only one disk access to match a hash value), overhead is low (a database is 1028 bytes plus only 16 extra bytes per record), multiple concurrent read access are supported, and databases can be up to 4 Gb long, and they are portable across architectures. PR: ports/48901 Submitted by: Sergei Kolobov --- databases/Makefile | 1 + databases/puredb/Makefile | 28 ++++++++++++++++++++++++++++ databases/puredb/distinfo | 1 + databases/puredb/files/patch-example_read.c | 12 ++++++++++++ databases/puredb/pkg-descr | 10 ++++++++++ databases/puredb/pkg-plist | 17 +++++++++++++++++ 6 files changed, 69 insertions(+) create mode 100644 databases/puredb/Makefile create mode 100644 databases/puredb/distinfo create mode 100644 databases/puredb/files/patch-example_read.c create mode 100644 databases/puredb/pkg-descr create mode 100644 databases/puredb/pkg-plist diff --git a/databases/Makefile b/databases/Makefile index 1e2cc75e79b5..ca76cf9f129b 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -137,6 +137,7 @@ SUBDIR += postgresql7 SUBDIR += postgresql72 SUBDIR += postgresql_autodoc + SUBDIR += puredb SUBDIR += pxtools SUBDIR += py-MySQL SUBDIR += py-MySQLdb diff --git a/databases/puredb/Makefile b/databases/puredb/Makefile new file mode 100644 index 000000000000..557e320cd471 --- /dev/null +++ b/databases/puredb/Makefile @@ -0,0 +1,28 @@ +# New ports collection makefile for: puredb +# Date created: 01 Nov 2002 +# Whom: Sergei Kolobov +# +# $FreeBSD$ +# + +PORTNAME= puredb +PORTVERSION= 2.1 +CATEGORIES= databases +MASTER_SITES= http://www.pureftpd.org/puredb/ +DISTNAME= pure-db-${PORTVERSION} + +MAINTAINER= sergei@kolobov.com +COMMENT= Set of libraries for creating and reading constant databases + +USE_LIBTOOL= yes +INSTALLS_SHLIB= yes + +DOCS= AUTHORS FORMAT_DESCR NEWS README + +.if !defined(NOPORTDOCS) +post-install: + @${MKDIR} ${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} +.endif + +.include diff --git a/databases/puredb/distinfo b/databases/puredb/distinfo new file mode 100644 index 000000000000..da85a2c054e8 --- /dev/null +++ b/databases/puredb/distinfo @@ -0,0 +1 @@ +MD5 (pure-db-2.1.tar.gz) = 2fdf5771c169877218b1f83852f8cad4 diff --git a/databases/puredb/files/patch-example_read.c b/databases/puredb/files/patch-example_read.c new file mode 100644 index 000000000000..ba6d4fe304a8 --- /dev/null +++ b/databases/puredb/files/patch-example_read.c @@ -0,0 +1,12 @@ +--- src/example_read.c.orig Fri Nov 1 23:21:19 2002 ++++ src/example_read.c Fri Nov 1 23:21:47 2002 +@@ -3,6 +3,9 @@ + + #include + #include ++#ifdef __FreeBSD__ ++#include ++#endif + #include + + int main(void) diff --git a/databases/puredb/pkg-descr b/databases/puredb/pkg-descr new file mode 100644 index 000000000000..b97a306910e3 --- /dev/null +++ b/databases/puredb/pkg-descr @@ -0,0 +1,10 @@ +PureDB is a portable and tiny set of libraries for creating and reading +constant databases. It manages data files that contains text or binary +key/data pairs of arbitrary sizes. Lookups are very fast (normally only one +disk access to match a hash value), overhead is low (a database is 1028 +bytes plus only 16 extra bytes per record), multiple concurrent read access +are supported, and databases can be up to 4 Gb long, and they are portable +across architectures. + +Author: Frank DENIS . +WWW: http://www.pureftpd.org/puredb/ diff --git a/databases/puredb/pkg-plist b/databases/puredb/pkg-plist new file mode 100644 index 000000000000..51e549d18c39 --- /dev/null +++ b/databases/puredb/pkg-plist @@ -0,0 +1,17 @@ +bin/example_read +bin/example_write +include/puredb_read.h +include/puredb_write.h +lib/libpuredb_read.so.0 +lib/libpuredb_read.so +lib/libpuredb_read.la +lib/libpuredb_read.a +lib/libpuredb_write.so.0 +lib/libpuredb_write.so +lib/libpuredb_write.la +lib/libpuredb_write.a +%%PORTDOCS%%%%DOCSDIR%%/AUTHORS +%%PORTDOCS%%%%DOCSDIR%%/FORMAT_DESCR +%%PORTDOCS%%%%DOCSDIR%%/NEWS +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%@dirrm %%DOCSDIR%% -- cgit