builds a series of data bases used to monitor installed port status
libPMGR.so.1
PMGRrDbCreate builds data bases whose purpose is to monitor the status of installed ports on a FreeBSD operating system.
The general plan for data base creation is as follows:
All data bases created are located in /var/db. portI.db contains the name of each installed port and directory in the ports tree where it is located. portIP.db contains the name of each installed port, and the name and port tree directory of each port that the installed port requires inorder to be built.
Returns 0 on success, 1 for failure.
On success two brand new shiny dBase files, portI.db and portIP.db will exist in /var/db directory.
C sources PMGRrDbCreate.c PMGRrDbCreate.h
portI.db fields: port dir, port name portIP.db fields: port name, dependency port name, dependency port dir
To call PMGRrDbCreate simply link against libPMGR.so.0 and in your code include "{int returnvalue} = PMGRrDbCreate()". PMGRrDbCreate requires no input parameters. Of course you must have write access to /var/db for it to succeed and if you don't, you will receive the appropriate error message and it'll return with a one.
See examples, you must have write access to /var/db for PMGRrDbCreate to work.
Mojave Green Software Co. Landers Ca Michael C. Shultz