pkgsrc/net/ettercap-NG/Makefile

63 lines
2 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.27 2017/05/12 12:01:01 jperkin Exp $
DISTNAME= ettercap-NG-0.7.3
PKGREVISION= 14
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ettercap/}
2009-07-17 20:00:13 +02:00
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://ettercap.sourceforge.net/
COMMENT= Multipurpose sniffer/interceptor/logger for switched LAN
LICENSE= gnu-gpl-v2
2010-05-28 16:49:22 +02:00
MAKE_JOBS_SAFE= no
CONFLICTS= ettercap-[0-9]*
BUILDLINK_API_DEPENDS.libpcap+= libpcap>=0.8.1
.include "../../mk/bsd.prefs.mk"
GNU_CONFIGURE= YES
PTHREAD_OPTS+= require
USE_LIBTOOL= YES
USE_NCURSES= YES # ncurses.h menu.h panel.h form.h
USE_OLD_DES_API= YES
CPPFLAGS+= -L${BUILDLINK_PREFIX.libnet11}/lib/libnet11
CPPFLAGS+= -L${PREFIX}/lib
CONFIGURE_ARGS+= --with-libnet=${BUILDLINK_PREFIX.libnet11}
CONFIGURE_ARGS+= --with-libpcap=${BUILDLINK_PREFIX.libpcap}
CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl}
CONFIGURE_ARGS+= --with-libpcre=${BUILDLINK_PREFIX.pcre}
CONFIGURE_ARGS+= --with-libncurses=${BUILDLINK_PREFIX.ncurses}
CONFIGURE_ARGS+= --enable-plugins
CONFIGURE_ARGS+= --disable-gtk
SUBST_CLASSES+= conf
SUBST_STAGE.conf= pre-configure
SUBST_FILES.conf= configure
SUBST_SED.conf+= -e "s|@@LN_INC@@|${BUILDLINK_PREFIX.libnet11}/include/libnet11|g"
SUBST_SED.conf+= -e "s|@@LN_LIB@@|${BUILDLINK_PREFIX.libnet11}/lib/libnet11|g"
SUBST_MESSAGE.conf= Fixing configuration script.
CONF_FILES= ${PREFIX}/share/examples/ettercap-NG/etter.conf \
${PKG_SYSCONFDIR}/etter.conf
INSTALLATION_DIRS+= share/examples/ettercap-NG
post-install:
${INSTALL_DATA} ${WRKSRC}/share/etter.conf \
${DESTDIR}${PREFIX}/share/examples/ettercap-NG
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/libltdl/buildlink3.mk"
.include "../../devel/libnet11/buildlink3.mk"
.include "../../devel/ncurses/buildlink3.mk"
.include "../../devel/pcre/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../net/libpcap/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"