From owner-freebsd-questions@FreeBSD.ORG Mon May 2 15:13:35 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D7BCA16A4CE for ; Mon, 2 May 2005 15:13:35 +0000 (GMT) Received: from smtp2.server.rpi.edu (smtp2.server.rpi.edu [128.113.2.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 631C543D5D for ; Mon, 2 May 2005 15:13:35 +0000 (GMT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp2.server.rpi.edu (8.13.0/8.13.0) with ESMTP id j42FDWG7022004; Mon, 2 May 2005 11:13:33 -0400 Mime-Version: 1.0 Message-Id: In-Reply-To: <42763C51.1080109@computer.org> References: <4273EFF5.8090504@computer.org> <20050430140440.I47465@wolf.pjkh.com> <4273F7D1.4030702@computer.org> <42763C51.1080109@computer.org> Date: Mon, 2 May 2005 11:13:31 -0400 To: Eric Schuele From: Garance A Drosihn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-CanItPRO-Stream: default X-RPI-SA-Score: undef - spam-scanning disabled X-Scanned-By: CanIt (www . canit . ca) on 128.113.2.2 cc: FreeBSD Questions Subject: Re: Determining what a port will install... (more than pretty-print-*) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2005 15:13:36 -0000 At 9:42 AM -0500 5/2/05, Eric Schuele wrote: >Garance A Drosihn wrote: >> >>I believe that 'portupgrade -n' only works right for ports which >>you have already installed. > >Yes... That is the conclusion I have come to. > >I'm sure what I am trying to accomplish is just one savvy shell >script away.... I'm just not that savvy though. If I can't find >something which already does what I'm looking for.... I'll muddle >through writing a script to do it. If there isn't anything which already exists, then I'd try something along the lines of 'cd'-ing into the directory of the port you want to install, and getting the output of: make -V RUN_DEPENDS -V BUILD_DEPENDS -V LIB_DEPENDS (that should give you three lines, some or all of which might be blank lines). Each non-blank line will be of the form "a1:b1 a2:b2 ...", where each "a" is a pathname, and each "b" is a portname. I'll leave it to you to decide where you go from there... You might want to check through: cd /usr/ports/sysutils/port* and see if any of those already do what you want to see done. -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu