2021-04-21 13:40:12 +02:00
|
|
|
# $NetBSD: Makefile,v 1.112 2021/04/21 11:42:27 adam Exp $
|
1998-08-08 00:42:29 +02:00
|
|
|
|
2011-10-18 12:33:06 +02:00
|
|
|
DISTNAME= ntop-4.1.0
|
2021-04-21 13:40:12 +02:00
|
|
|
PKGREVISION= 41
|
2005-01-06 12:52:35 +01:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ntop/}
|
1998-09-22 08:11:35 +02:00
|
|
|
|
2005-01-06 12:52:35 +01:00
|
|
|
MAINTAINER= adam@NetBSD.org
|
2012-02-09 17:54:16 +01:00
|
|
|
HOMEPAGE= http://www.ntop.org/products/ntop/
|
2005-01-06 12:52:35 +01:00
|
|
|
COMMENT= Shows network usage (similar to "top" for processes)
|
2011-01-03 17:34:37 +01:00
|
|
|
LICENSE= gnu-gpl-v3
|
2005-01-06 12:52:35 +01:00
|
|
|
|
|
|
|
CONFLICTS= ntop-[0-9]*
|
2011-02-11 12:12:14 +01:00
|
|
|
DEPENDS+= ${PYPKGPREFIX}-mako-[0-9]*:../../devel/py-mako
|
2005-01-06 12:52:35 +01:00
|
|
|
|
|
|
|
USE_LIBTOOL= yes
|
|
|
|
USE_PKGLOCALEDIR= yes
|
2011-02-11 12:12:14 +01:00
|
|
|
USE_TOOLS+= aclocal autoconf autoheader automake gawk gmake gunzip
|
1999-05-24 22:39:35 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2008-10-16 14:24:09 +02:00
|
|
|
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
|
2005-01-06 12:52:35 +01:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/share/ntop
|
|
|
|
CONFIGURE_ARGS+= --with-gdbm-root=${BUILDLINK_PREFIX.gdbm}
|
|
|
|
CONFIGURE_ARGS+= --with-ossl-root=${BUILDLINK_PREFIX.openssl}
|
|
|
|
CONFIGURE_ARGS+= --with-pcap-root=${BUILDLINK_PREFIX.libpcap}
|
|
|
|
CONFIGURE_ARGS+= --with-zlib-root=${BUILDLINK_PREFIX.zlib}
|
1998-08-08 00:42:29 +02:00
|
|
|
|
2006-04-06 08:21:32 +02:00
|
|
|
BUILDLINK_API_DEPENDS.libpcap+= libpcap>=0.8.3
|
2005-01-11 20:38:20 +01:00
|
|
|
|
2005-03-21 13:42:45 +01:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "none"
|
|
|
|
CONFIGURE_ARGS+= --disable-mt
|
|
|
|
.endif
|
|
|
|
|
2009-09-26 07:58:27 +02:00
|
|
|
.if (${OPSYS} == "NetBSD" && !empty(OS_VERSION:M[0-4].*))
|
|
|
|
USE_BUILTIN.libevent= no
|
|
|
|
.endif
|
|
|
|
|
2007-09-15 09:35:37 +02:00
|
|
|
pre-configure:
|
|
|
|
set -e; cd ${WRKSRC}; \
|
2011-02-09 09:37:10 +01:00
|
|
|
libtoolize -c -f; cp m4/libtool.m4 libtool.m4.in; \
|
|
|
|
cat acinclude.m4.in libtool.m4.in acinclude.m4.ntop > acinclude.m4; \
|
2007-09-15 09:35:37 +02:00
|
|
|
aclocal; autoheader; automake -a --foreign -i; autoconf
|
|
|
|
|
2005-01-06 12:52:35 +01:00
|
|
|
.include "../../databases/gdbm/buildlink3.mk"
|
2007-09-15 09:35:37 +02:00
|
|
|
.include "../../databases/rrdtool/buildlink3.mk"
|
2010-07-22 23:10:52 +02:00
|
|
|
.include "../../devel/libevent/buildlink3.mk"
|
2007-09-15 09:35:37 +02:00
|
|
|
.include "../../devel/pcre/buildlink3.mk"
|
2010-07-22 23:10:52 +02:00
|
|
|
.include "../../lang/python/application.mk"
|
2009-04-24 12:18:03 +02:00
|
|
|
.include "../../net/GeoIP/buildlink3.mk"
|
2004-04-25 10:24:03 +02:00
|
|
|
.include "../../net/libpcap/buildlink3.mk"
|
2005-01-06 12:52:35 +01:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
1998-08-08 00:42:29 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|