ypmake(8yp)
NAME
ypmake − rebuild yellow pages database using the make command
SYNTAX
cd /etc/yp
make [ options ] [ map ]
DESCRIPTION
The make command uses the /etc/yp/Makefile to build the yellow pages database. With no arguments, make creates dbm databases for any YP maps that are out-of-date, and then executes yppush() to notify slave databases that there has been a change. It is important to note that the ypmake command should only be executed at a YP master server machine. If it is executed from either a slave server or a pure YP client machine, the created changes will only be overwritten when the next YP master server machine update, via ypxfr, is performed.
The options argument can be used to change the default values of three special variables used by make: DIR, NOPUSH, and DOM. The DIR variable instructs make to give the directory of the source files. The NOPUSH variable, which when non-null, inhibits updating of the new data base files using the yppush() function. The DOM variable, instructs make to construct a domain other than the master’s default domain. The default for DIR is /etc, and the default for NOPUSH is the null string. To change the default values of these special variables, an options argument format of special_variable = value is used. An example is provided under the EXAMPLE heading.
The map argument supplied on the command line instructs make to update only the specified map. The specified maps are those located at /etc/yp/{domain}, where {domain} is the Yellow Pages domain name. Some typical entries for the map argument are passwd, hosts, and networks. Typing: make passwd causes make to create and, assuming it is out of date, to update the YP password database. The make command updates the password data base using yppush(.). Therefore, typing
make host
or
make networks
causes make to create and to update the host and network files, /etc/hosts and /etc/networks respectively.
See ypfiles() and ypserv() for an overview of the yellow pages.
EXAMPLE
make DOM=NewDomain passwd
This example causes make to create a password yellow pages map for the domain NewDomain instead of for the default domain.
SEE ALSO
make(1), makedbm(8yp), ypserv(8yp), yppush(8yp)
Maintenance