Francisco Reyes wrote:
Where could I find the structure of an installed port?
The plist format is documented in pkg_create(1) -- that's the bulk of what you need. pkg_add(1) contains most of the rest.
I am trying to take an existing binary install and make it appear as an installed package to facilitate uninstall.It is the FreePascal install script. Although we have a a port, it usually is behind. The existing script basically just untars some binaries to a user selected directory.
You mean you want to generate a /var/db/pkg/portname-1.2.3 directory with appropriate contents so you can wrangle a bunch of files already on your hard drive as if they were a port? Actually, that's pretty much what the ports system does when you do an install from source. Check out the commands the 'do-package' target runs as shown in /usr/ports/Mk/bsd.port.mk Alternatively, and something which is a lot simpler: if all you want is to cleanly dispose of files installed outside the ports system and there is already a port of the software you want, then just do a forced install of the port on top of the existing files, and then pkg_delete the port. This should get rid of the vast majority if not all of those files. Submitting PRs with updates to bring the FreePascal port up to date will earn you karma points... Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW
signature.asc
Description: OpenPGP digital signature