summaryrefslogtreecommitdiff
path: root/net/ettercap
diff options
context:
space:
mode:
authorrillig <rillig>2005-11-19 14:28:50 +0000
committerrillig <rillig>2005-11-19 14:28:50 +0000
commit881b842cdc2632007ae815f94abcde812a1820f5 (patch)
tree55249992bb9295288c985c3dc3fba8a61f2f7207 /net/ettercap
parent43e5797f8ed349cdae6c6991a0fd196f328da760 (diff)
downloadpkgsrc-881b842cdc2632007ae815f94abcde812a1820f5.tar.gz
Added a "gtk" option, as proposed in PR 32029. Fixes that PR.
Diffstat (limited to 'net/ettercap')
-rw-r--r--net/ettercap/Makefile14
-rw-r--r--net/ettercap/options.mk14
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