Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Oct 2016 00:42:11 +0200
From:      Alphons van Werven <freebsd@skysmurf.nl>
To:        Polytropon <freebsd@edvax.de>
Cc:        "Kevin P. Neal" <kpn@neutralgood.org>, freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Is there a curses-based mp3 player available in FreeBSD ?
Message-ID:  <20161019224211.GA17710@spectrum.skysmurf.nl>
In-Reply-To: <20161019203720.3ca646f1.freebsd@edvax.de>
References:  <mailman.83.1476878402.19583.freebsd-questions@freebsd.org> <VI1PR02MB09743EAC1DCD5539913DC9F9F6D20@VI1PR02MB0974.eurprd02.prod.outlook.com> <44wph473ao.fsf@lowell-desk.lan> <VI1PR02MB09740FF5C3F2BDB6B3D86DE6F6D20@VI1PR02MB0974.eurprd02.prod.outlook.com> <CAHieY7TV_1pXkXLAhchpGi3X%2B9y%2B4VL2%2BhkYkswPECj8zthpFw@mail.gmail.com> <VI1PR02MB0974A7D5AB6C5B9606A7283FF6D20@VI1PR02MB0974.eurprd02.prod.outlook.com> <20161019180428.GB37473@neutralgood.org> <20161019203720.3ca646f1.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <freebsd@skysmurf.nl>
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20161019224211.GA17710>