git: 1372a98ed6e3 - main - net/bird3: Update rc script

From: Olivier Cochard <olivier_at_FreeBSD.org>
Date: Mon, 08 Sep 2025 00:51:48 UTC
The branch main has been updated by olivier:

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

commit 1372a98ed6e303763de9f4a6bd6c6011fb3b66bd
Author:     Olivier Cochard <olivier@FreeBSD.org>
AuthorDate: 2025-09-08 00:47:04 +0000
Commit:     Olivier Cochard <olivier@FreeBSD.org>
CommitDate: 2025-09-08 00:49:05 +0000

    net/bird3: Update rc script
    
    Address some fixes:
    - Modify rcorder to start sooner, enabling other daemons that rely on network
      access to start correctly.
    - Introduce gracefulrestart as an additional rc command.
    
    PR:             282565
    PR:             240732
    Sponsored by:   Netflix
---
 net/bird3/Makefile      | 3 ++-
 net/bird3/files/bird.in | 6 +++++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/net/bird3/Makefile b/net/bird3/Makefile
index 6e6e2272b75c..4ac5d93bd9e2 100644
--- a/net/bird3/Makefile
+++ b/net/bird3/Makefile
@@ -1,12 +1,13 @@
 PORTNAME=	bird
 DISTVERSION=	3.1.3
+PORTREVISION=	1
 CATEGORIES=	net
 MASTER_SITES=	https://bird.nic.cz/download/
 PKGNAMESUFFIX=	3
 
 MAINTAINER=	olivier@FreeBSD.org
 COMMENT=	Dynamic multithreaded IP routing daemon
-WWW=		https://bird.network.cz/
+WWW=		https://bird.nic.cz/
 
 LICENSE=	GPLv2
 
diff --git a/net/bird3/files/bird.in b/net/bird3/files/bird.in
index de800bd69b81..91932c656db9 100644
--- a/net/bird3/files/bird.in
+++ b/net/bird3/files/bird.in
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 # PROVIDE: bird dynamicrouting
-# REQUIRE: LOGIN
+# REQUIRE: DAEMONS
 # KEYWORD: shutdown
 #
 # Add the following lines to /etc/rc.conf.local or /etc/rc.conf
@@ -27,4 +27,8 @@ load_rc_config $name
 command=%%PREFIX%%/sbin/${name}
 command_args="-c $bird_config -g $bird_group"
 
+extra_commands="gracefulrestart" # It is not a restart but a stop
+
+gracefulrestart_cmd="%%PREFIX%%/sbin/${name}c graceful restart"
+
 run_rc_command "$1"