@unexec equivalent in Makefile ?
Ion-Mihai Tetcu
itetcu at people.tecnik93.com
Wed Feb 16 08:53:09 PST 2005
On Wed, 16 Feb 2005 10:42:04 -0600
Scot Hetzel <swhetzel at gmail.com> wrote:
> On Wed, 16 Feb 2005 15:42:12 +0200, Ion-Mihai Tetcu
> <itetcu at people.tecnik93.com> 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.
> >
> You don't need to worry about deinstall targets in the Makefile, as
> pkg_delete is called to remove your port.
>
> Just place an @unexec to remove the file in the ports pkg-plist, for
[ ... ]
Thanks, I do it like that in mail/dspam* ports.
--
IOnut
Unregistered ;) FreeBSD "user"
More information about the freebsd-ports
mailing list