diff options
author | ijliao <ijliao@FreeBSD.org> | 2001-04-30 00:58:46 +0800 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2001-04-30 00:58:46 +0800 |
commit | 5580adb0aa2295ff280ead0bd4ad5bedd9b67375 (patch) | |
tree | a2daf7a3cab63538ea4557ae807761213c41bc2b /databases | |
parent | a80e9346a289466159691041e973868bdc487c7d (diff) | |
download | freebsd-ports-gnome-5580adb0aa2295ff280ead0bd4ad5bedd9b67375.tar.gz freebsd-ports-gnome-5580adb0aa2295ff280ead0bd4ad5bedd9b67375.tar.zst freebsd-ports-gnome-5580adb0aa2295ff280ead0bd4ad5bedd9b67375.zip |
add dbtool
Store and retrieve data in a key/value format in a hash database
ps. thanks Jos Backus <josb@cncdsl.com> for his help on make this port
Diffstat (limited to 'databases')
-rw-r--r-- | databases/Makefile | 1 | ||||
-rw-r--r-- | databases/dbtool/Makefile | 48 | ||||
-rw-r--r-- | databases/dbtool/distinfo | 1 | ||||
-rw-r--r-- | databases/dbtool/pkg-comment | 1 | ||||
-rw-r--r-- | databases/dbtool/pkg-descr | 6 | ||||
-rw-r--r-- | databases/dbtool/pkg-plist | 1 |
6 files changed, 58 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile index 7e7db27214a1..490ebb63eb1c 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -6,6 +6,7 @@ SUBDIR += db3 SUBDIR += dbf2mysql SUBDIR += dbmetrix + SUBDIR += dbtool SUBDIR += dbview SUBDIR += edb SUBDIR += fastdb diff --git a/databases/dbtool/Makefile b/databases/dbtool/Makefile new file mode 100644 index 000000000000..edc3170b3d8a --- /dev/null +++ b/databases/dbtool/Makefile @@ -0,0 +1,48 @@ +# ex:ts=8 +# New ports collection makefile for: dbtool +# Date created: Apr 29, 2001 +# Whom: ijliao +# +# $FreeBSD$ +# + +PORTNAME= dbtool +PORTVERSION= 1.3 +CATEGORIES= databases +MASTER_SITES= ftp://ftp.daemon.de/scip/Apps/dbtool/ + +MAINTAINER= ijliao@FreeBSD.org + +LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre + +.if defined(WITH_BERKELEY_DB) +LIB_DEPENDS+= db3.2:${PORTSDIR}/databases/db +DB_INC= -I${LOCALBASE}/include/db3 +CONFIGURE_ARGS= --with-berkeley +.else +LIB_DEPENDS+= gdbm.2:${PORTSDIR}/databases/gdbm +.endif + +GNU_CONFIGURE= yes +CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib" \ + CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include ${DB_INC}" + +USE_GMAKE= yes + +MAN1= dbtool.1 + +post-extract: +.if !defined(WITH_BERKELEY_DB) + @${ECHO_MSG} + @${ECHO_MSG} " Build with gdbm by default. " + @${ECHO_MSG} " If you want to use BerkeleyDB, you can build with WITH_BERKELEY_DB=yes" + @${ECHO_MSG} +.endif + +post-patch: +.for file in dbtool.h engine.cc main.cc + @${PERL} -pi -e "s,stdin,input,g" ${WRKSRC}/${file} +.endfor + @${PERL} -pi -e "s,==,=,g" ${WRKSRC}/configure + +.include <bsd.port.mk> diff --git a/databases/dbtool/distinfo b/databases/dbtool/distinfo new file mode 100644 index 000000000000..59517380573f --- /dev/null +++ b/databases/dbtool/distinfo @@ -0,0 +1 @@ +MD5 (dbtool-1.3.tar.gz) = cdc9550e0632feb74f4dff6220a52a42 diff --git a/databases/dbtool/pkg-comment b/databases/dbtool/pkg-comment new file mode 100644 index 000000000000..68bf03a8a521 --- /dev/null +++ b/databases/dbtool/pkg-comment @@ -0,0 +1 @@ +Store and retrieve data in a key/value format in a hash database diff --git a/databases/dbtool/pkg-descr b/databases/dbtool/pkg-descr new file mode 100644 index 000000000000..a4c1c45780ee --- /dev/null +++ b/databases/dbtool/pkg-descr @@ -0,0 +1,6 @@ +dbtool can be used to store and retrieve data in a key/value format in a +hash database. Perl compatible regular expressions are supported both for +storing and retrieving of data. It's main advantages are the ability to +maintain huge amounts of data and speed. + +WWW: http://www.daemon.de/dbtool/ diff --git a/databases/dbtool/pkg-plist b/databases/dbtool/pkg-plist new file mode 100644 index 000000000000..398a0aad5a9e --- /dev/null +++ b/databases/dbtool/pkg-plist @@ -0,0 +1 @@ +bin/dbtool |