# $FreeBSD$

PORTNAME?=	voipmonitor
PORTVERSION=	25.4
PORTREVISION=	0
CATEGORIES=	net

MAINTAINER=	bu7cher@yandex.ru
COMMENT?=	Network packet sniffer which analyze SIP and RTP protocol

LICENSE=	GPLv2

USE_GITHUB=	yes
GH_ACCOUNT=	voipmonitor
GH_PROJECT=	sniffer
GH_TAGNAME=	7aecf2f

USES=		gmake mysql:client autoreconf pkgconfig
GNU_CONFIGURE=	yes
USE_RC_SUBR=	voipmonitor

LIB_DEPENDS+=	libogg.so:${PORTSDIR}/audio/libogg \
		libvorbis.so:${PORTSDIR}/audio/libvorbis \
		liblzo2.so:${PORTSDIR}/archivers/lzo2 \
		libsnappy.so:${PORTSDIR}/archivers/snappy \
		libodbc.so:${PORTSDIR}/databases/unixODBC \
		librrd.so:${PORTSDIR}/databases/rrdtool \
		libtcmalloc.so:${PORTSDIR}/devel/google-perftools \
		libjson-c.so:${PORTSDIR}/devel/json-c \
		libcurl.so:${PORTSDIR}/ftp/curl \
		libpng.so:${PORTSDIR}/graphics/png \
		libfftw3.so:${PORTSDIR}/math/fftw3 \
		libgcrypt.so:${PORTSDIR}/security/libgcrypt \
		libgnutls.so:${PORTSDIR}/security/gnutls \
		libssh.so:${PORTSDIR}/security/libssh \
		libicuuc.so:${PORTSDIR}/devel/icu \

RUN_DEPENDS+=	vorbis-tools>0:${PORTSDIR}/audio/vorbis-tools \

do-build:
	${GMAKE} -C ${WRKSRC}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/voipmonitor ${STAGEDIR}${PREFIX}/sbin/
	${INSTALL_DATA} ${WRKSRC}/config/voipmonitor.conf \
	    ${STAGEDIR}${PREFIX}/etc/voipmonitor.conf.sample


.include <bsd.port.mk>
