mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
ca09eb424c
the Himalayas and become a hermit.) Import new mknetid program. This replaces the crufty, soon to be defunct mknetid script packaged with ypserv. This program parses the group, passwd, hosts and netid databases into the netid.byname map. Duplicate checking is performed using hash tables. Testing on my 486DX2/66 with FreeBSD 2.1.0 showed that this program can process a 30,000-entry passwd database into a netid map (along with assorted group and hosts information) in about 22 seconds. On my SPARC IPX with SunOS 4.1.3, it takes about 15 seconds. This compares favorably with the SunOS mknetid program, which parses the same database(s) in 13 seconds. (With smaller databases, my program is actually slightly faster. Go figure.)
8 lines
147 B
Makefile
8 lines
147 B
Makefile
# $Id: Makefile,v 1.1 1996/06/24 00:05:28 wpaul Exp $
|
|
|
|
PROG= mknetid
|
|
SRCS= mknetid.c hash.c parse_group.c
|
|
|
|
MAN8= mknetid.8
|
|
|
|
.include <bsd.prog.mk>
|