summaryrefslogtreecommitdiff
path: root/net/wireshark
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2010-05-15 20:27:28 +0000
committertron <tron@pkgsrc.org>2010-05-15 20:27:28 +0000
commit85199a56f3263c9cba12756879a935efca586e2b (patch)
treeeada4d328381e3e4bfe6b70948889240d434fb5f /net/wireshark
parentb1a8fea5546dcb6c9b7c2d575b857702b302a206 (diff)
downloadpkgsrc-85199a56f3263c9cba12756879a935efca586e2b.tar.gz
Add a new option "lua" to enable support for Lua scripts and turn it on
by default. Bump package revisions as the binary package changed. Suggested by Jonathan Kollasch in private e-mail.
Diffstat (limited to 'net/wireshark')
-rw-r--r--net/wireshark/Makefile3
-rw-r--r--net/wireshark/PLIST5
-rw-r--r--net/wireshark/options.mk17
3 files changed, 20 insertions, 5 deletions
diff --git a/net/wireshark/Makefile b/net/wireshark/Makefile
index 57c0303f23b..23c34d59e0d 100644
--- a/net/wireshark/Makefile
+++ b/net/wireshark/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.44 2010/05/13 07:03:22 tron Exp $
+# $NetBSD: Makefile,v 1.45 2010/05/15 20:27:28 tron Exp $
DISTNAME= wireshark-1.2.8
+PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= http://www.wireshark.org/download/src/ \
${MASTER_SITE_SOURCEFORGE:=wireshark/}
diff --git a/net/wireshark/PLIST b/net/wireshark/PLIST
index 155414ad50a..1bd393db3ea 100644
--- a/net/wireshark/PLIST
+++ b/net/wireshark/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.17 2010/04/08 10:03:31 adam Exp $
+@comment $NetBSD: PLIST,v 1.18 2010/05/15 20:27:28 tron Exp $
bin/capinfos
bin/dftest
bin/dumpcap
@@ -46,6 +46,7 @@ share/wireshark/COPYING
share/wireshark/capinfos.html
share/wireshark/cfilters
share/wireshark/colorfilters
+${PLIST.lua}share/wireshark/console.lua
share/wireshark/dfilters
share/wireshark/diameter/Ericsson.xml
share/wireshark/diameter/TGPPGmb.xml
@@ -63,6 +64,7 @@ share/wireshark/diameter/mobileipv6.xml
share/wireshark/diameter/nasreq.xml
share/wireshark/diameter/sip.xml
share/wireshark/diameter/sunping.xml
+${PLIST.lua}share/wireshark/dtd_gen.lua
share/wireshark/dtds/dc.dtd
share/wireshark/dtds/itunes.dtd
share/wireshark/dtds/mscml.dtd
@@ -85,6 +87,7 @@ share/wireshark/help/getting_started.txt
share/wireshark/help/overview.txt
share/wireshark/help/toc
share/wireshark/idl2wrs.html
+${PLIST.lua}share/wireshark/init.lua
share/wireshark/ipmap.html
share/wireshark/manuf
share/wireshark/mergecap.html
diff --git a/net/wireshark/options.mk b/net/wireshark/options.mk
index b3c40f6dabc..acc6195edac 100644
--- a/net/wireshark/options.mk
+++ b/net/wireshark/options.mk
@@ -1,8 +1,8 @@
-# $NetBSD: options.mk,v 1.3 2010/04/08 10:03:31 adam Exp $
+# $NetBSD: options.mk,v 1.4 2010/05/15 20:27:28 tron Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.wireshark
-PKG_SUPPORTED_OPTIONS= gtk2
-PKG_SUGGESTED_OPTIONS= gtk2
+PKG_SUPPORTED_OPTIONS= gtk2 lua
+PKG_SUGGESTED_OPTIONS= gtk2 lua
.include "../../mk/bsd.options.mk"
@@ -16,3 +16,14 @@ PLIST.gtk2= yes
.else
CONFIGURE_ARGS+= --disable-wireshark
.endif
+
+PLIST_VARS+= lua
+
+.if empty(PKG_OPTIONS:Mlua)
+CONFIGURE_ARGS+= --with-lua=no
+.else
+.include "../../lang/lua/buildlink3.mk"
+
+CONFIGURE_ARGS+= --with-lua=${BUILDLINK_PREFIX.lua}
+PLIST.lua= yes
+.endif