1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/net-mgmt/ettercap/Makefile
Sunpoet Po-Chuan Hsieh 3b3ad06c9d Update to 0.8.3
- Replace GTK2 option with GTK3 option: new upstream default

Changes:	https://github.com/Ettercap/ettercap/releases
Security:	b79ec16b-9da7-11e9-a0ea-a92fe7db4867
MFH:		2019Q3
2019-07-03 18:51:26 +00:00

74 lines
2.0 KiB
Makefile

# Created by: George Reid <greid@ukug.uk.freebsd.org>
# $FreeBSD$
PORTNAME= ettercap
PORTVERSION= 0.8.3
DISTVERSIONPREFIX= v
PORTEPOCH= 1
CATEGORIES= net-mgmt security
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Network sniffer/interceptor/injector/logger for switched LANs
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libnet.so:net/libnet
OPTIONS_DEFINE= DESKTOP DOCS GTK3 IPV6 NCURSES PCRE PLUGINS SSL UTF8
OPTIONS_DEFAULT=GTK3 NCURSES PCRE PLUGINS SSL UTF8
OPTIONS_SUB= yes
DESKTOP_DESC= Install ettercap.desktop
NCURSES_DESC= Ncurses interface
PCRE_DESC= Use PCRE in filters
SSL_DESC= SSH1 and SSL decryption support
USES= bison cmake cpe iconv localbase:ldflags pkgconfig
CMAKE_ARGS= -DHAVE_PCAP=${LIBDIR} \
-DHAVE_RESOLV=${LIBDIR} \
-DINSTALL_SYSCONFDIR=${PREFIX}/etc \
-DMAN_INSTALLDIR=${PREFIX}/man
CMAKE_OFF= BUNDLED_LIBS ENABLE_GEOIP ENABLE_LUA ENABLE_PDF_DOCS ENABLE_TESTS LIBRARY_BUILD
CMAKE_ON= HAVE_DLOPEN
LDFLAGS+= ${ICONV_LIB} -lnet -lpcap
MAKE_JOBS_UNSAFE= yes
USE_LDCONFIG= yes
DOCS= AUTHORS CHANGELOG README README.BINARIES README.BUGS \
README.GIT README.PLATFORMS THANKS TODO TODO.TESTING \
doc/capture doc/decoders doc/dissectors doc/plugins doc/threads
CPE_VENDOR= ${PORTNAME}_project
GH_ACCOUNT= Ettercap
USE_GITHUB= yes
DESKTOP_CMAKE_BOOL= INSTALL_DESKTOP
DESKTOP_USES= desktop-file-utils
NCURSES_CMAKE_BOOL= ENABLE_CURSES
NCURSES_USES= ncurses
GTK3_CMAKE_BOOL= ENABLE_GTK
GTK3_USE= GNOME=gtk30
GTK3_USES= gnome
IPV6_CMAKE_BOOL= ENABLE_IPV6
PCRE_CMAKE_BOOL= HAVE_PCRE
PCRE_LIB_DEPENDS= libpcre.so:devel/pcre
PLUGINS_BUILD_DEPENDS= curl>=7.26.0:ftp/curl
PLUGINS_CMAKE_BOOL= ENABLE_PLUGINS
PLUGINS_LIB_DEPENDS= libcurl.so:ftp/curl
SSL_CMAKE_BOOL= ENABLE_SSL
SSL_USES= ssl
UTF8_CMAKE_BOOL= HAVE_UTF8
UTF8_CMAKE_ON= -DHAVE_ICONV=${ICONV_PREFIX}
UTF8_USES= iconv
post-install:
${INSTALL_DATA} ${STAGEDIR}${ETCDIR}/etter.conf ${STAGEDIR}${PREFIX}/etc/etter.conf.sample
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}/
cd ${WRKSRC}/ && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>