From cf96b84b71cb4ffc23072ffd5456de72ca528def Mon Sep 17 00:00:00 2001 From: rillig Date: Sat, 19 Nov 2005 14:28:50 +0000 Subject: Added a "gtk" option, as proposed in PR 32029. Fixes that PR. --- net/ettercap/Makefile | 14 +++++++------- net/ettercap/options.mk | 14 ++++++++++++++ 2 files changed, 21 insertions(+), 7 deletions(-) create mode 100644 net/ettercap/options.mk diff --git a/net/ettercap/Makefile b/net/ettercap/Makefile index eb55c60d891..a5cf0ae9cb0 100644 --- a/net/ettercap/Makefile +++ b/net/ettercap/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.37 2005/05/14 16:46:17 adrianp Exp $ +# $NetBSD: Makefile,v 1.38 2005/11/19 14:28:50 rillig Exp $ DISTNAME= ettercap-0.6.b -PKGREVISION= 2 +PKGREVISION= 3 CATEGORIES= security net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ettercap/} \ http://ettercap.sourceforge.net/download/ @@ -13,10 +13,10 @@ COMMENT= Multipurpose sniffer/interceptor/logger for switched LAN CONFLICTS+= ettercap-NG-[0-9]* GNU_CONFIGURE= yes -CONFIGURE_ARGS+= --enable-plugins \ - --enable-https \ - --disable-gtk +CONFIGURE_ARGS+= --enable-plugins +CONFIGURE_ARGS+= --enable-https +.include "options.mk" USE_NCURSES= # putwin() USE_OLD_DES_API= yes @@ -24,8 +24,8 @@ PTHREAD_OPTS+= require PTHREAD_AUTO_VARS= yes MAKE_ENV+= MACHINE_ARCH=${MACHINE_ARCH} -BUILD_DIRS= ${WRKSRC} ${WRKSRC}/plugins -INSTALL_DIRS= ${WRKSRC} ${WRKSRC}/plugins +BUILD_DIRS= . plugins +INSTALL_DIRS= . plugins .include "../../devel/ncurses/buildlink3.mk" .include "../../security/openssl/buildlink3.mk" diff --git a/net/ettercap/options.mk b/net/ettercap/options.mk new file mode 100644 index 00000000000..2e20afee9ca --- /dev/null +++ b/net/ettercap/options.mk @@ -0,0 +1,14 @@ +# $NetBSD: options.mk,v 1.1 2005/11/19 14:28:50 rillig Exp $ +# + +PKG_OPTIONS_VAR= PKG_OPTIONS.ettercap +PKG_SUPPORTED_OPTIONS= gtk + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mgtk) +CONFIGURE_ARGS+= --enable-gtk +.include "../../x11/gtk2/buildlink3.mk" +.else +CONFIGURE_ARGS+= --disable-gtk +.endif -- cgit v1.2.3