[Open-scap] [PATCH 11/17] Add option to enable/disable solaris probes

Marshall Miller mmiller at tresys.com
Wed Jul 13 20:41:49 UTC 2011


From: Ryan E Haggerty <rhaggerty at tresys.com>

allow solaris probe to be manually enabled/disabled
automatically enable/disable solaris probes when option to enable/disable is not provided
---
 configure.ac |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 01f1711..6577056 100644
--- a/configure.ac
+++ b/configure.ac
@@ -505,6 +505,20 @@ AC_ARG_ENABLE([probes-linux],
        *) AC_MSG_ERROR([bad value ${enableval} for --enable-probes-linux]) ;;
      esac],)
 
+probes_solaris=no
+case "${host}" in
+    *-*-solaris*)
+        probes_solaris=yes
+    ;;
+esac
+AC_ARG_ENABLE([probes-solaris],
+     [AC_HELP_STRING([--enable-probes-solaris], [enable compilation of probes for Solaris based systems (default=autodetect)])],
+     [case "${enableval}" in
+       yes) probes_solaris=yes ;;
+       no)  probes_solaris=no  ;;
+       *) AC_MSG_ERROR([bad value ${enableval} for --enable-probes-solaris]) ;;
+     esac],)
+
 AC_ARG_ENABLE([cvss],
      [AC_HELP_STRING([--enable-cvss], [include support for CVSS (default=yes)])],
      [case "${enableval}" in
@@ -789,6 +803,14 @@ echo "  rpminfo probe:               $have_librpm"
 echo "  partition probe:             $probes_linux"
 echo ""
 
+echo "  === solaris probes ==="
+echo "  isainfo probe:               $probes_solaris"
+echo "  package probe:               $probes_solaris"
+echo "  package54 probe:             $probes_solaris"
+echo "  patch probe:                 $probes_solaris"
+echo "  smf probe:                   $probes_solaris"
+echo ""
+
 echo "  === configuration ==="
 echo "  probe directory set to:      $probe_dir"
 echo ""
-- 
1.6.2.5




More information about the Open-scap-list mailing list