summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2001-04-29 16:58:46 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2001-04-29 16:58:46 +0000
commit5ddead828e1f36675409aed0eb2339caf8eff010 (patch)
tree680967dd6b88eeafaa460cb07a1eb23d19b1e34f
parentUpdate to version 1.4 Build 110 (diff)
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
Notes
Notes: svn path=/head/; revision=42036
-rw-r--r--databases/Makefile1
-rw-r--r--databases/dbtool/Makefile48
-rw-r--r--databases/dbtool/distinfo1
-rw-r--r--databases/dbtool/pkg-comment1
-rw-r--r--databases/dbtool/pkg-descr6
-rw-r--r--databases/dbtool/pkg-plist1
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