git: c274b1213941 - main - net/bird2: Fix STATIC option conflict

From: Olivier Cochard <olivier_at_FreeBSD.org>
Date: Mon, 11 May 2026 15:18:42 UTC
The branch main has been updated by olivier:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c274b121394120b7bd92c2bcf8159285a40f7d12

commit c274b121394120b7bd92c2bcf8159285a40f7d12
Author:     Olivier Cochard <olivier@FreeBSD.org>
AuthorDate: 2026-05-11 14:08:56 +0000
Commit:     Olivier Cochard <olivier@FreeBSD.org>
CommitDate: 2026-05-11 15:17:40 +0000

    net/bird2: Fix STATIC option conflict
    
    Remove the STATIC option (static routes) to avoid clashing with the global
    static linking option. Enable static routes by default
    
    Reported by:    ivy
    Sponsored by:   Netflix
---
 net/bird2/Makefile | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/net/bird2/Makefile b/net/bird2/Makefile
index d586353b8a9f..bfc564a2fe46 100644
--- a/net/bird2/Makefile
+++ b/net/bird2/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	bird
 DISTVERSION=	2.18.1
+PORTREVISION=	1
 CATEGORIES=	net
 MASTER_SITES=	https://bird.nic.cz/download/
 PKGNAMESUFFIX=	2
@@ -29,10 +30,10 @@ GROUPS=		birdvty
 
 MAKE_JOBS_UNSAFE=	yes
 
-OPTIONS_MULTI=	RP
+OPTIONS_GROUP=	RP
 RP_DESC=	Routing Protocols
-OPTIONS_MULTI_RP=	BFD BABEL BMP BGP MRT OSPF PIPE RADV RIP RPKI STATIC
-OPTIONS_DEFAULT=	BFD BABEL BGP MRT OSPF PIPE RADV RIP RPKI STATIC
+OPTIONS_GROUP_RP=	BFD BABEL BMP BGP MRT OSPF PIPE RADV RIP RPKI
+OPTIONS_DEFAULT=	BFD BABEL BGP MRT OSPF PIPE RADV RIP RPKI
 
 BFD_DESC=	Bidirectional Forwarding Detection
 BABEL_DESC=	Babel routing protocol
@@ -44,7 +45,6 @@ PIPE_DESC=	PIPE routing
 RADV_DESC=	Router Advertisement
 RIP_DESC=	Routing Information Protocol
 RPKI_DESC=	Resource Public Key Infrastructure
-STATIC_DESC=	Static routing
 
 BFD_VARS=	rt_prot+=bfd
 BABEL_VARS=	rt_prot+=babel
@@ -56,7 +56,8 @@ PIPE_VARS=	rt_prot+=pipe
 RADV_VARS=	rt_prot+=radv
 RIP_VARS=	rt_prot+=rip
 RPKI_VARS=	rt_prot+=rpki
-STATIC_VARS=	rt_prot+=static
+
+RT_PROT+=	static
 
 CONFIGURE_ARGS+=--with-protocols="${RT_PROT}"
 RPKI_LIB_DEPENDS=	libssh.so:security/libssh