Summary: The reference interpreter for the Open Vulnerability and Assessment Language Name: ovaldi Version: 5.10.1.7 Release: 5 Source0: http://oval.mitre.org/DontDownload/oval/download/ovaldi-%{version}-src.tar.bz2 Patch0: ovaldi-5.10.1.6-centos6.patch Patch1: ovaldi-rpmfixes.patch Patch2: ovaldi-missing-includes.patch Patch3: ovaldi-sh-fix.patch License: BSD Group: System/Configuration/Other BuildRoot: %{_tmppath}/%{name}-buildroot Prefix: %{_prefix} #BuildArch: x86_64 BuildRequires: libacl-devel xalan-c-devel xerces-c-devel rpm-devel libblkid-devel BuildRequires: pcre-devel BuildRequires: libgcrypt-devel BuildRequires: openldap-devel BuildRequires: libselinux-devel BuildRequires: libcap-devel BuildRequires: dos2unix %description The OVAL Interpreter is a freely available reference implementation created to show how information can be collected from a computer for testing, to evaluate and carry out the OVAL definitions for that platform, and to report the results of the tests. MITRE developed the OVAL Interpreter to demonstrate the usability of OVAL definitions, and for definition writers to use to ensure correct syntax and adherence to the OVAL Language during the development of draft definitions. It is not a fully functional scanning tool and has a simplistic user interface, but running the Interpreter will provide you with a list of true/false results and their references (e.g., CVE names) for all input OVAL definitions. MITRE offers the Interpreter, source code, schemas, and data files at no cost to further the OVAL effort and in hopes that individuals and organizations will build and expand upon them. If you are interested in contributing to the OVAL Interpreter please send an email to oval@mitre.org. To run: /usr/sbin/ovaldi.sh %package libs Summary: Libraries required to run the OVAL Interpreter. Group: Applications/System %description libs This package contains the Xerces and Xalan XML libraries needed to run the OVAL Interpreter. These libraries are available from the Apache Foundation, but are not yet packaged for Redhat. %prep [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT %setup -q -n ovaldi-%{version}-src #%patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 dos2unix docs/README.txt dos2unix docs/version.txt %build cd project/linux mkdir -p Release/obj #make make CXXFLAGS="$RPM_OPT_FLAGS -D_RPM_4_4_COMPAT" %{?_smp_mflags} %install /bin/mkdir -p $RPM_BUILD_ROOT/usr/sbin /bin/mkdir -m 700 -p $RPM_BUILD_ROOT%{_libdir}/ovaldi /bin/mkdir -m 700 -p $RPM_BUILD_ROOT/usr/share/ovaldi /bin/mkdir -m 700 -p $RPM_BUILD_ROOT/var/log/ovaldi /bin/mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 /bin/cp project/linux/Release/ovaldi $RPM_BUILD_ROOT/usr/sbin /bin/cp project/linux/ovaldi.sh $RPM_BUILD_ROOT/usr/sbin /usr/bin/gzip docs/ovaldi.1 /bin/cp docs/ovaldi.1.gz $RPM_BUILD_ROOT%{_mandir}/man1 install -c -m 644 xml/results_to_html.xsl $RPM_BUILD_ROOT/usr/share/ovaldi install -c -m 644 xml/oval-definitions-schematron.xsl $RPM_BUILD_ROOT/usr/share/ovaldi install -c -m 644 xml/*.xsd $RPM_BUILD_ROOT/usr/share/ovaldi install -c -m 644 xml/*.xsl $RPM_BUILD_ROOT/usr/share/ovaldi %clean [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT /bin/rm -fr $RPM_BUILD_ROOT/%{name} %post libs # Add %{_libdir}/ovaldi to the end of /etc/ld.so.conf if it's not yet present. if [ `/bin/egrep -c '^%{_libdir}/ovaldi' /etc/ld.so.conf ` -lt 1 ] ; then /bin/echo "%{_libdir}/ovaldi" >>/etc/ld.so.conf # /sbin/ldconfig fi /sbin/ldconfig %postun libs if [ $1 = 0 ]; then # // Do stuff specific to uninstalls if [ `/bin/egrep -c '^%{_libdir}/ovaldi' /etc/ld.so.conf ` -gt 0 ] ; then /bin/egrep -v '^%{_libdir}/ovaldi$' /etc/ld.so.conf >%{_libdir}/etc.ld.so.conf.uninstalling-oval /bin/chown root:root %{_libdir}/etc.ld.so.conf.uninstalling-oval /bin/chmod 644 %{_libdir}/etc.ld.so.conf.uninstalling-oval /bin/mv %{_libdir}/etc.ld.so.conf.uninstalling-oval /etc/ld.so.conf fi /sbin/ldconfig fi if [ $1 = 1 ]; then /sbin/ldconfig # // Do stuff specific to upgrades fi %files %defattr(-,root,root,0755) %doc docs/terms.txt docs/README.txt docs/version.txt %doc %{_mandir}/man1/ovaldi.1.gz %defattr(-,root,root,0600) %attr(0700,root,root) /usr/sbin/ovaldi %attr(0700,root,root) /usr/sbin/ovaldi.sh %attr(0700,root,root) /var/log/ovaldi /usr/share/ovaldi/oval-definitions-schematron.xsl /usr/share/ovaldi/oval-system-characteristics-schematron.xsl /usr/share/ovaldi/oval-results-schematron.xsl /usr/share/ovaldi/results_to_html.xsl /usr/share/ovaldi/*.xsd %changelog * Tue Sep 30 2014 Scott R. Shinn - 5.10.1.7-4 - Update to 5.10.1.7 * Sat Aug 30 2014 Scott R. Shinn - 5.10.1.6-3 - Updated spec for mock building - Added buildrequires * Tue Mar 11 2014 Stjepan Gros 5.10.1.6-2.0 * Updated for CentOS 6 * Thu Jul 28 2011 Danny Haynes 5.9.2-1.0 * Updated to include oval-system-characteristics-schematron.xsl and oval-results-schematron.xsl * Tue Feb 22 2011 Danny Haynes 5.9.1-1.0 * Updated for libxerces-c.so.27 * Wed May 12 2010 Bryan Worrell 5.5.4-1.0 * Updated for libxerces-c.so.28 * Fri Oct 10 2008 Bryan Worrell 5.5.4-1.0 * Updated spec file as per instructions from Steve 'Ashcrow' Milner * Thu Oct 02 2008 Jonathen Baker 5.5.0-1.0 * Updated to 5.5 source. * Thu Jun 28 2007 Jonathen Baker 5.3.0-1.0 * Updated to 5.3 source. * Tue Jan 23 2007 Brendan Dolan-Gavitt 5.2.0-1.0 * Updated to 5.2 source. * Mon Oct 30 2006 Brendan Dolan-Gavitt 5.1.0-1.0 * Created subpackage for libs, updated to 5.1 source. Some .spec cleanup performed. * Tue May 02 2006 Matt Burton 5.0.0-1.0 * New RPM using version 5 source & new SPEC file * Tue Oct 11 2005 Matt Burton 4.3.0-1.3 * Rebuild RPM with new source * Thu Aug 11 2005 Matt Burton 4.2.0-1.3 * Added new schema files (independant, unix and xmldsig), new source * Tue Apr 12 2005 Matt Burton 4.1.0-1.2 * Added libxalan libraries and new source to RPM * Tue Feb 22 2005 Matt Burton 4.0.0-1.1 * Changed SPEC file to use the 2.6 xerces library * Thu Jan 20 2005 Jay Beale 4.0.0-1.0 * Modified RPM for ovaldi 4.0.0's new structure * Mon Oct 18 2004 Jay Beale 3.4.0-1.0 * Rebuilt RPM with new source * Wed Sep 1 2004 Jay Beale 3.3.0-1.0 * Rebuilt RPM with new source * Wed Jul 14 2004 Jay Beale 3.2.0-1.0 * Rebuilt RPM with new source * Sun Jun 6 2004 Jay Beale 3.1.0-1.0 - Rebuilt with new locations and such * Thu May 6 2004 Jay Beale 1.0.0-1.3 - Removed xerces libraries symlinking * Wed Apr 28 2004 Jay Beale 1.0.0-1.2 - Updated to new version * Wed Apr 21 2004 Jay Beale 1.0.0-1.1 - Changed oval.xml to definitions.xml * Mon Apr 19 2004 Jay Beale 1.0.0-1.0 - Initial package creation - enjoy