Date: Wed, 16 Feb 2005 16:38:57 +0100 From: Florent Thoumie <flz@xbsd.org> To: Ion-Mihai Tetcu <itetcu@people.tecnik93.com> Cc: ports@FreeBSD.ORG Subject: Re: @unexec equivalent in Makefile ? Message-ID: <42136911.308@xbsd.org> In-Reply-To: <20050216154212.55c3fe88@it.buh.cameradicommercio.ro> References: <20050216154212.55c3fe88@it.buh.cameradicommercio.ro>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigAD8599E2582B64C4234E534E Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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@xbsd.org --------------enigAD8599E2582B64C4234E534E Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCE2kWMxEkbVFH3PQRAjyyAJ9vDtrkKXSghc5VBZyfQRU+v58ZpQCfZ3XO 5UEPSmSmABON5ul5tG4N+EU= =QYKz -----END PGP SIGNATURE----- --------------enigAD8599E2582B64C4234E534E--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42136911.308>