ports/118397: New Port: ports-mgmt/pkg_search - A nifty script searching the ports database
Romain Tartière
romain at blogreen.org
Tue Dec 4 14:20:05 UTC 2007
The following reply was made to PR ports/118397; it has been noted by GNATS.
From: Romain =?iso-8859-1?Q?Tarti=E8re?= <romain at blogreen.org>
To: bug-followup at FreeBSD.org, schmidtm at 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 <romain at blogreen.org> 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--
More information about the freebsd-ports-bugs
mailing list