2000-07-26 03:39:11 +00:00
|
|
|
#!/bin/sh
|
2012-03-16 03:39:51 +00:00
|
|
|
# @configure_input@
|
2000-07-26 03:39:11 +00:00
|
|
|
#
|
|
|
|
# Checkinstall - perform preinstallation install checks.
|
|
|
|
#
|
|
|
|
# This is a modified version of a script written by mark@metalab.unc.edu .
|
|
|
|
# The original is at http://metalab.unc.edu/pub/packages/solaris/sparc/html/creating.solaris.packages.html .
|
2010-11-21 19:03:17 +00:00
|
|
|
#
|
2000-07-26 03:39:11 +00:00
|
|
|
|
2008-04-08 22:03:42 +00:00
|
|
|
PKG_CONFIG=@PKG_CONFIG@
|
2002-01-21 23:57:44 +00:00
|
|
|
|
2008-04-08 22:38:24 +00:00
|
|
|
gtk_version_needed="2.0"
|
2000-11-08 03:54:12 +00:00
|
|
|
expected_platform="@host_cpu@"
|
2000-07-26 03:39:11 +00:00
|
|
|
|
2008-04-08 22:38:24 +00:00
|
|
|
platform=`uname -p`
|
|
|
|
|
|
|
|
if [ ${platform} != ${expected_platform} ]
|
|
|
|
then
|
2000-07-26 03:39:11 +00:00
|
|
|
echo "\n\n\n\tThis package must be installed on a ${expected_platform} architecture\n"
|
|
|
|
echo "\tAborting installation.\n\n\n"
|
|
|
|
exit 1
|
|
|
|
fi
|
2008-04-08 22:03:42 +00:00
|
|
|
|
2008-04-08 22:38:24 +00:00
|
|
|
if [ ! -x "$PKG_CONFIG" ]
|
2008-04-08 22:03:42 +00:00
|
|
|
then
|
2008-04-08 22:38:24 +00:00
|
|
|
# We couldn't find GTK in the location that was used to build
|
|
|
|
# Wireshark.
|
|
|
|
# Punt!
|
|
|
|
# If gtk-config is in the $PATH then wireshark should install fine.
|
|
|
|
# Some modifications to $LD_LIBRARY_PATH (or non Solaris equivalent)
|
|
|
|
# may be required by the user. Should there be a warning here?
|
|
|
|
PKG_CONFIG=pkg-config
|
|
|
|
fi
|
2008-04-08 22:03:42 +00:00
|
|
|
|
2008-04-08 22:38:24 +00:00
|
|
|
$PKG_CONFIG gtk+-2.0 --atleast-version=$gtk_version_needed
|
|
|
|
if [ $? != 0 ]
|
|
|
|
then
|
|
|
|
echo "\n\n\n\tThis package requires gtk+-2 version >= $gtk_version_needed installed in `dirname @PKG_CONFIG@`."
|
|
|
|
echo "\tAborting installation.\n\n\n"
|
|
|
|
exit 1
|
2000-07-26 03:39:11 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
exit 0
|