summaryrefslogtreecommitdiffstats
path: root/databases/dbtool
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2001-04-29 16:58:46 +0000
committerijliao <ijliao@FreeBSD.org>2001-04-29 16:58:46 +0000
commit5580adb0aa2295ff280ead0bd4ad5bedd9b67375 (patch)
treea2daf7a3cab63538ea4557ae807761213c41bc2b /databases/dbtool
parenta80e9346a289466159691041e973868bdc487c7d (diff)
downloadFreeBSD-ports-5580adb0aa2295ff280ead0bd4ad5bedd9b67375.zip
FreeBSD-ports-5580adb0aa2295ff280ead0bd4ad5bedd9b67375.tar.gz
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/dbtool')
-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
5 files changed, 57 insertions, 0 deletions
diff --git a/databases/dbtool/Makefile b/databases/dbtool/Makefile
new file mode 100644
index 0000000..edc3170
--- /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 0000000..5951738
--- /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 0000000..68bf03a
--- /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 0000000..a4c1c45
--- /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 0000000..398a0aa
--- /dev/null
+++ b/databases/dbtool/pkg-plist
@@ -0,0 +1 @@
+bin/dbtool
OpenPOWER on IntegriCloud