From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Dec 4 14:20:05 2007 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 41C3616A41B for ; Tue, 4 Dec 2007 14:20:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3206813C43E for ; Tue, 4 Dec 2007 14:20:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id lB4EK4wW079156 for ; Tue, 4 Dec 2007 14:20:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id lB4EK434079155; Tue, 4 Dec 2007 14:20:04 GMT (envelope-from gnats) Date: Tue, 4 Dec 2007 14:20:04 GMT Message-Id: <200712041420.lB4EK434079155@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Romain =?iso-8859-1?Q?Tarti=E8re?= Cc: Subject: Re: ports/118397: New Port: ports-mgmt/pkg_search - A nifty script searching the ports database X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Romain =?iso-8859-1?Q?Tarti=E8re?= List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Dec 2007 14:20:05 -0000 The following reply was made to PR ports/118397; it has been noted by GNATS. From: Romain =?iso-8859-1?Q?Tarti=E8re?= To: bug-followup@FreeBSD.org, schmidtm@mathematik.uni-marburg.de Cc: Subject: Re: ports/118397: New Port: ports-mgmt/pkg_search - A nifty script searching the ports database Date: Tue, 4 Dec 2007 14:52:52 +0100 --Izn7cH1Com+I3R9J Content-Type: multipart/mixed; boundary="wzJLGUyc3ArbnUjN" Content-Disposition: inline --wzJLGUyc3ArbnUjN Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Index filename depends on which FreeBSD version you are running. The attached patch attempt to auto-detect this name instead of relying on a hard coded value. --=20 Romain Tarti=E8re http://romain.blogreen.org/ pgp: 8DAB A124 0DA4 7024 F82A E748 D8E9 A33F FF56 FF43 (ID: 0xFF56FF43) (plain text =3Dnon-HTML=3D PGP/GPG encrypted/signed e-mail much appreciated) --wzJLGUyc3ArbnUjN Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch-pkg_search Content-Transfer-Encoding: quoted-printable --- pkg_search.orig 2007-12-04 14:36:08.000000000 +0100 +++ pkg_search 2007-12-04 14:36:23.000000000 +0100 @@ -27,7 +27,7 @@ =20 if [ `uname -s` =3D "FreeBSD" ]; then PORTSDIR=3D/usr/ports - INDEXFILE=3DINDEX-6 + INDEXFILE=3DINDEX-`uname -r | sed -E 's/^([0-9]+).*$/\1/'` elif [ `uname -s` =3D "DragonFly" ]; then PORTSDIR=3D/usr/pkgsrc INDEXFILE=3DINDEX --wzJLGUyc3ArbnUjN-- --Izn7cH1Com+I3R9J Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHVVu02OmjP/9W/0MRAn0/AJ9EqJLbBCb1vDhuY0JlIMdUGvD2wQCaA7b6 +0603nXBt40Dmeypl8n5CoM= =X73u -----END PGP SIGNATURE----- --Izn7cH1Com+I3R9J--