Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

14
databases/tinycdb/DESCR Normal file
View File

@@ -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.

View File

@@ -0,0 +1,34 @@
# $NetBSD: Makefile,v 1.8 2013/02/27 12:38:12 ryoon Exp $
#
DISTNAME= tinycdb-0.78
CATEGORIES= databases
MASTER_SITES= http://www.corpit.ru/mjt/tinycdb/
MAINTAINER= ryoon@NetBSD.org
HOMEPAGE= http://www.corpit.ru/mjt/tinycdb.html
COMMENT= Create and read constant databases
LICENSE= public-domain
CONFLICTS+= cdb-[0-9]*
USE_LIBTOOL= yes
USE_LANGUAGES= c
MAKE_FILE= BSDmakefile
PKGCONFIG_OVERRIDE+= libcdb.pc
INSTALLATION_DIRS+= lib/pkgconfig
SUBST_CLASSES+= paths
SUBST_STAGE.paths= pre-configure
SUBST_FILES.paths= libcdb.pc
SUBST_VARS.paths= PREFIX
SUBST_MESSAGE.paths= Configuring pkgsrc paths.
post-install:
${INSTALL_DATA} ${WRKSRC}/libcdb.pc \
${DESTDIR}${PREFIX}/lib/pkgconfig
.include "../../mk/bsd.pkg.mk"

9
databases/tinycdb/PLIST Normal file
View File

@@ -0,0 +1,9 @@
@comment $NetBSD: PLIST,v 1.4 2013/02/27 12:38:12 ryoon Exp $
bin/cdb
include/cdb.h
lib/libcdb.la
lib/libcdb_pic.la
lib/pkgconfig/libcdb.pc
man/man1/cdb.1
man/man3/cdb.3
man/man5/cdb.5

View File

@@ -0,0 +1,12 @@
# $NetBSD: buildlink3.mk,v 1.7 2010/09/11 08:26:04 obache Exp $
BUILDLINK_TREE+= tinycdb
.if !defined(TINYCDB_BUILDLINK3_MK)
TINYCDB_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.tinycdb+= tinycdb>=0.77
BUILDLINK_PKGSRCDIR.tinycdb?= ../../databases/tinycdb
.endif # TINYCDB_BUILDLINK3_MK
BUILDLINK_TREE+= -tinycdb

View File

@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.5 2013/02/27 12:38:12 ryoon Exp $
SHA1 (tinycdb-0.78.tar.gz) = ade42ee1e7c56f66a63cb933206c089b9983adba
RMD160 (tinycdb-0.78.tar.gz) = d37c3d35f687574def9e5a161bcdd5ae9a7da4d0
Size (tinycdb-0.78.tar.gz) = 36754 bytes
SHA1 (patch-BSDmakefile) = ed40d49b094c56d9f2cea8688e6446035a866f01
SHA1 (patch-libcdb.pc) = c4e027ab43ce21320c8c81c7a325108fa2aa4fb9

View File

@@ -0,0 +1,62 @@
$NetBSD: patch-BSDmakefile,v 1.1 2013/02/27 12:38:12 ryoon Exp $
--- BSDmakefile.orig 2012-12-19 17:49:56.000000000 +0000
+++ BSDmakefile
@@ -0,0 +1,57 @@
+# Makefile for libtoolized tinycdb
+# based on tinycdb's Makefile
+
+VERSION= 0.78
+
+CFLAGS+= -D_FILE_OFFSET_BITS=64
+
+
+OBJS= cdb_init.o cdb_find.o cdb_findnext.o cdb_seq.o cdb_seek.o \
+ cdb_unpack.o \
+ cdb_make_add.o cdb_make_put.o cdb_make.o cdb_hash.o
+LOBJS= ${OBJS:R:S/$/.lo/g}
+
+
+all: libcdb.la libcdb_pic.la cdb
+install: install-man install-prog install-lib install-header
+
+.SUFFIXES: .c .lo
+
+.c.lo:
+ ${LIBTOOL} --tag=CC --mode=compile ${CC} -c ${CFLAGS} -o ${.TARGET} ${.IMPSRC}
+
+libcdb.la: ${LOBJS}
+ ${LIBTOOL} --tag=CC --mode=link ${CC} ${LDFLAGS} ${CFLAGS} -o ${.TARGET} \
+ ${LOBJS} -version-info 1 -rpath ${PREFIX}/lib
+
+libcdb_pic.la: ${LOBJS}
+ ${LIBTOOL} --tag=CC --mode=link ${CC} ${LDFLAGS} ${CFLAGS} -fPIC -o ${.TARGET} \
+ ${LOBJS} -version-info 1 -rpath ${PREFIX}/lib
+
+cdb: cdb.lo libcdb.la
+ ${LIBTOOL} --tag=CC --mode=link ${CC} ${LDFLAGS} ${CFLAGS} -o ${.TARGET} \
+ cdb.lo libcdb.la -rpath ${PREFIX}/lib
+
+install-man:
+ ${BSD_INSTALL_MAN_DIR} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+ ${BSD_INSTALL_MAN_DIR} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3
+ ${BSD_INSTALL_MAN_DIR} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
+ ${BSD_INSTALL_MAN} cdb.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+ ${BSD_INSTALL_MAN} cdb.3 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3
+ ${BSD_INSTALL_MAN} cdb.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
+
+install-prog:
+ ${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
+ ${LIBTOOL} --mode=install ${BSD_INSTALL_PROGRAM} cdb \
+ ${DESTDIR}${PREFIX}/bin
+
+install-lib:
+ ${BSD_INSTALL_LIB_DIR} ${DESTDIR}${PREFIX}/lib
+ ${LIBTOOL} --mode=install ${BSD_INSTALL_LIB} libcdb.la \
+ ${DESTDIR}${PREFIX}/lib
+ ${LIBTOOL} --mode=install ${BSD_INSTALL_LIB} libcdb_pic.la \
+ ${DESTDIR}${PREFIX}/lib
+
+install-header:
+ ${BSD_INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include
+ ${BSD_INSTALL_DATA} cdb.h ${DESTDIR}${PREFIX}/include

View File

@@ -0,0 +1,17 @@
$NetBSD: patch-libcdb.pc,v 1.1 2013/02/27 12:38:12 ryoon Exp $
--- libcdb.pc.orig 2012-12-19 17:50:14.000000000 +0000
+++ libcdb.pc
@@ -0,0 +1,12 @@
+# Package Information for pkg-config
+
+prefix=@PREFIX@
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: libcdb
+Description: tinycdb - Constant Data Base library
+Version: 0.78
+Libs: -L${libdir} -lcdb
+Cflags: -I${includedir}