aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--databases/tinycdb/Makefile1
-rw-r--r--databases/tinycdb/files/patch-cdb.c11
-rw-r--r--databases/tinycdb/pkg-descr2
3 files changed, 14 insertions, 0 deletions
diff --git a/databases/tinycdb/Makefile b/databases/tinycdb/Makefile
index 1cf1f12ac0d3..56c67af3bdac 100644
--- a/databases/tinycdb/Makefile
+++ b/databases/tinycdb/Makefile
@@ -8,6 +8,7 @@
PORTNAME= tinycdb
PORTVERSION= 0.73
+PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= ftp://ftp.corpit.ru/pub/tinycdb/
diff --git a/databases/tinycdb/files/patch-cdb.c b/databases/tinycdb/files/patch-cdb.c
new file mode 100644
index 000000000000..5b44c5118642
--- /dev/null
+++ b/databases/tinycdb/files/patch-cdb.c
@@ -0,0 +1,11 @@
+--- cdb.c.orig Mon Dec 10 06:18:02 2001
++++ cdb.c Mon Mar 3 08:38:57 2003
+@@ -144,7 +144,7 @@
+ if (printf(mode == 'd' ? "+%u,%u:" : "+%u:", klen, vlen) < 0) return -1;
+ if (fcpy(f, stdout, klen, &pos, eod) != 0) return -1;
+ if (mode == 'd')
+- if (!fputs(flags & F_MAP ? " " : "->", stdout))
++ if (fputs(flags & F_MAP ? " " : "->", stdout) == EOF)
+ return -1;
+ if (fcpy(f, mode == 'd' ? stdout : NULL, vlen, &pos, eod) != 0)
+ return -1;
diff --git a/databases/tinycdb/pkg-descr b/databases/tinycdb/pkg-descr
index 0c253e67973a..2d5142141be7 100644
--- a/databases/tinycdb/pkg-descr
+++ b/databases/tinycdb/pkg-descr
@@ -1,3 +1,5 @@
It is analogous to cdb from D.J.Berstein, but written completely from scratch,
has some functionality removed and some new added compared to DJB's one, a bit
faster, and much easier to use (only one library needed at link time).
+
+WWW: http://www.corpit.ru/mjt/tinycdb.html