summaryrefslogtreecommitdiff
path: root/net/sngrep/Makefile
blob: 533ca2bd07b6b9a1cc84ec8c629525bab1bff857 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Created by: Talal Al Dik (tad@vif.com)
# $FreeBSD$

PORTNAME=	sngrep
PORTVERSION=	1.3.1
DISTVERSIONPREFIX=	v
CATEGORIES=	net

MAINTAINER=	tad@vif.com
COMMENT=	SIP Packet display and capture

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/LICENSE

CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
MAKE_ARGS+=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"

USE_GITHUB=	yes
GH_ACCOUNT=	irontec

OPTIONS_DEFINE=	OPENSSL PCRE UNICODE IPV6 EEP

OPENSSL_DESC=	Adds OpenSSL support to parse TLS captured messages
OPENSSL_CONFIGURE_ON=	--with-openssl
OPENSSL_USE=		OPENSSL=yes

PCRE_DESC=	Adds Perl Compatible regex support
PCRE_CONFIGURE_ON=	--with-pcre
PCRE_LIB_DEPENDS=	libpcre.so:devel/pcre

UNICODE_DESC=	Adds Ncurses UTF-8/Unicode support
UNICODE_CONFIGURE_ON=	--enable-unicode
UNICODE_LIB_DEPENDS=	libncursesw.so:devel/ncurses

IPV6_DESC=	Enable IPv6 packet capture support
IPV6_CONFIGURE_ON=	--enable-ipv6

EEP_DESC=	Enable EEP packet send/receive support
EEP_CONFIGURE_ON=	--enable-eep

GNU_CONFIGURE=	yes
USES=autoreconf ncurses

post-patch:
	@${REINPLACE_CMD} -e 's|ncursesw/ncurses.h|ncurses.h|g' \
	${WRKSRC}/configure.ac \
	${WRKSRC}/src/curses/scrollbar.h \
	${WRKSRC}/src/curses/ui_panel.h

.include <bsd.port.options.mk>

.include <bsd.port.mk>