git: 76b0011589e1 - main - net-mgmt/rate: fix build on 15-CURRENT

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Thu, 14 Nov 2024 08:44:02 UTC
The branch main has been updated by fuz:

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

commit 76b0011589e1ec4eb2ebf5544e47e4ea7d630a99
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2024-11-11 12:51:54 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2024-11-14 08:43:21 +0000

    net-mgmt/rate: fix build on 15-CURRENT
    
     - link with -lutil to grab ftime() on 15-CURRENT.  This is harmless on
       older FreeBSD
     - while we are at it, install binary using INSTALL_PROGRAM so it is
       stripped
    
    Approved by:    portmgr (build fix blanket)
    MFH:            2024Q4
---
 net-mgmt/rate/Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/net-mgmt/rate/Makefile b/net-mgmt/rate/Makefile
index a3e61ee19b8d..0108bea618a5 100644
--- a/net-mgmt/rate/Makefile
+++ b/net-mgmt/rate/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	rate
 PORTVERSION=	0.9
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	net-mgmt
 MASTER_SITES=	http://s-tech.elsat.net.pl/bmtools/
 
@@ -12,13 +12,13 @@ LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
 MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
-LDFLAGS+=	-lcompat
+LDFLAGS+=	-lcompat -lutil
 CFLAGS+=	-DOPEN_BSD=1 -DHAVE_REGEX -DSTREAM_ANALYZER -DIOCTL_GETWINSIZE -DAUTOSENSE_DLH
 
 PLIST_FILES=	bin/rate share/man/man1/rate.1.gz
 
 do-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/rate ${STAGEDIR}${PREFIX}/bin/rate
+	${INSTALL_PROGRAM} ${WRKSRC}/rate ${STAGEDIR}${PREFIX}/bin/rate
 	${INSTALL_MAN} ${WRKSRC}/doc/rate.1 ${STAGEDIR}${PREFIX}/share/man/man1
 
 .include <bsd.port.mk>