git: 3eaa8e5ef44a - main - net/radvd: support RemoveAdvOnExit directive via upstream patch

From: Babak Farrokhi <farrokhi_at_FreeBSD.org>
Date: Tue, 18 Jun 2024 19:25:32 UTC
The branch main has been updated by farrokhi:

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

commit 3eaa8e5ef44a7c9b3ee8fed7f94d42365ca3b0c5
Author:     Babak Farrokhi <farrokhi@FreeBSD.org>
AuthorDate: 2024-06-18 19:23:43 +0000
Commit:     Babak Farrokhi <farrokhi@FreeBSD.org>
CommitDate: 2024-06-18 19:25:27 +0000

    net/radvd: support RemoveAdvOnExit directive via upstream patch
    
    - Remove an unused patch
    - Also bump revision
    
    PR:             277505
    Reported by:    Franco Fichtner <franco@opnsense.org>
---
 net/radvd/Makefile                |  5 ++++-
 net/radvd/distinfo                |  4 +++-
 net/radvd/files/patch-interface.c | 23 -----------------------
 3 files changed, 7 insertions(+), 25 deletions(-)

diff --git a/net/radvd/Makefile b/net/radvd/Makefile
index ab8ee570f8ca..e7299ea3d615 100644
--- a/net/radvd/Makefile
+++ b/net/radvd/Makefile
@@ -1,9 +1,12 @@
 PORTNAME=	radvd
 PORTVERSION=	2.19
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	net
 MASTER_SITES=	http://www.litech.org/radvd/dist/
 
+PATCH_SITES=	https://github.com/${PORTNAME}-project/${PORTNAME}/commit/
+PATCHFILES=	3f1aeb2.patch:-p1
+
 MAINTAINER=	farrokhi@FreeBSD.org
 COMMENT=	Linux/BSD IPv6 router advertisement daemon
 WWW=		http://www.litech.org/radvd/
diff --git a/net/radvd/distinfo b/net/radvd/distinfo
index fef3589424da..481924fcc88a 100644
--- a/net/radvd/distinfo
+++ b/net/radvd/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1607081848
+TIMESTAMP = 1707290399
 SHA256 (radvd-2.19.tar.gz) = c36470706fec3a9e6bed394ffea08acaff5dac647848d26b96bb9b9c65d58da0
 SIZE (radvd-2.19.tar.gz) = 222794
+SHA256 (3f1aeb2.patch) = 8130a1f6e04292629c2c2cd9613beb4d4b085f0c08005e15b139bae10467f84c
+SIZE (3f1aeb2.patch) = 3699
diff --git a/net/radvd/files/patch-interface.c b/net/radvd/files/patch-interface.c
deleted file mode 100644
index 77bcbaba6a93..000000000000
--- a/net/radvd/files/patch-interface.c
+++ /dev/null
@@ -1,23 +0,0 @@
---- interface.c.orig	2020-12-29 09:42:21 UTC
-+++ interface.c
-@@ -61,6 +61,8 @@ void touch_iface(struct Interface *iface)
- 
- int setup_iface(int sock, struct Interface *iface)
- {
-+	int was_ready = iface->state_info.ready;
-+
- 	iface->state_info.changed = 0;
- 	iface->state_info.ready = 0;
- 
-@@ -97,8 +99,11 @@ int setup_iface(int sock, struct Interface *iface)
- 		return -1;
- 	}
- 
-+	iface->state_info.ready = was_ready;
-+
- 	/* join the allrouters multicast group so we get the solicitations */
- 	if (setup_allrouters_membership(sock, iface) < 0) {
-+		iface->state_info.ready = 0;
- 		return -1;
- 	}
-