Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jan 2000 22:47:24 GMT
From:      Salvo Bartolotta <bartequi@nojunk.com>
To:        freebsd-questions@FreeBSD.ORG, brett@peloton.runet.edu, jcm@dogma.freebsd-uk.eu.org
Subject:   Re: making deinstall: bsd.port.mk  (was: can't make certain ports) 
Message-ID:  <20000118.22472400@bartequi.ottodomain.org>
References:  <Pine.BSF.4.10.10001181015400.2692-100000@peloton.runet.edu> <20000118.18060400@bartequi.ottodomain.org>

next in thread | previous in thread | raw e-mail | index | archive | help
>  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 <asami@FreeBSD.org>
#
# $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 <se@freebsd.org>
#
# $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




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