Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Jan 2001 14:03:58 -0600 (CST)
From:      Mike Meyer <mwm@mired.org>
To:        Edwin Groothuis <mavetju@chello.nl>
Cc:        questions@freebsd.org, dpoland@execpc.com
Subject:   Re: Ports and packages
Message-ID:  <14961.55342.33663.357892@guru.mired.org>
In-Reply-To: <102861776@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
Edwin Groothuis <mavetju@chello.nl> types:
> If you look in the source of the makefiles in the ports-directory
> (/usr/ports/Mk/bsd.ports.mk) and search for ^deinstall, you will
> see that it does nothing more that calling pkg_delete...

Not quite, and that's only the *default* deinstall behavior. The
deinstall target also removes the file that the install target creates
to not that the installation has been done. If you do "make install;
make deinstall; make install", it works just fine. If you do "make
install; pkg_delete <name>; make install" the last install doesn't do
anything, because the ports system thinks that install target has
already been made.

Individual ports can also override "make deinstall". However, they
shouldn't to do anything outside the ports tree that "pkg_delete"
doesn't do.

	<mike
--
Mike Meyer <mwm@mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14961.55342.33663.357892>