pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/databases/tinycdb Initial import of tinycdb-0.75, a ve...
details: https://anonhg.NetBSD.org/pkgsrc/rev/05dbea4547dd
branches: trunk
changeset: 505758:05dbea4547dd
user: schmonz <schmonz%pkgsrc.org@localhost>
date: Sat Jan 07 06:47:10 2006 +0000
description:
Initial import of tinycdb-0.75, a very fast and simple package for
creating and reading constant data bases, a data structure introduced
by Dan J. Bernstein in his cdb package. It may be used to speed up
searches in a sequence of (key,value) pairs with very big number
of records. Example usage is indexing a big list of users - where
a search will require linear reading of a large /etc/passwd file,
and for many other tasks. It's usage/API is similar to ones found
in BerkeleyDB, gdbm and traditional *nix dbm/ndbm libraries, and
is compatible in great extent to cdb-0.75 package by Dan Bernstein.
CDB is a constant database, that is, it cannot be updated at a
runtime, only rebuilt. Rebuilding is atomic operation and is very
fast - much faster than of many other similar packages. Once created,
CDB may be queried, and a query takes very little time to complete.
diffstat:
databases/tinycdb/DESCR | 14 ++++++++++++++
databases/tinycdb/Makefile | 25 +++++++++++++++++++++++++
databases/tinycdb/PLIST | 7 +++++++
databases/tinycdb/distinfo | 6 ++++++
databases/tinycdb/patches/patch-aa | 22 ++++++++++++++++++++++
5 files changed, 74 insertions(+), 0 deletions(-)
diffs (94 lines):
diff -r 295b1417b724 -r 05dbea4547dd databases/tinycdb/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/tinycdb/DESCR Sat Jan 07 06:47:10 2006 +0000
@@ -0,0 +1,14 @@
+TinyCDB is a very fast and simple package for creating and reading
+constant data bases, a data structure introduced by Dan J. Bernstein
+in his cdb package. It may be used to speed up searches in a sequence
+of (key,value) pairs with very big number of records. Example usage
+is indexing a big list of users - where a search will require linear
+reading of a large /etc/passwd file, and for many other tasks. It's
+usage/API is similar to ones found in BerkeleyDB, gdbm and traditional
+*nix dbm/ndbm libraries, and is compatible in great extent to
+cdb-0.75 package by Dan Bernstein.
+
+CDB is a constant database, that is, it cannot be updated at a
+runtime, only rebuilt. Rebuilding is atomic operation and is very
+fast - much faster than of many other similar packages. Once created,
+CDB may be queried, and a query takes very little time to complete.
diff -r 295b1417b724 -r 05dbea4547dd databases/tinycdb/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/tinycdb/Makefile Sat Jan 07 06:47:10 2006 +0000
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/01/07 06:47:10 schmonz Exp $
+#
+
+DISTNAME= tinycdb_0.75
+PKGNAME= ${DISTNAME:S/_/-/}
+CATEGORIES= databases
+MASTER_SITES= http://www.corpit.ru/mjt/tinycdb/
+
+MAINTAINER= schmonz%NetBSD.org@localhost
+HOMEPAGE= http://www.corpit.ru/mjt/tinycdb.html
+COMMENT= Create and read constant databases
+
+CONFLICTS+= cdb-[0-9]*
+
+WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
+
+SUBST_CLASSES+= paths
+SUBST_STAGE.paths= do-configure
+SUBST_FILES.paths= Makefile
+SUBST_SED.paths= -e 's|@PREFIX@|${PREFIX}|g'
+SUBST_SED.paths+= -e 's|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g'
+SUBST_SED.paths+= -e 's|@PKGMANDIR@|${PKGMANDIR}|g'
+SUBST_MESSAGE.paths= "Configuring pkgsrc paths."
+
+.include "../../mk/bsd.pkg.mk"
diff -r 295b1417b724 -r 05dbea4547dd databases/tinycdb/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/tinycdb/PLIST Sat Jan 07 06:47:10 2006 +0000
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/01/07 06:47:10 schmonz Exp $
+bin/cdb
+include/cdb.h
+lib/libcdb.a
+man/man1/cdb.1
+man/man3/cdb.3
+man/man5/cdb.5
diff -r 295b1417b724 -r 05dbea4547dd databases/tinycdb/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/tinycdb/distinfo Sat Jan 07 06:47:10 2006 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/01/07 06:47:10 schmonz Exp $
+
+SHA1 (tinycdb_0.75.tar.gz) = 8aa11210f1a3fc697a361b5a8223b37fcb084d29
+RMD160 (tinycdb_0.75.tar.gz) = 3d0eba569aea5acd02f7107391262ce6e26b4f1c
+Size (tinycdb_0.75.tar.gz) = 32025 bytes
+SHA1 (patch-aa) = 9d0a87b1caa439764311f1c1cec83ce6c8bf2bda
diff -r 295b1417b724 -r 05dbea4547dd databases/tinycdb/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/tinycdb/patches/patch-aa Sat Jan 07 06:47:10 2006 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.1.1.1 2006/01/07 06:47:10 schmonz Exp $
+
+--- Makefile.orig 2005-08-23 12:22:03.000000000 -0400
++++ Makefile
+@@ -6,14 +6,14 @@
+
+ VERSION = 0.75
+
+-prefix=/usr/local
++prefix=@PREFIX@
+ exec_prefix=$(prefix)
+ bindir=$(exec_prefix)/bin
+ libdir=$(exec_prefix)/lib
+ syslibdir=$(libdir)
+-sysconfdir=/etc
++sysconfdir=@PKG_SYSCONFDIR@
+ includedir=$(prefix)/include
+-mandir=$(prefix)/man
++mandir=$(prefix)/@PKGMANDIR@
+ DESTDIR=
+
+ CC = cc
Home |
Main Index |
Thread Index |
Old Index