1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

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
This commit is contained in:
Robert Clausecker 2024-11-11 13:51:54 +01:00
parent 4b0b3a52c8
commit 76b0011589

View File

@ -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>