Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jul 2021 09:36:43 +0200
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        probono <probono@puredarwin.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Proposal: Include the Application Name in Ports and Packages
Message-ID:  <20210719073643.7jprvntogwl2y7i6@aniel.nours.eu>
In-Reply-To: <CAADtZXCVwm%2B8UT-N1Zjmgitk_A_7Nkwy4XCwzpeGmz8uZFhziQ@mail.gmail.com>
References:  <CAADtZXBiy0=fn7Mz1x8hCAEf0ePOLp=sdH=uSN6EAmcWZAfYyg@mail.gmail.com> <20210708235149.7x3sbgz4764x7ayp@aniel.nours.eu> <CAADtZXCVwm%2B8UT-N1Zjmgitk_A_7Nkwy4XCwzpeGmz8uZFhziQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jul 18, 2021 at 12:55:05PM +0200, probono wrote:
> On Fri, Jul 9, 2021 at 1:51 AM Baptiste Daroussin <bapt@nours.eu> wrote:
> > Simply add a new annotation to the package with the Application Name(s) when it
> > is relevant. I add plural because some ports do provide multiple Application
> > Name(s).
> > And you will have the information everywhere.
> > See how CPE is implemented in the ports tree to see how to do that.
> 
> Hello bapt, thanks for your response. I have a couple of questions though:
> 
> 1. What key should we use for the Application Name(s)?
> 
> For CPE, there is e.g., 'CPE_VENDOR' and 'CPE_PRODUCT'. However none
> of those contains the "human-readable" name "Apache HTTP Server" (as
> used, e.g., on https://httpd.apache.org/).
> 
> CPE_VENDOR=     apache
> CPE_PRODUCT=    http_server
> 
> So what I am looking for is
> 
> SOME_KEY_NAME=   Apache HTTP Server

A simple APPLICATION_NAMES= name1 name2 should do the trick, and the magic
should be added to bsd.port.mk
> 
> 2. If there is more than one main application inside the same package,
> then just repeat this key/value combination multiple times?

yes, it depends on how want to implement it. for a given key there can only be
one value in pkg, but one can be clever
> 
> 3. How would we go about getting those into the
> standard/documentation/lint tools?

provide patch, nothing more
> 
> 4. Would new keys (annotations) automatically end up in
> package/repository metadata, or would something special need to be
> done to get them inherited there?

automatic.

Bapt



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