Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jan 2026 20:56:40 +0000
From:      Vladimir Druzenko <vvd@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: a4e1733296b1 - main - net/libbgpdump: Update 1.6.0 => 1.6.2, improve port
Message-ID:  <6977d508.27b1b.21788e25@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by vvd:

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

commit a4e1733296b18b9b9cb2d65f95088143d5a4442e
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2026-01-26 20:34:25 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2026-01-26 20:56:09 +0000

    net/libbgpdump: Update 1.6.0 => 1.6.2, improve port
    
    Changelog:
    https://github.com/RIPE-NCC/bgpdump/blob/v1.6.2/ChangeLog
    
    - Replace PORTVERSION with DISTVERSION.
    - Switch upstream to GitHub.
    - Add LICENSE_FILE.
    - Fix warnings from portclippy.
    - Add soname.
    - Use INSTALL_LIB instead of INSTALL_DATA+STRIP_CMD for libs.
    - Optimize includes installation.
    - Install include/bgpdump_mstream.h.
    - Move docs and examples installation to do-install-DOCS-on and do-install-EXAMPLES-on.
    - Parametrize libbgpdump with PORTNAME.
    
    PR:             272484
    Approved by:    mjl@luckie.org.nz (maintainer)
---
 net/libbgpdump/Makefile  | 30 ++++++++++++++++++++----------
 net/libbgpdump/distinfo  |  6 +++---
 net/libbgpdump/pkg-plist |  2 ++
 3 files changed, 25 insertions(+), 13 deletions(-)

diff --git a/net/libbgpdump/Makefile b/net/libbgpdump/Makefile
index dc4db4ca3a33..da82156369c3 100644
--- a/net/libbgpdump/Makefile
+++ b/net/libbgpdump/Makefile
@@ -1,30 +1,40 @@
 PORTNAME=	libbgpdump
-PORTVERSION=	1.6.0
+DISTVERSION=	1.6.2
 CATEGORIES=	net
-MASTER_SITES=	https://www.ris.ripe.net/source/bgpdump/
+MASTER_SITES=	https://github.com/RIPE-NCC/bgpdump/releases/download/v${DISTVERSION}/
 
 MAINTAINER=	mjl@luckie.org.nz
 COMMENT=	Analyzing dump files produced by Zebra/Quagga or MRT
-WWW=		https://www.ris.ripe.net/source/
+WWW=		https://github.com/RIPE-NCC/bgpdump/
 
 LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/COPYING
 
 USES=		tar:tgz
+USE_LDCONFIG=	yes
 
 GNU_CONFIGURE=	yes
-USE_LDCONFIG=	yes
+SOVER=		0
+MAKE_ARGS=	SOFLAGS="-shared -Wl,-soname,${PORTNAME}.so.${SOVER}"
+PLIST_SUB=	SOVER=${SOVER}
 
 OPTIONS_DEFINE=	DOCS EXAMPLES
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/bgpdump ${STAGEDIR}${PREFIX}/bin
-	${INSTALL_DATA} ${WRKSRC}/libbgpdump.* ${STAGEDIR}${PREFIX}/lib
-	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libbgpdump.so
-.for i in bgpdump_attr.h bgpdump_formats.h bgpdump_lib.h
-	${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${PREFIX}/include
-.endfor
-	${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_LIB} ${WRKSRC}/${PORTNAME}.* ${STAGEDIR}${PREFIX}/lib
+	${RLN}  ${STAGEDIR}${PREFIX}/lib/${PORTNAME}.so \
+		${STAGEDIR}${PREFIX}/lib/${PORTNAME}.so.${SOVER}
+	${INSTALL_DATA} \
+		${bgpdump_attr.h bgpdump_formats.h bgpdump_lib.h bgpdump_mstream.h \
+		:L:S|^|${WRKSRC}/|} ${STAGEDIR}${PREFIX}/include
+
+do-install-DOCS-on:
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
+
+do-install-EXAMPLES-on:
+	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	${INSTALL_DATA} ${WRKSRC}/example.c ${STAGEDIR}${EXAMPLESDIR}
 
 .include <bsd.port.mk>
diff --git a/net/libbgpdump/distinfo b/net/libbgpdump/distinfo
index ae7c39c4d699..83142d50fb41 100644
--- a/net/libbgpdump/distinfo
+++ b/net/libbgpdump/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1565370461
-SHA256 (libbgpdump-1.6.0.tgz) = 13ab9125ba3257ef0f9873a2babc3b3c47fdb6e6b845f2ed30ae96215f328390
-SIZE (libbgpdump-1.6.0.tgz) = 130947
+TIMESTAMP = 1769380000
+SHA256 (libbgpdump-1.6.2.tgz) = 7c6dc32c367590a527752ca84c727ab4cbedc16a5abe5384dc523e563907abe0
+SIZE (libbgpdump-1.6.2.tgz) = 91548
diff --git a/net/libbgpdump/pkg-plist b/net/libbgpdump/pkg-plist
index 6502e8f72a85..a94609c363b9 100644
--- a/net/libbgpdump/pkg-plist
+++ b/net/libbgpdump/pkg-plist
@@ -1,8 +1,10 @@
 bin/bgpdump
 lib/libbgpdump.a
 lib/libbgpdump.so
+lib/libbgpdump.so.%%SOVER%%
 include/bgpdump_attr.h
 include/bgpdump_formats.h
 include/bgpdump_lib.h
+include/bgpdump_mstream.h
 %%PORTDOCS%%%%DOCSDIR%%/README
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/example.c


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6977d508.27b1b.21788e25>