@unexec equivalent in Makefile ?

Florent Thoumie flz at xbsd.org
Wed Feb 16 07:39:33 PST 2005


Ion-Mihai Tetcu wrote:
> Hi,
>
>
> I have a port that installs 8 files (3 of them being PORTDOCS), so I
> rather not use a pkg-plist file. But I need to remove a .conf file on
> deinstall if it's identical to the distributed one, and I'm not aware of
> a way to do it in the Makefile; we don't have pre|post-deinstall targets
> and using a pkg-deinstall doesn't make sense just for this.

	Since make deinstall calls pkg_delete (which use the packing list)
	to remove files, your choices are (no preference order) :

	x use pkg-plist,
	x echo "@unexec ..." >> ${TMPPLIST} in your Makefile
	x use pkg-install with DEINSTALL target or pkg-deinstall
	x use PLIST_FILES= @unexec ...

	I don't see any other way to do what you want.

--
Florent Thoumie
flz at xbsd.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20050216/ed35da5a/signature.bin


More information about the freebsd-ports mailing list