From owner-freebsd-ports@freebsd.org Sat Jun 3 20:59:45 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A9D07BF904C for ; Sat, 3 Jun 2017 20:59:45 +0000 (UTC) (envelope-from adamw@adamw.org) Received: from apnoea.adamw.org (apnoea.adamw.org [104.225.5.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "apnoea.adamw.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3792C7DDF1 for ; Sat, 3 Jun 2017 20:59:44 +0000 (UTC) (envelope-from adamw@adamw.org) Received: by apnoea.adamw.org (OpenSMTPD) with ESMTPSA id a89354e9 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Sat, 3 Jun 2017 14:59:37 -0600 (MDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: Finding depends-on ports From: Adam Weinberger In-Reply-To: <20170603234451.37318f11@rsbsd> Date: Sat, 3 Jun 2017 14:59:36 -0600 Cc: freebsd-ports@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20170602221856.5f239d23@rsbsd> <20170603234451.37318f11@rsbsd> To: Beeblebrox X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jun 2017 20:59:45 -0000 > On 3 Jun, 2017, at 14:44, Beeblebrox via freebsd-ports = wrote: >=20 > Thanks Matt for the suggestion, INDEX is a very good idea >=20 > I am unable to figure out how to map package name to port name though > as INDEX does not store origins. Any suggestions? freshports.org lists all ports that depend on a specific port, which = might make things simpler for you. INDEX does store origins---it's the second field. Loop on dependency = packages and grep for lines that start with that package name, and cut = the second field. # Adam --=20 Adam Weinberger adamw@adamw.org https://www.adamw.org