Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Nov 2003 00:29:15 +0100
From:      Oliver Eikemeier <eikemeier@fillmore-labs.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        FreeBSD Ports Management Team <portmgr@FreeBSD.org>
Subject:   ports/59194: proposal of two new port CATEGORIES: local and rookie
Message-ID:  <3FB170CB.2020903@fillmore-labs.com>
Resent-Message-ID: <200311112330.hABNUKr2068458@freefall.freebsd.org>

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

>Number:         59194
>Category:       ports
>Synopsis:       proposal of two new port CATEGORIES: local and rookie
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 11 15:30:19 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Oliver Eikemeier
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
Fillmore Labs - http://www.fillmore-labs.com
>Environment:
System: FreeBSD nuuk.fillmore-labs.com 5.1-CURRENT

>Description:

Two new categories are proposed:

- local, for installations that want to integrate local additions
  to the ports tree. They can have the line
  CATEGORIES=	local
  in the ports Makefile, clearly marking them as such without conflicting
  with the checks in bsd.port.mk. Furthermore they are integrated in a
  local `make index' or other tools working on the whole ports tree.
  The following conditions must be true for local ports to be recognized:

  * ${PORTSDIR}/local/Makefile must exists, and have the local ports
    listed in SUBDIR
  * NO_LOCAL_PORTS must not be defined

  This change should have effect for systems where the directory
  ${PORTSDIR}/local doesn't exist or when NO_LOCAL_PORTS is defined

- rookies, for port candidates managed in an external CVS directory. This
  should be a collective effort to help people gaining experience in creating
  and maintaining FreeBSD ports without being obliged to the high standards of
  the ports collection. It may also be a great place to test experimental ports
  until they stabilize.

  The idea is shamelessly stolen from Thomas Klausner's pkgsrc-wip, see
    http://pkgsrc-wip.sourceforge.net/
  The rookies directory should contain a snapshot of the sourceforge CVS, like
    http://cvs.sourceforge.net/viewcvs.py/pkgsrc-wip/wip/
  The sourceforge registration for project portrookies is submitted and
  awaiting approval.

This should have no impact on the existing FreeBSD ports tree, especially both
categories are not valid when the respective subtrees do not exist.

>How-To-Repeat:
>Fix:

--- categories.patch begins here ---
diff -u Makefile.orig Makefile
--- Makefile	8 Nov 2003 23:57:29 -0000	1.78
+++ Makefile	11 Nov 2003 23:09:44 -0000
@@ -59,6 +59,14 @@
 SUBDIR += x11-toolkits
 SUBDIR += x11-wm
 
+.if exists(${.CURDIR}/local/Makefile) && !defined(NO_LOCAL_PORTS)
+SUBDIR += local
+.endif
+
+.if exists(${.CURDIR}/rookies/Makefile) && !defined(NO_ROOKIES)
+SUBDIR += rookies
+.endif
+
 PORTSTOP=	yes
 
 .include <bsd.port.subdir.mk>
diff -u Mk/bsd.port.mk.orig Mk/bsd.port.mk
--- Mk/bsd.port.mk	8 Nov 2003 03:22:08 -0000	1.473
+++ Mk/bsd.port.mk	11 Nov 2003 23:13:35 -0000
@@ -2391,6 +2391,14 @@
 	x11 x11-clocks x11-fm x11-fonts x11-servers x11-toolkits x11-wm xfce \
 	zope
 
+.if exists(${PORTSDIR}/local/Makefile) && !defined(NO_LOCAL_PORTS)
+VALID_CATEGORIES+=	local
+.endif
+
+.if exists(${PORTSDIR}/rookies/Makefile) && !defined(NO_ROOKIES)
+VALID_CATEGORIES+=	rookies
+.endif
+
 check-categories:
 .for cat in ${CATEGORIES}
 	@if ${ECHO_CMD} ${VALID_CATEGORIES} | ${GREP} -wq ${cat}; then \
--- categories.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



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