2 .\" Copyright (c) 1999, Sun Microsystems, Inc. Copyright 1989 AT&T All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH MAKEDBM 8 "Aug 17, 1999"
8 makedbm \- make a dbm file, or get a text file from a dbm file
12 \fBmakedbm\fR [\fB-b\fR] [\fB-l\fR] [\fB-s\fR] [\fB-E\fR] [\fB-i\fR \fIyp_input_file\fR]
13 [\fB-o\fR \fIyp_output_name\fR] [\fB-d\fR \fIyp_domain_name\fR]
14 [\fB-m\fR \fIyp_master_name\fR] [\fB-S\fR \fIdelimiter\fR]
15 [\fB-D\fR \fInumber_of_delimiters\fR] \fIinfile\fR \fIoutfile\fR
20 \fBmakedbm\fR [\fB-u\fR \fIdbmfilename\fR]
26 The \fBmakedbm\fR utility takes the \fIinfile\fR and converts it to a pair of
27 files in \fBndbm\fR format (see \fBndbm\fR(3C)), namely
28 \fIoutfile\fR\fB\&.pag\fR and \fIoutfile\fR\fB\&.dir.\fR Each line of the input
29 file is converted to a single \fBdbm\fR record. All characters up to the first
30 \fBTAB\fR or \fBSPACE\fR form the key, and the rest of the line is the data. If
31 a line ends with `\e' (backslash), the data for that record is continued on to
32 the next line. \fBmakedbm\fR does not treat `#' (pound-sign) as a special
36 Because \fBmakedbm\fR is mainly used in generating \fBdbm\fR files for the
37 \fBNIS\fR name service, it generates a special entry with the key
38 \fIyp_last_modified\fR, which is the date of \fIinfile\fR (or the current time,
39 if \fIinfile\fR is `\(mi'). The entries that have keys with the prefix
40 \fIyp_\fR are interpreted by \fBNIS\fR server utilities.
44 The following options are supported:
51 Insert the \fBYP_INTERDOMAIN\fR into the output. This key causes
52 \fBypserv\fR(8) to use \fBDNS\fR for host name and address lookups for hosts
53 not found in the maps.
59 \fB\fB-d\fR\fI yp_domain_name\fR\fR
62 Create a special entry with the key \fIyp_domain_name\fR.
68 \fB\fB-D\fR \fInumber_of delimiters\fR\fR
71 Specify \fInumber_of_delimiters\fR to skip before forming the key.
80 Delimiters are escaped.
86 \fB\fB-i\fR\fI yp_input_file\fR\fR
89 Create a special entry with the key \fIyp_input_file\fR.
98 Lower case. Convert the keys of the given map to lower case, so that, for
99 example, host name matches succeed independent of upper or lower case
106 \fB\fB-m\fR\fI yp_master_name\fR\fR
109 Create a special entry with the key \fIyp_master_name\fR. If no master host
110 name is specified, \fIyp_master_name\fR is set to the local host name.
116 \fB\fB-o\fR\fI yp_output_name\fR\fR
119 Create a special entry with the key \fIyp_output_name\fR.
128 Secure map. Accept connections from secure \fBNIS\fR networks only.
134 \fB\fB-S\fR \fIdelimiter\fR\fR
137 Specify the \fIdelimiter\fR to use instead of the default delimiter for forming
144 \fB\fB-u\fR\fI dbmfilename\fR\fR
147 Undo a \fBdbm\fR file. Prints out the file in text format, one entry per line,
148 with a single space separating keys from values.
154 The following operands are supported:
161 Input file for \fBmakedbm\fR. If \fIinfile\fR is `\fB\(mi\fR\&' (dash), the
162 standard input is read.
171 One of two output files in \fBndbm\fR format: \fIoutfile\fR\fB\&.pag\fR and
172 \fIoutfile\fR\fB\&.dir.\fR
178 \fBypserv\fR(8), \fBndbm\fR(3C), \fBattributes\fR(5)