Date: Wed, 16 Feb 2005 18:53:01 +0200 From: Ion-Mihai Tetcu <itetcu@people.tecnik93.com> To: Scot Hetzel <swhetzel@gmail.com> Cc: ports@freebsd.org Subject: Re: @unexec equivalent in Makefile ? Message-ID: <20050216185301.51d621b5@it.buh.cameradicommercio.ro> In-Reply-To: <790a9fff050216084266bb5a40@mail.gmail.com> References: <20050216154212.55c3fe88@it.buh.cameradicommercio.ro> <790a9fff050216084266bb5a40@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 16 Feb 2005 10:42:04 -0600 Scot Hetzel <swhetzel@gmail.com> wrote: > On Wed, 16 Feb 2005 15:42:12 +0200, Ion-Mihai Tetcu > <itetcu@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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050216185301.51d621b5>