freebsd-ports/net/ntop/Makefile

112 lines
2.9 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: ntop
# Date created: 10 August 1998
# Whom: Bill Fumerola <billf@chc-chimes.com>
#
1999-08-30 16:24:37 +02:00
# $FreeBSD$
#
PORTNAME= ntop
PORTVERSION= 3.2
PORTREVISION= 3
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
2004-03-13 16:57:13 +01:00
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.p/pre/}
EXTRACT_SUFX= .tgz
MAINTAINER= wxs@atarininja.org
2003-02-20 20:00:52 +01:00
COMMENT= Network monitoring tool with command line and web interfaces
2004-03-13 16:57:13 +01:00
LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd \
gdbm.3:${PORTSDIR}/databases/gdbm \
png.5:${PORTSDIR}/graphics/png
RUN_DEPENDS= dot:${PORTSDIR}/graphics/graphviz \
${X11BASE}/lib/X11/fonts/URW/a010013l.afm:${PORTSDIR}/x11-fonts/urwfonts
DBDIR?= /var/db
USE_GETOPT_LONG=yes
USE_GNOME= libxml2
USE_GMAKE= yes
USE_OPENSSL= yes
GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
PLIST_SUB= DBDIR=${DBDIR} \
2004-03-13 16:57:13 +01:00
SHLIB=${PORTVERSION:S/.p/pre/}
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --localstatedir=${DBDIR} \
--with-ossl-root=${OPENSSLBASE} \
--with-gdbm-root=${LOCALBASE} \
--with-gd-root=${LOCALBASE} \
--with-libpng-root=${LOCALBASE} \
--with-zlib-root=/usr
# we currently disable IPv6
CONFIGURE_ARGS+=--disable-ipv6
MAN8= ntop.8
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
SUB_FILES= pkg-deinstall
SUB_LIST= DBDIR=${DBDIR}
USE_RC_SUBR= ntop.sh
##
## Available knobs:
## WITH_LOCALE: Enable locale (i18n) support.
## WITH_PCAP_PORT: Use libpcap from ports.
## WITH_XMLDUMP: Enable XML Dump support.
## WITH_ASDATA: Install AS data.
## WITHOUT_TCPWRAPPER: Disable TCP wrapper support.
##
2004-02-07 17:40:37 +01:00
OPTIONS= LOCALE "Enable locale (i18n) support." Off \
PCAP_PORT "Use libpcap from ports." Off \
XMLDUMP "Enable XML Dump support." Off \
ASDATA "Install AS data." Off \
2004-02-07 17:40:37 +01:00
TCPWRAPPER "Enable TCP wrapper support" On
2004-02-07 17:40:37 +01:00
.include <bsd.port.pre.mk>
.if defined(WITH_TCPWRAPPER)
CONFIGURE_ARGS+= --with-tcpwrap
.endif
2004-03-13 16:57:13 +01:00
.if defined(WITH_PCAP_PORT)
BUILD_DEPENDS+= ${LOCALBASE}/lib/libpcap.a:${PORTSDIR}/net/libpcap
CONFIGURE_ARGS+= --with-pcap-root=${LOCALBASE}
.else
CONFIGURE_ARGS+= --with-pcap-root=/usr
.endif
.if defined(WITH_LOCALE) && !defined(WITHOUT_NLS)
USE_GETTEXT= yes
CONFIGURE_ARGS+= --enable-i18n \
--with-localedir=${LOCALBASE}/share/locale
.endif
.if defined(WITH_XMLDUMP)
BROKEN= Does not build with XML dump support
LIB_DEPENDS+= gdome.8:${PORTSDIR}/textproc/gdome2
2004-03-13 16:57:13 +01:00
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include/libxml2 \
-I${LOCALBASE}/include/libxml2/libxml \
-I${LOCALBASE}/include/libgdome \
-I${LOCALBASE}/include/glib-2.0"
.endif
.if defined(WITH_ASDATA)
INSTALL_TARGET+= install install-data-as
PLIST_SUB+= ASDATA=""
.else
PLIST_SUB+= ASDATA="@comment "
.endif
2004-03-13 16:57:13 +01:00
post-extract:
@${RM} ${WRKSRC}/configureextra/FREEBSD
post-install:
@${MKDIR} ${DBDIR}/ntop
2004-03-13 16:57:13 +01:00
@${CHOWN} -R nobody:nobody ${DBDIR}/ntop
@${RMDIR} ${PREFIX}/lib/plugins
2004-02-07 17:40:37 +01:00
.include <bsd.port.post.mk>