35d3724ea0
From Debian, but tweaked by naddy@ ok landry@, naddy@
63 lines
1.6 KiB
Makefile
63 lines
1.6 KiB
Makefile
# $OpenBSD: Makefile,v 1.53 2011/08/02 18:40:16 dcoppa Exp $
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
COMMENT= multi-purpose sniffer/interceptor/logger
|
|
|
|
VER= 0.7.3
|
|
DISTNAME= ettercap-NG-${VER}
|
|
PKGNAME= ettercap-${VER}
|
|
REVISION= 7
|
|
CATEGORIES= net
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ettercap/}
|
|
|
|
HOMEPAGE= http://ettercap.sourceforge.net/
|
|
|
|
# GPLv2+
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
WANTLIB += c crypto form menu ncurses panel pcap pthread ssl z
|
|
WANTLIB += lib/libnet-1.1/net=11 ltdl pcre
|
|
|
|
LIB_DEPENDS= net/libnet/1.1 \
|
|
devel/libtool,-ltdl \
|
|
devel/pcre
|
|
|
|
FLAVORS= no_x11
|
|
FLAVOR?=
|
|
|
|
USE_LIBTOOL= Yes
|
|
USE_GROFF = 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"
|
|
|
|
.if ${FLAVOR:L:Mno_x11}
|
|
CONFIGURE_ARGS+= --enable-gtk=no
|
|
.else
|
|
MODULES = devel/gettext
|
|
LIB_DEPENDS += 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 gmodule-2.0 gobject-2.0
|
|
WANTLIB += gthread-2.0 m pango-1.0 pangocairo-1.0 pangoft2-1.0
|
|
WANTLIB += pixman-1 png pthread-stubs xcb gdk_pixbuf-2.0
|
|
WANTLIB += gdk-x11-2.0 gtk-x11-2.0
|
|
.endif
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ettercap
|
|
${INSTALL_DATA} ${WRKINST}${SYSCONFDIR}/etter.conf \
|
|
${PREFIX}/share/examples/ettercap
|
|
|
|
.include <bsd.port.mk>
|