2009-03-16 07:05:45 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.41 2009/03/16 11:05:45 sthen Exp $
|
2001-09-26 11:17:23 -04:00
|
|
|
|
2006-01-20 03:39:12 -05:00
|
|
|
SHARED_ONLY= Yes
|
2001-04-12 03:58:35 -04:00
|
|
|
|
2007-09-15 18:36:51 -04:00
|
|
|
COMMENT= multi-purpose sniffer/interceptor/logger
|
2001-04-12 03:58:35 -04:00
|
|
|
|
2008-04-23 16:49:46 -04:00
|
|
|
VER= 0.7.3
|
|
|
|
DISTNAME= ettercap-NG-${VER}
|
2009-03-16 07:05:45 -04:00
|
|
|
PKGNAME= ettercap-${VER}p2
|
2001-04-12 03:58:35 -04:00
|
|
|
CATEGORIES= net
|
2008-04-23 16:49:46 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ettercap/}
|
2001-04-12 03:58:35 -04:00
|
|
|
|
|
|
|
HOMEPAGE= http://ettercap.sourceforge.net/
|
|
|
|
|
2008-07-16 16:15:48 -04:00
|
|
|
# GPLv2+
|
2001-04-12 03:58:35 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2008-04-23 16:49:46 -04:00
|
|
|
|
2009-03-16 07:05:45 -04:00
|
|
|
WANTLIB += c crypto form menu ncurses panel pcap pthread ssl z
|
|
|
|
|
|
|
|
LIB_DEPENDS= lib/libnet-1.1/net.=11:libnet->=1.1,<1.2:net/libnet/1.1 \
|
2008-04-23 16:49:46 -04:00
|
|
|
ltdl::devel/libtool,-ltdl \
|
|
|
|
pcre::devel/pcre
|
2001-04-12 03:58:35 -04:00
|
|
|
|
2008-04-23 16:49:46 -04:00
|
|
|
FLAVORS= no_x11
|
2003-05-13 04:57:47 -04:00
|
|
|
FLAVOR?=
|
|
|
|
|
2008-04-23 16:49:46 -04:00
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
LIBTOOL_FLAGS= --tag=disable-static
|
|
|
|
CONFIGURE_STYLE= autoconf
|
|
|
|
AUTOCONF_VERSION= 2.59
|
|
|
|
CONFIGURE_ARGS+= --with-libnet=${LOCALBASE} \
|
|
|
|
--with-libpcre=${LOCALBASE}
|
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2003-05-13 04:57:47 -04:00
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mno_x11}
|
2008-04-23 16:49:46 -04:00
|
|
|
CONFIGURE_ARGS+= --enable-gtk=no
|
2003-05-13 07:22:53 -04:00
|
|
|
.else
|
2006-01-20 03:39:12 -05:00
|
|
|
USE_X11= Yes
|
2009-03-16 07:05:45 -04:00
|
|
|
MODULES= devel/gettext
|
|
|
|
LIB_DEPENDS+= gdk-x11-2.0,gdk_pixbuf-2.0,gtk-x11-2.0::x11/gtk+2
|
|
|
|
WANTLIB += X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes
|
|
|
|
WANTLIB += Xi Xinerama Xrandr Xrender atk-1.0 cairo expat fontconfig
|
|
|
|
WANTLIB += freetype gio-2.0 glib-2.0 glitz gmodule-2.0 gobject-2.0
|
|
|
|
WANTLIB += gthread-2.0 m pango-1.0 pangocairo-1.0 pangoft2-1.0
|
|
|
|
WANTLIB += pixman-1 png
|
2003-05-13 04:57:47 -04:00
|
|
|
.endif
|
2001-04-12 03:58:35 -04:00
|
|
|
|
2002-10-27 20:38:44 -05:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2008-04-23 16:49:46 -04:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ettercap
|
|
|
|
${INSTALL_DATA} ${WRKINST}${SYSCONFDIR}/etter.conf \
|
|
|
|
${PREFIX}/share/examples/ettercap
|
|
|
|
|
2001-04-12 03:58:35 -04:00
|
|
|
.include <bsd.port.mk>
|