diff options
author | rillig <rillig@pkgsrc.org> | 2005-11-19 14:28:50 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2005-11-19 14:28:50 +0000 |
commit | cf96b84b71cb4ffc23072ffd5456de72ca528def (patch) | |
tree | 55249992bb9295288c985c3dc3fba8a61f2f7207 /net/ettercap | |
parent | 45fa737dcf276a421e49c6185d72c24fc511429e (diff) | |
download | pkgsrc-cf96b84b71cb4ffc23072ffd5456de72ca528def.tar.gz |
Added a "gtk" option, as proposed in PR 32029. Fixes that PR.
Diffstat (limited to 'net/ettercap')
-rw-r--r-- | net/ettercap/Makefile | 14 | ||||
-rw-r--r-- | net/ettercap/options.mk | 14 |
2 files changed, 21 insertions, 7 deletions
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 |