Bug 118397 - New Port: ports-mgmt/pkg_search - A nifty script searching the ports database
Summary: New Port: ports-mgmt/pkg_search - A nifty script searching the ports database
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: chinsan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-03 12:50 UTC by Matthias Schmidt
Modified: 2007-12-12 19:00 UTC (History)
0 users

See Also:


Attachments
file.shar (2.03 KB, text/plain)
2007-12-03 12:50 UTC, Matthias Schmidt
no flags Details
shar.sh (1.98 KB, application/octet-stream; x-unix-mode=0644)
2007-12-04 15:38 UTC, Matthias Schmidt
no flags Details
file.dat (269 bytes, text/plain; charset=US-ASCII; format=flowed)
2007-12-04 15:38 UTC, Matthias Schmidt
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Schmidt 2007-12-03 12:50:00 UTC
I wrote a small script called pkg_search to help me searching my local ports tree for a port/package without using "make search name=" or something like freshports.org.  Its not a big deal, but it eases my daily pkg_add life a bit :)

Example:

% pkg_search fvwm2
fvwm2-i18n-imlib-2.4.20_1       Popular virtual window manager for X

% pkg_search -i fvwm2
Name    : fvwm2-i18n-imlib-2.4.20_1-50
Dir     : /usr/ports/x11-wm/fvwm2-i18n
Desc    : Popular virtual window manager for X
URL     : http://www.fvwm.org/
Deps    : compositeproto-0.4
[...]

Tested with FreeBSD 6.x and FreeBSD 7.x
Comment 1 Matthias Schmidt 2007-12-04 14:01:27 UTC
Hi,

On 04.12.2007, at 14:52, Romain Tarti=E8re wrote:

> Index filename depends on which FreeBSD version you are running. The
> attached patch attempt to auto-detect this name instead of relying =20
> on a
> hard coded value.

This is a known bug and fixed in Version 1.1 (-> website).  Once =20
pkg_search is added as a port, I'm planning to bumb PORTVERSION.  Or =20
should I submit a patch with the new PORTVERSION right now?

Regards,

	Matthias

--=20
Dipl.-Inf. Matthias Schmidt <schmidtm@mathematik.uni-marburg.de>
Dept. of Mathematics and Computer Science, Distributed Systems Group
Philipps-University of Marburg, Hans-Meerwein-Strasse, 35032 Marburg
Tel: +49-6421-2821591, Fax: +49-6421-2821573, Office C4347
Comment 2 Romain Tartière 2007-12-04 15:04:35 UTC
Hi,

On Tue, Dec 04, 2007 at 03:01:27PM +0100, Matthias Schmidt wrote :
> This is a known bug and fixed in Version 1.1 (-> website).  Once  
> pkg_search is added as a port, I'm planning to bumb PORTVERSION.  Or  
> should I submit a patch with the new PORTVERSION right now?


IMHO, avoiding « early adopters » to get disapointed by a new port that
do not work as expected on their system is always a good point ;-)

Kind regards,
Romain

-- 
Romain Tartière <romain@blogreen.org>        http://romain.blogreen.org/
pgp: 8DAB A124 0DA4 7024 F82A  E748 D8E9 A33F FF56 FF43 (ID: 0xFF56FF43)
(plain text =non-HTML= PGP/GPG encrypted/signed e-mail much appreciated)
Comment 3 Matthias Schmidt 2007-12-04 15:38:47 UTC
Hi,

On 04.12.2007, at 16:04, Romain Tartière wrote:

> Hi,
>
> On Tue, Dec 04, 2007 at 03:01:27PM +0100, Matthias Schmidt wrote :
>> This is a known bug and fixed in Version 1.1 (-> website).  Once
>> pkg_search is added as a port, I'm planning to bumb PORTVERSION.  Or
>> should I submit a patch with the new PORTVERSION right now?
>
> IMHO, avoiding « early adopters » to get disapointed by a new port  
> that
> do not work as expected on their system is always a good point ;-)


Yeah, that's a good point.  New version is attached.

Regards,

	Matthias=
Comment 4 chinsan freebsd_committer freebsd_triage 2007-12-06 17:06:22 UTC
Responsible Changed
From-To: freebsd-ports-bugs->chinsan

I'll take it.
Comment 5 Matthias Schmidt 2007-12-09 11:05:43 UTC
Hi,

this PR can be closed:

http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.sbin/pkg_install/search/pkg_search.sh

Regards,

	Matthias

-- 
Dipl.-Inf. Matthias Schmidt <schmidtm@mathematik.uni-marburg.de>
Dept. of Mathematics and Computer Science, Distributed Systems Group
University of Marburg, Hans-Meerwein-Strasse, 35032 Marburg, Germany
Tel: +49-6421-2821591, Fax: +49-6421-2821573, Office C4347
Comment 6 chinsan freebsd_committer freebsd_triage 2007-12-09 15:33:48 UTC
State Changed
From-To: open->closed

Committed by obrien into src/ tree.   Close this pr as submitter's 
request.  Thanks.
Comment 7 chinsan freebsd_committer freebsd_triage 2007-12-09 15:42:15 UTC
State Changed
From-To: closed->open


Reopen this pr as the obrien@ has been reverted the commmit before.
Comment 8 chinsan freebsd_committer freebsd_triage 2007-12-09 15:48:20 UTC
State Changed
From-To: open->feedback

Hi, Matthias: 

obrien@'s previous commit has been backout. 
According portmgr (krion@)'s commit log: 
"Backout previous commit, since it's done without maintainers 
approval.  These changes were approved by adding it as port to 
ports/ tree, but not for src/. I talked to PR submitter and miwi@ 
some days ago and explained the reasons for it, the both were agree 
to add it to ports/ only. " 

So, I reopenned this PR and will commit this one after 2007/12/14 (port tree unfreeze). 
Thanks for your hard work. :)
Comment 9 dfilter service freebsd_committer freebsd_triage 2007-12-12 18:45:18 UTC
chinsan     2007-12-12 18:45:15 UTC

  FreeBSD ports repository

  Added files:
    ports-mgmt/pkg_search Makefile distinfo pkg-descr 
  Log:
  Add pkg_search 1.2, a nifty script searching the ports database.
  
  PR:             ports/118397
  Submitted by:   Matthias Schmidt
  
  Revision  Changes    Path
  1.1       +25 -0     ports/ports-mgmt/pkg_search/Makefile (new)
  1.1       +3 -0      ports/ports-mgmt/pkg_search/distinfo (new)
  1.1       +4 -0      ports/ports-mgmt/pkg_search/pkg-descr (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 10 dfilter service freebsd_committer freebsd_triage 2007-12-12 18:50:30 UTC
chinsan     2007-12-12 18:50:27 UTC

  FreeBSD doc repository

  Modified files:
    en_US.ISO8859-1/articles/contributors contrib.additional.sgml 
  Log:
  - Add Matthias Schmidt for ports-mgmt/pkg_search
  
  PR:             ports/118397
  
  Revision  Changes    Path
  1.743     +5 -0      doc/en_US.ISO8859-1/articles/contributors/contrib.additional.sgml
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 11 chinsan freebsd_committer freebsd_triage 2007-12-12 18:51:05 UTC
State Changed
From-To: feedback->closed

Committed with some modification and upgrade to 1.2.  Thanks.