|
NAMEportindex -- generate an INDEX file from cached dataSYNOPSISportindex [-hvqwWL] [-c dir] [-C file] [-T file] [-o file]DESCRIPTIONportindex processes the cached port description data into the INDEX-7, INDEX-8 or INDEX-9 files used by the ports system. The cache contains a record of the one-line description of all ports generated by "make describe", indexed by the port origin directory. It also contains a record of the master-slave relationships between some ports and of which Makefiles are included by the port's Makefile, but that information is not used by portindex.The processing done by portindex consists of two phases. When generating an INDEX, in the first phase the various direct dependencies listed in the raw "make describe" output (FETCH_DEPENDS, EXTRACT_DEPENDS, PATCH_DEPENDS, BUILD_DEPENDS, RUN_DEPENDS, LIB_DEPENDS) are accumulated with the (previously accumulated) RUN_DEPENDS list for each dependency target. Thus, for example, the final BUILD_DEPENDS dependency list will contain everything that the port depends on directly to build itself, plus all of the dependencies required for those build tools to run. In the second phase the accumulated dependencies are converted from lists of port origins to lists of package names, including version numbers. The data is already sorted, by virtue of the way the Btree cache files operate, so all that remains is to format it tidily and print it out. The processing done when generating a SHLIBS file is very similar, but in this case only the "LIB_DEPENDS" variable is considered, and library dependencies are accumulated and printed out as the list of ports providing the shared libraries depended on. Configuration Filesportindex shares configuration files with cache-init, cache-update and find-updated. Any configuration settings are taken from the following locations, where the later items on this list override the earlier:
All of the configuration files are optional. A summary of the resultant configuration options including the effect of any command line settings is printed as part of the help text when portindex is invoked with the "-h" option. OPTIONS
FILES
SEE ALSOcache-init(1), cache-update(1), find-updated(1), cvsup(1), ports(7)BUGSThe INDEX file produced by portindex will not be identical to the result of running "make index" from the same ports tree. However, the differences are mostly cosmetic and seem to have no practical impact.The sort order of the entries in the generated INDEX file is generated as a side effect of the way that BDB Btree files work. It is not eactly the same as produced by the sorting methods used in "make index". For example, in portindex, "x11-clocks", "x11-fm", "x11-themes", "x11-toolkits" and "x11-wm" will all sort before "x11", whereas usually they would sort after. portindex uses the port origin as its unique key in the data cache. "make index" uses the package name. Since certain ports modify their package name depending on the local settings and conditions, this can lead to package name collisions. Such collisions are weeded out of the generated INDEX file by "make index", but not by portindex. Unless the "--crunch-whitespace" option is given, portindex extracts the "COMMENT" lines from the "make describe" output exactly as shown. "make index" collapses multiple spaces to single.
Visit the GSP FreeBSD Man Page Interface. |