summaryrefslogtreecommitdiffstats
path: root/databases/tinycdb
diff options
context:
space:
mode:
authornork <nork@FreeBSD.org>2003-04-04 21:02:50 +0000
committernork <nork@FreeBSD.org>2003-04-04 21:02:50 +0000
commitbfdf084524807fab0f4b092c63c5e528032cd0ce (patch)
treefef46e363d78a10ea98889b66d9a91d63cab2a96 /databases/tinycdb
parent0e0d6ab9a7f46987a5867178d00c25bb5fe27286 (diff)
downloadFreeBSD-ports-bfdf084524807fab0f4b092c63c5e528032cd0ce.zip
FreeBSD-ports-bfdf084524807fab0f4b092c63c5e528032cd0ce.tar.gz
Fix tinycdb dosen't work.
PR: ports/48857 Submitted by: Kimura Fuyuki <fuyuki@hadaly.org>
Diffstat (limited to 'databases/tinycdb')
-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 1cf1f12..56c67af 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 0000000..5b44c51
--- /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 0c253e6..2d51421 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
OpenPOWER on IntegriCloud