summaryrefslogtreecommitdiff
path: root/net/nmap/options.mk
diff options
context:
space:
mode:
authoradrianp <adrianp>2008-06-09 19:35:31 +0000
committeradrianp <adrianp>2008-06-09 19:35:31 +0000
commit7e9f4b6466e53c50a2c373289b68295bc7e01820 (patch)
tree9fb5ea2327293faf089b612c7b96947f9899770a /net/nmap/options.mk
parent34281018b55da1ebd0235361d2e9502a863e1ebc (diff)
downloadpkgsrc-7e9f4b6466e53c50a2c373289b68295bc7e01820.tar.gz
Add an option to build zenmap (not enabled by default)
Diffstat (limited to 'net/nmap/options.mk')
-rw-r--r--net/nmap/options.mk25
1 files changed, 25 insertions, 0 deletions
diff --git a/net/nmap/options.mk b/net/nmap/options.mk
new file mode 100644
index 00000000000..daded9cb23d
--- /dev/null
+++ b/net/nmap/options.mk
@@ -0,0 +1,25 @@
+# $NetBSD: options.mk,v 1.1 2008/06/09 19:35:31 adrianp Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.nmap
+
+PKG_SUPPORTED_OPTIONS= zenmap
+
+.include "../../mk/bsd.options.mk"
+
+###
+### Enable dynamically loadable preprocessors, detection engine
+### and rules libraries.
+###
+.if !empty(PKG_OPTIONS:Mzenmap)
+CONFIGURE_ARGS+= --with-zenmap
+PLIST_SRC+= ${PKGDIR}/PLIST.zenmap
+PYTHON_VERSIONS_ACCEPTED= 25 24
+PY_PATCHPLIST= yes
+.include "../../lang/python/application.mk"
+.include "../../lang/python/extension.mk"
+.include "../../x11/py-gtk2/buildlink3.mk"
+.include "../../databases/py-sqlite2/buildlink3.mk"
+.include "../../textproc/py-xml/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-zenmap
+.endif