Bug 204133

Summary: Please add 'local' to VALID_CATEGORIES
Product: Ports & Packages Reporter: Ian Lepore <ian>
Component: Ports FrameworkAssignee: Port Management Team <portmgr>
Status: Closed Not Accepted    
Severity: Affects Only Me CC: bdrewery, koobs, ports-bugs
Priority: --- Keywords: needs-patch
Version: LatestFlags: koobs: merge-quarterly?
Hardware: Any   
OS: Any   

Description Ian Lepore freebsd_committer freebsd_triage 2015-10-29 21:33:51 UTC
Since the ports infrastructure requires that every port have a CATEGORY= that is in the list of valid categories, please add 'local' to VALID_CATEGORIES to allow for local ports within an organization.
Comment 1 Mathieu Arnold freebsd_committer freebsd_triage 2015-10-30 08:42:50 UTC
You can do this many ways yourself, without patching anything in the ports tree, for example, what I do is in the port Makefile, put:

CATEGORY=  local
VALID_CATEGORIES+=  local
Comment 2 Baptiste Daroussin freebsd_committer freebsd_triage 2015-10-30 13:46:15 UTC
I think the best thing is probably to entirely relax the concept of category.

I never understood the reasoning behind that concept beside issues with make index probably.

adding a local category by default sound reasonable to me until we come with something better.
Comment 3 Bryan Drewery freebsd_committer freebsd_triage 2015-10-31 04:00:02 UTC
More proper places are:
/etc/make.conf
Mk/bsd.port.local.mk

I've written a ports_make.conf thing at work too I can should share if interested.