1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-18 08:02:48 +00:00
freebsd-ports/net-mgmt/rate/Makefile
Alexey Dokuchaev 5841776f6c Include missing "dns.h" header to get the prototype for dns_lookup() which
returns char *.  Without it, compiler has to assume that it returns an int,
which results in segmentation fault e.g. in -A (bandwidth abusers) mode.
2020-09-04 17:23:12 +00:00

27 lines
671 B
Makefile

# Created by: mich@FreeBSD.org
# $FreeBSD$
PORTNAME= rate
PORTVERSION= 0.9
PORTREVISION= 2
CATEGORIES= net-mgmt
MASTER_SITES= http://s-tech.elsat.net.pl/bmtools/
MAINTAINER= mich@FreeBSD.org
COMMENT= Traffic analysis command-line utility
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
LDFLAGS+= -lcompat
CFLAGS+= -DOPEN_BSD=1 -DHAVE_REGEX -DSTREAM_ANALYZER -DIOCTL_GETWINSIZE -DAUTOSENSE_DLH
PLIST_FILES= bin/rate man/man1/rate.1.gz
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/rate ${STAGEDIR}${PREFIX}/bin/rate
${INSTALL_MAN} ${WRKSRC}/doc/rate.1 ${STAGEDIR}${MANPREFIX}/man/man1
.include <bsd.port.mk>