Dan Langille dan at
Tue Aug 14 17:54:01 UTC 2018

I am in the process of adding FreshPorts support for CONFLICTS[1].

I reference www/p5-CGI only because it had a recent commit and it contains a CONFLICTS directive.

At you can see:


My goal is to allow a link to the search page or to the page for that port.

The CONFLICTS field is a 'A list of package name patterns'[2]

I interpret this to mean the values returned by make -V PKGNAME and the documentation[3] indicates this is correct.

Thus, the CONFLICTS matches [4]

To extract the PKGNAME values from the CONFLICTS I will need to remove everything after the trailing dash.

Can someone do me up a regex for that please? regex is a weak point for me. Or point me into the Mk infrastructure to locate an existing solution.

Thank you.


[1] -
[2] -
[3] -
[4] -

Dan Langille - BSDCan / PGCon
dan at

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 658 bytes
Desc: Message signed with OpenPGP
URL: <>

More information about the freebsd-ports mailing list