ports/73299: [PATCH] ports/Mk/bsd.port.subdir.mk: add search by category

Radek Kozlowski radek at raadradd.com
Sat Oct 30 01:40:19 UTC 2004

>Number:         73299
>Category:       ports
>Synopsis:       [PATCH] ports/Mk/bsd.port.subdir.mk: add search by category
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 30 01:40:18 GMT 2004
>Originator:     Radek Kozlowski
>Release:        FreeBSD 5.3-RELEASE i386

System: FreeBSD 5.3-RELEASE #8: Mon Oct 25 04:39:44 CEST 2004
    root at ddardaar:/usr/obj/usr/src/sys/DDARDAAR


Add the possibility to search the ports by category.


raadradd at ddardaar:/usr/ports> make search cat=gnome display=name,cat 
The search target requires a keyword parameter or name parameter,
e.g.: "make search key=somekeyword"
or    "make search name=somekeyword"

>From ports(7):

search           Search the INDEX file for the pattern specified by the
                    key (searches the port name, comment, and dependencies),
                    name (searches the port name only), path (searches the
                    port path), info (searches the port info), maint
                    (searches the port maintainer), cat (searches the port
                    category) [...]


--- bsd.port.subdir.mk.diff begins here ---
--- bsd.port.subdir.mk.orig	Fri Oct 29 16:18:37 2004
+++ bsd.port.subdir.mk	Sat Oct 30 03:23:16 2004
@@ -332,6 +332,7 @@
 	     -z "$$path"  -a -z "$$xpath"  -a \
 	     -z "$$info"  -a -z "$$xinfo"  -a \
 	     -z "$$maint" -a -z "$$xmaint" -a \
+	     -z "$$cat"   -a -z "$$xcat"   -a \
 	     -z "$$bdeps" -a -z "$$xbdeps" -a \
 	     -z "$$rdeps" -a -z "$$xrdeps" ]; \
 	then \
--- bsd.port.subdir.mk.diff ends here ---


More information about the freebsd-ports-bugs mailing list