21970bd144
------------------------------ Wed Nov 29 17:13:25 2006 dean gaudet <dean@arctic.org> * flodo.c: flow statistics Sun Nov 7 20:20:48 2004 dean gaudet <dean@arctic.org> * flodo.c, local_mac.c: netbsd wants sys/types.h and sys/socket.h Sun Nov 7 17:55:05 2004 dean gaudet <dean@arctic.org> * hash.[ch]: generic hash implementation * local_mac.[ch]: crude support for figuring out local MAC addrs * flodo.c: use hash.[ch], and local_mac.[ch] * flodo.c: added -1 one-shot mode * flodo.8: created * release v4 ------------------------------ (previous package included flodo.8, so, above may have duplication)
30 lines
847 B
Makefile
30 lines
847 B
Makefile
# $NetBSD: Makefile,v 1.16 2015/03/07 07:42:16 mef Exp $
|
|
#
|
|
|
|
DISTNAME= flodo-v5
|
|
# 12-Mar-2008 17:59
|
|
PKGNAME= flodo-5.0
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://arctic.org/~dean/flodo/
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://arctic.org/~dean/flodo/
|
|
COMMENT= Simple network flow sampling tool
|
|
|
|
BUILDLINK_API_DEPENDS.libpcap+= libpcap>=0.8
|
|
|
|
CPPFLAGS+= -I${BUILDLINK_PREFIX.libpcap}/include
|
|
LDFLAGS+= -L${BUILDLINK_PREFIX.libpcap}/lib
|
|
|
|
INSTALLATION_DIRS= ${PKGMANDIR}/man8 sbin
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -o flodo flodo.c hash.c local_mac.c -lpcap
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/flodo ${DESTDIR}${PREFIX}/sbin
|
|
${INSTALL_MAN} ${WRKSRC}/flodo.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
|
|
|
|
.include "../../net/libpcap/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|