From owner-freebsd-questions@freebsd.org Wed Oct 19 22:59:19 2016 Return-Path: Delivered-To: freebsd-questions@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 B4928C19824 for ; Wed, 19 Oct 2016 22:59:19 +0000 (UTC) (envelope-from freebsd@skysmurf.nl) Received: from mail.skysmurf.nl (spectrum.skysmurf.nl [83.162.175.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.skysmurf.nl", Issuer "mail.skysmurf.nl" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 41372825 for ; Wed, 19 Oct 2016 22:59:18 +0000 (UTC) (envelope-from freebsd@skysmurf.nl) Received: from spectrum.skysmurf.nl (mail.skysmurf.nl [192.168.42.4]) by mail.skysmurf.nl (8.15.2/8.15.2) with SMTP id u9JMgBFW047184; Thu, 20 Oct 2016 00:42:11 +0200 (CEST) (envelope-from freebsd@skysmurf.nl) Received: by spectrum.skysmurf.nl (sSMTP sendmail emulation); Thu, 20 Oct 2016 00:42:11 +0200 Date: Thu, 20 Oct 2016 00:42:11 +0200 From: Alphons van Werven To: Polytropon Cc: "Kevin P. Neal" , freebsd-questions Subject: Re: Is there a curses-based mp3 player available in FreeBSD ? Message-ID: <20161019224211.GA17710@spectrum.skysmurf.nl> References: <44wph473ao.fsf@lowell-desk.lan> <20161019180428.GB37473@neutralgood.org> <20161019203720.3ca646f1.freebsd@edvax.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6c2NcOVqGQ03X4Wi" Content-Disposition: inline In-Reply-To: <20161019203720.3ca646f1.freebsd@edvax.de> X-PGP-Key: http://www.skysmurf.nl/~fonz/fonz_pubkey.asc User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Oct 2016 22:59:19 -0000 --6c2NcOVqGQ03X4Wi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Polytropon wrote: > The use of the "locate" command requires that the corresponding > database has been built (and is up to date). This is not always > the case, especially on "user PCs" due to the database creation > happening when the PC is switched off. ;-) Moreover, "make search" has name=3D... and key=3D... arguments that allow searching for more than just the name of the port. For instance, I once wrote a curses-based mpg123 frontend myself. But it was called FooBox, so something along the lines of % locate -i mp3|grep ports would fail to find it (if it had been in the ports tree, that is). One can also use tools such as find(1) and/or awk(1) to search the ports tree for certain functionality, although some of these methods can be very slow if you're not careful. For example, I do NOT recommend the following: % find /usr/ports -type f -name pkg-descr -exec grep -iH mp3 {} \; Also, awk(1) requires a /usr/ports/INDEX-* file being present and current. If I remember correctly portsnap(8) will update/maintain that file, but if you update your ports tree using SVN or Git you need to run "make index" manually, which can take a sod of a long time. Of course, if one does have access to an X environment and a web browser, there's always FreshPorts ;-) In fact, when you find a port that looks promising and it has a website, you can click straight through and check it out more thoroughly. Fonz --=20 A.J. "Fonz" van Werven Leonard: Our [his and Penny's] babies would be smart *and* beautiful. Sheldon: Not to mention imaginary. -- The Big Bang Theory, season 1 episode 3 --6c2NcOVqGQ03X4Wi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBAgAGBQJYB/bDAAoJEAfP7gJTaCe8tfgP/jOO9AkhuOpODfLlQugBkxEA f03SAsxxhG/zJq9B/iXTT629UOFqAnlPZPC//CFFuLols0QU/XAkOvmQAUuzqj0a Vl17t/v/w95vhGyIBbb7EtwRBnHkWu97amLcgyKk+aHD2LF93qJTLOFxdS3KBWAP UbQDHxBiRQIBssbaX/AtB1J6R2tXdoup3F0EVjSN8pCW08i1muaYaQ/QdghqaUfp lxatcHaqC6/Dw1UfMl3ErzgC+fgnF8k4T8Zyfi7FsFY4fkl0ARbxGg+SREIsf7EI kX08RY5qXFDzTviAs2m/ufG0j+pdHwBILKaVVr+tmR5QUMhSHZQtwq1NG5GG5iS/ 1Pha0WUS+c+clByhEO3AldY+7lsb4CDYM/E76cGxxCdhVOcflzXbUCheCp3TFe+A B06u5cCzVKalGDiESKNtbYG9MzA9TI6wRXGW2fasfMAPc3Pqff1Go12pe0YqZiOh 2o2Wxraa0ScDO39p6zx/EiLkieT/Q+HrZmQckkY0nAAXXSCCLHtTy3Ztjmh2UofL Cs1e5pu5P6gq32O6HgD64YxtpBeJrgU4JjheL/VaFjDQ58VR8twxNKp7zt4IHd3b QtBiVd1o4lopGF8HW58TR6ENag+HAPjn+WvePvtERPL8iwG5gQF+LLB3Qf1zmgI7 NZksSUWiymzMoU0gEXTk =378Q -----END PGP SIGNATURE----- --6c2NcOVqGQ03X4Wi--