From owner-freebsd-ports Sun May 30 9:49: 3 1999 Delivered-To: freebsd-ports@freebsd.org Received: from smtp11.bellglobal.com (smtp11.bellglobal.com [204.101.251.53]) by hub.freebsd.org (Postfix) with ESMTP id 9747B15105 for ; Sun, 30 May 1999 09:48:49 -0700 (PDT) (envelope-from vanderh@ecf.toronto.edu) Received: from localhost.nowhere (ppp18354.on.bellglobal.com [206.172.130.34]) by smtp11.bellglobal.com (8.8.5/8.8.5) with ESMTP id MAA12059; Sun, 30 May 1999 12:51:34 -0400 (EDT) Received: (from tim@localhost) by localhost.nowhere (8.9.3/8.9.1) id MAA05263; Sun, 30 May 1999 12:49:03 -0400 (EDT) (envelope-from tim) Date: Sun, 30 May 1999 12:49:02 -0400 From: Tim Vanderhoek To: blokey@indigo.ie Cc: ports@freebsd.org Subject: Re: updating ports system Message-ID: <19990530124902.A5186@mad> References: <19990530143036.A57891@smooch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95i In-Reply-To: <19990530143036.A57891@smooch>; from blokey@indigo.ie on Sun, May 30, 1999 at 02:30:36PM +0100 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sun, May 30, 1999 at 02:30:36PM +0100, blokey@indigo.ie wrote: > > Is there any work being done with regards to the ports system? Are people for > example implementing a mechanism that lets you check if an older version of a > package exists before installing a new one over it (for example sometimes I This doesn't sound too hard at all. Add an appropriate .if make(install) to the top of the _PORT_USE section of bsd.port.mk that checks to see if the port is installed. You already have the variable ${PKGBASE} defined for you. Use the pkg_info(1) command to see if the port is installed (you could go grokking through PKG_DB_DIR yourself, too, although that's perhaps a little less preferable). If so, print a message advising the user to delete the old one. You might need to be careful about searching for the $PKGBASE "ref" and accidentally finding "referree"... Ideally, pkg_add(1) would be modified to include a similar warning. This wouldn't be a very hard modification for someone just becoming familiar with the system to make. We'll be expecting patches in two weeks. :-) > deleted and one unusable port). I know some ports actually do check for this > kind of thing but surely it should be standardised. They do!?! Ugh. -- This is my .signature which gets appended to the end of my messages. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message