aboutsummaryrefslogtreecommitdiff
path: root/network/wireshark/wireshark.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2018-08-21 22:34:47 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-08-25 09:59:37 +0700
commit96385452e769d7eb18f3fb48b0fde44598faaa66 (patch)
tree441ced09f85009bb489c71627cc90780cc1f876d /network/wireshark/wireshark.SlackBuild
parent519ac2cb01bb486036ede307c9ff619e6867d6bd (diff)
network/wireshark: Update for lua52 dep.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'network/wireshark/wireshark.SlackBuild')
-rw-r--r--network/wireshark/wireshark.SlackBuild20
1 files changed, 19 insertions, 1 deletions
diff --git a/network/wireshark/wireshark.SlackBuild b/network/wireshark/wireshark.SlackBuild
index 7a2d3e496aaa6..29ac2cdf6368b 100644
--- a/network/wireshark/wireshark.SlackBuild
+++ b/network/wireshark/wireshark.SlackBuild
@@ -27,10 +27,11 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Modified by Mario Preksavec <mario@slackware.hr>
+# Modified by B. Watson <yalhcru@gmail.com> to add lua52 support.
PRGNAM=wireshark
VERSION=${VERSION:-2.6.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -76,6 +77,23 @@ find -L . \
# systems with 32bit compat libs install. Thanks to Heinz Wiesinger.
sed -i "s|/lib)|/lib$LIBDIRSUFFIX)|g" configure.ac
+# We have 3 lua versions on SBo: lua is v5.1, lua52 is 5.2, lua53 is 5.3.
+# Wireshark only supports 5.1 and 5.2, not 5.3. The lua version doesn't
+# affect core wireshark, only 3rd-party plugins written in lua. Most
+# plugins should work with either version, but at least one (2ping.lua)
+# fails with 5.1. There are also probably some older plugins written
+# for 5.1 that would fail with 5.2. So we support both versions here.
+# There are 2 possible settings for LUA52:
+# - yes (default): use lua52 if it's installed, fall back to lua otherwise.
+# - no: don't use lua52; always use lua.
+if [ "${LUA52:-yes}" = "yes" -a -x /usr/bin/lua5.2 ]; then
+ export LUA_CFLAGS="$( pkg-config lua5.2 --cflags )"
+ export LUA_LIBS="$( pkg-config lua5.2 --libs )"
+ echo "=== Building with lua52"
+else
+ echo "=== Building with lua (v5.1)"
+fi
+
# run autoreconf so it'll use the correct automake version.
autoreconf -f -i