mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
FreeBSD port of the NetBSD db(1) command.
manipulate db(3)'s btree(3) and hash(3) databases Submitted by: edwin@mavetju.org
This commit is contained in:
parent
13bea7e9f9
commit
7a6314056c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=97119
@ -9,6 +9,7 @@
|
||||
SUBDIR += cdb
|
||||
SUBDIR += clip
|
||||
SUBDIR += cyrus-imspd
|
||||
SUBDIR += db
|
||||
SUBDIR += db2
|
||||
SUBDIR += db3
|
||||
SUBDIR += db4
|
||||
|
21
databases/db/Makefile
Normal file
21
databases/db/Makefile
Normal file
@ -0,0 +1,21 @@
|
||||
# New ports collection makefile for: db-netbsd
|
||||
# Date created: 1 January 2004
|
||||
# Whom: Edwin Groothuis (edwin@mavetju.org)
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= db
|
||||
PORTVERSION= 1.11
|
||||
CATEGORIES= databases
|
||||
MASTER_SITES= http://www.mavetju.org/download/
|
||||
|
||||
MAINTAINER= edwin@mavetju.org
|
||||
COMMENT= Manipulate db(3)'s btree(3) and hash(3) databases - NetBSD port
|
||||
|
||||
MAN1= db.1
|
||||
MANCOMPRESSED= yes
|
||||
|
||||
MAKE_ENV= BINDIR=${PREFIX}/bin SHAREDIR=${PREFIX}
|
||||
|
||||
.include <bsd.port.mk>
|
1
databases/db/distinfo
Normal file
1
databases/db/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (db-1.11.tar.gz) = 2a230f51506fe313ec557a5bb07069b2
|
60
databases/db/files/patch-db.c
Normal file
60
databases/db/files/patch-db.c
Normal file
@ -0,0 +1,60 @@
|
||||
--- db.c.orig Sat Jan 3 08:43:09 2004
|
||||
+++ db.c Sat Jan 3 08:43:43 2004
|
||||
@@ -90,7 +90,6 @@
|
||||
DB *db;
|
||||
char *outputsep = "\t";
|
||||
int encflags = 0;
|
||||
-char *extra_echars = NULL;
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
@@ -120,7 +119,7 @@
|
||||
|
||||
/* parse arguments */
|
||||
while ( (ch = getopt(argc, argv,
|
||||
- "CDdE:F:f:iKm:NO:qRS:T:U:VwX:")) != -1) {
|
||||
+ "CDdE:F:f:iKm:NO:qRS:T:U:Vw")) != -1) {
|
||||
switch (ch) {
|
||||
|
||||
case 'C':
|
||||
@@ -224,10 +223,6 @@
|
||||
flags |= F_WRITE;
|
||||
break;
|
||||
|
||||
- case 'X':
|
||||
- extra_echars = optarg;
|
||||
- break;
|
||||
-
|
||||
default:
|
||||
usage();
|
||||
|
||||
@@ -548,11 +543,7 @@
|
||||
buflen = elen;
|
||||
}
|
||||
*edata = buf;
|
||||
- if (extra_echars) {
|
||||
- return (strsvisx(buf, data, len, encflags, extra_echars));
|
||||
- } else {
|
||||
- return (strvisx(buf, data, len, encflags));
|
||||
- }
|
||||
+ return (strvisx(buf, data, len, encflags));
|
||||
}
|
||||
|
||||
int
|
||||
@@ -625,7 +616,7 @@
|
||||
const char *p = getprogname();
|
||||
|
||||
fprintf(stderr,
|
||||
- "Usage: %s [-KiNqV] [-E end] [-f inf] [-O str] [-S chr] [-T str] [-X str]\n"
|
||||
+ "Usage: %s [-KiNqV] [-E end] [-f inf] [-O str] [-S chr] [-T str] \n"
|
||||
" type dbfile [key [...]]\n"
|
||||
" %s -d [-iNq] [-E end] [-f inf] [-U chr] type dbfile [key [...]]\n"
|
||||
" %s -w [-CDiNqR] [-E end] [-F sep] [-f inf] [-m mod] [-U chr]\n"
|
||||
@@ -653,7 +644,6 @@
|
||||
"\t-T str\toptions to control -S encoding like vis(1) options\n"
|
||||
"\t-U chr\titems to strunvis(3) decode: 'k'ey, 'v'alue, 'b'oth\n"
|
||||
"\t-V\tprint value\n"
|
||||
- "\t-X str\textra characters to encode with -S\n"
|
||||
);
|
||||
exit(1);
|
||||
}
|
3
databases/db/pkg-descr
Normal file
3
databases/db/pkg-descr
Normal file
@ -0,0 +1,3 @@
|
||||
db allows manipulation of btree(3) and hash(3) (db(3)) databases.
|
||||
|
||||
WWW: http://cvsweb.netbsd.org/bsdweb.cgi/src/usr.bin/db/
|
1
databases/db/pkg-plist
Normal file
1
databases/db/pkg-plist
Normal file
@ -0,0 +1 @@
|
||||
bin/db
|
Loading…
Reference in New Issue
Block a user