Source install to look like installed package
Matthew Seaman
m.seaman at infracaninophile.co.uk
Wed Sep 17 05:49:44 UTC 2008
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 258 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20080917/203d7372/signature.pgp
More information about the freebsd-ports
mailing list