cvs commit: src/share/mk bsd.pkg.mk bsd.prog.mk
Ruslan Ermilov
ru at FreeBSD.org
Tue Dec 21 02:33:38 PST 2004
Hi Colin,
On Tue, Dec 21, 2004 at 02:20:19AM -0800, Colin Percival wrote:
> My earlier mailing list post is here:
> http://docs.freebsd.org/cgi/mid.cgi?6.0.1.1.1.20040316023919.039fa5f0
> and the URL given for my patches is still valid.
>
> Essentially my approach was to override ${INSTALL} in order to generate
> a list of the files installed and who was installing them (using a single
> variable which would be set in appropriate makefiles). This allowed me
> to generate packaging lists for the individual parts of the base system,
> which I then registered in /var/db/pkg.
>
> Keep in mind that my original purpose was to allow parts of the base
> system to be removed (using pkg_delete), but given the plists I could
> equally have built packages instead.
>
Just overriding INSTALL is not enough -- a lot of things is installed
through (sym)linking, and this is *not* handled by install(1) at the
moment. This is only the most obvious, but keep in mind that some
files are installed using special tools. Let me know if you want some
real world examples.
Mark Murray once suggested that I implement "make uninstall" which
would be an opposite of "make install". I may someday implement it.
Cheers,
--
Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20041221/3e092916/attachment.bin
More information about the cvs-src
mailing list