From owner-freebsd-questions Tue Jan 18 14:45:50 2000 Delivered-To: freebsd-questions@freebsd.org Received: from aragorn.neomedia.it (aragorn.neomedia.it [195.103.207.6]) by hub.freebsd.org (Postfix) with ESMTP id 33F3514CF1 for ; Tue, 18 Jan 2000 14:45:44 -0800 (PST) (envelope-from bartequi@nojunk.com) Received: from bartequi.ottodomain.org (ppp9-pa4.neomedia.it [195.103.207.201]) by aragorn.neomedia.it (8.9.3/8.9.3) with SMTP id XAA04958; Tue, 18 Jan 2000 23:45:40 +0100 (CET) From: Salvo Bartolotta Date: Tue, 18 Jan 2000 22:47:24 GMT Message-ID: <20000118.22472400@bartequi.ottodomain.org> Subject: Re: making deinstall: bsd.port.mk (was: can't make certain ports) To: freebsd-questions@FreeBSD.ORG, brett@peloton.runet.edu, jcm@dogma.freebsd-uk.eu.org References: <20000118.18060400@bartequi.ottodomain.org> X-Mailer: Supercalifragilis X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Dear Brett Taylor and Jonathon McKitrick, > just to split hairs: > make deinstall ~ pkg_delete -f port_package(s)_listed_in_the_PLIST > where " ~ " reads "equivalent to". > In a freshly updated port, the package(s) in question is(are) the > *new* > package(s) - not yet made. This is bsd.port.mk replying to me :-) ################################################################# # These variables are used to identify your port. # # DISTNAME - Name of port or distribution. # PKGNAME - Name of the package file to create if the DISTNAME # isn't really relevant for the port/package # (default: ${DISTNAME}). # CATEGORIES - A list of descriptive categories into which this port falls. [omissis ...] # Deinstall # # Special target to remove installation .if !target(deinstall) deinstall: @${ECHO_MSG} "=3D=3D=3D> Deinstalling for ${PKGNAME}" @${PKG_DELETE} -f ${PKGNAME} @${RM} -f ${INSTALL_COOKIE} ${PACKAGE_COOKIE} .endif ################################################################ From my KDE-1.1.2 metaport makefile: New ports collection makefile for: kde # Version required: around November 1997 # Date created: 4 November 1997 # Whom: Satoshi Asami # # $FreeBSD: ports/x11/kde11/Makefile,v 1.24 1999/09/18 09:02:09 se Exp $ # DISTNAME=3D kde-1.1.2 CATEGORIES=3D x11 kde MASTER_SITES=3D # empty DISTFILES=3D # empty From my KDE-1.1.2 kdebase port: # New ports collection makefile for: kdebase # Version required: 1.0 # Date created: 28 October 1997 # Whom: Stefan E=DFer # # $FreeBSD: ports/x11/kdebase11/Makefile,v 1.41 1999/12/07 15:46:35 imura Exp $ # DISTNAME=3D kdebase-1.1.2 CATEGORIES=3D x11 kde and so on for KDE-1.1.2 components. That is why e.g. KDE-1.1.2 tries to uninstall the *new* packages (ie 1.1.2); which occurs if one has e.g. KDE-1.1.1. Unless I've made an awful blunder and misunderstood it all ... Best regards, Salvo To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message