mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-03 01:23:49 +00:00
b959d3d904
- Change WITH_PCAP_PORT to LIB_DEPENDS, not BUILD_DEPENDS - add stopdaemon to pkg-plist - need chown in pkg-plist so that .tbz (package building) works - clean up install message (patch-Makefile.am) - add test in pkg-deinstall.in to test for DBDIR PR: ports/163682 Submitted by: scheidell@
99 lines
2.5 KiB
Makefile
99 lines
2.5 KiB
Makefile
# New ports collection makefile for: ntop
|
|
# Date created: 10 August 1998
|
|
# Whom: Bill Fumerola <billf@chc-chimes.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= ntop
|
|
PORTVERSION= 4.1.0
|
|
PORTREVISION= 3
|
|
CATEGORIES= net
|
|
#MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/Stable
|
|
DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.gz
|
|
|
|
MAINTAINER= sylvio@FreeBSD.org
|
|
COMMENT= Network monitoring tool with command line and web interfaces
|
|
|
|
LIB_DEPENDS= gdbm.4:${PORTSDIR}/databases/gdbm \
|
|
event-1.4:${PORTSDIR}/devel/libevent
|
|
BUILD_DEPENDS= rrdtool>=1.2:${PORTSDIR}/databases/rrdtool \
|
|
dot:${PORTSDIR}/graphics/graphviz \
|
|
geoiplookup:${PORTSDIR}/net/GeoIP
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS} \
|
|
${LOCALBASE}/lib/X11/fonts/URW/a010013l.afm:${PORTSDIR}/x11-fonts/urwfonts
|
|
|
|
DBDIR?= /var/db
|
|
|
|
MAKE_JOBS_SAFE= yes
|
|
USE_AUTOTOOLS= libtool automake autoconf
|
|
USE_GNOME= libxml2
|
|
USE_PYTHON= 2.6+
|
|
USE_GMAKE= yes
|
|
USE_OPENSSL= yes
|
|
GNU_CONFIGURE= yes
|
|
USE_LDCONFIG= yes
|
|
PLIST_SUB= DBDIR=${DBDIR} \
|
|
PORTVERSION=${PORTVERSION}
|
|
CONFIGURE_ARGS= --localstatedir=${DBDIR} \
|
|
--with-ossl-root=${OPENSSLBASE} \
|
|
--with-gdbm-root=${LOCALBASE} \
|
|
--with-zlib-root=/usr \
|
|
--disable-snmp
|
|
|
|
MAN8= ntop.8
|
|
|
|
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
|
|
SUB_FILES= pkg-deinstall
|
|
SUB_LIST= DBDIR=${DBDIR}
|
|
USE_RC_SUBR= ntop.sh
|
|
|
|
##
|
|
## Available knobs:
|
|
## WITH_PCAP_PORT: Use libpcap from ports.
|
|
## WITH_XMLDUMP: Enable XML Dump support.
|
|
##
|
|
OPTIONS= PCAP_PORT "Use libpcap from ports." Off \
|
|
XMLDUMP "Enable XML Dump support." Off \
|
|
JUMBO_FRAMES "Jumbo Frames. Experimental." Off
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_PCAP_PORT)
|
|
LIB_DEPENDS+= pcap.1:${PORTSDIR}/net/libpcap
|
|
CONFIGURE_ARGS+= --with-pcap-root=${LOCALBASE}
|
|
.else
|
|
CONFIGURE_ARGS+= --with-pcap-root=/usr
|
|
.endif
|
|
|
|
.if defined(WITH_XMLDUMP)
|
|
LIB_DEPENDS+= gdome.8:${PORTSDIR}/textproc/gdome2
|
|
CPPFLAGS+= -I${LOCALBASE}/include/libxml2 \
|
|
-I${LOCALBASE}/include/libxml2/libxml \
|
|
-I${LOCALBASE}/include/libgdome \
|
|
-I${LOCALBASE}/include/glib-2.0
|
|
.endif
|
|
|
|
.if defined(WITH_JUMBO_FRAMES)
|
|
CONFIGURE_ARGS+= --enable-jumbo-frames
|
|
# should set your mtu to 9000
|
|
# see http://www.cyberciti.biz/faq/freebsd-jumbo-frames-networking-configration/
|
|
.endif
|
|
|
|
.if ${OSVERSION} < 700000
|
|
BROKEN= does not configure on 6.X
|
|
.endif
|
|
|
|
pre-configure:
|
|
@cd ${WRKSRC} && ${SETENV} ${SCRIPTS_ENV} ${SH} autogen.sh --noconfig
|
|
|
|
pre-install:
|
|
@cd ${WRKSRC} && ${GMAKE} dnetter
|
|
|
|
post-install:
|
|
@${MKDIR} ${DBDIR}/ntop
|
|
@${CHOWN} -R nobody:nobody ${DBDIR}/ntop
|
|
|
|
.include <bsd.port.post.mk>
|