diff options
author | rillig <rillig> | 2005-11-19 14:28:50 +0000 |
---|---|---|
committer | rillig <rillig> | 2005-11-19 14:28:50 +0000 |
commit | 203b522d4288d1dbd93ad878322fabebe58efa27 (patch) | |
tree | 55249992bb9295288c985c3dc3fba8a61f2f7207 /net | |
parent | d736aa66472998fec9f55ebb0367fbb57b449175 (diff) | |
download | pkgsrc-203b522d4288d1dbd93ad878322fabebe58efa27.tar.gz |
Added a "gtk" option, as proposed in PR 32029. Fixes that PR.
Diffstat (limited to 'net')
-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 |