Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Jun 2023 19:59:39 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: b6810fa62f39 - main - net/sniffit: Fix build with llvm15
Message-ID:  <202306031959.353Jxd2c000471@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh:

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

commit b6810fa62f3973d253ad819c169421b26735319e
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-03 19:56:28 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-03 19:59:25 +0000

    net/sniffit: Fix build with llvm15
    
    - Pet portclippy
    - Adopt port
---
 net/sniffit/Makefile | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/net/sniffit/Makefile b/net/sniffit/Makefile
index 8cc42f587763..5c44a5560669 100644
--- a/net/sniffit/Makefile
+++ b/net/sniffit/Makefile
@@ -3,22 +3,27 @@ PORTVERSION=	0.5
 DISTVERSIONPREFIX=	${PORTNAME}-
 CATEGORIES=	net security
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	bofh@FreeBSD.org
 COMMENT=	Packet sniffer program. For educational use
 
 LICENSE=	BSD4CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 USES=		autoreconf cpe
+CPE_VENDOR=	sniffit_project
 USE_GITHUB=	yes
 GH_ACCOUNT=	resurrecting-open-source-projects
 
-CPE_VENDOR=	sniffit_project
-
 GNU_CONFIGURE=	yes
 
 OPTIONS_DEFINE=	DOCS EXAMPLES
 
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=int-conversion
+.endif
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/src/sniffit ${STAGEDIR}${PREFIX}/sbin
 	${INSTALL_MAN} ${WRKSRC}/man/sniffit.5 ${STAGEDIR}${MANPREFIX}/share/man/man5
@@ -35,4 +40,4 @@ do-install-EXAMPLES-on:
 	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	${INSTALL_DATA} ${WRKSRC}/examples/sample_config_file ${STAGEDIR}${EXAMPLESDIR}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306031959.353Jxd2c000471>