| 1 |
%define name ovaldi |
|---|
| 2 |
%define version 5.4.2 |
|---|
| 3 |
%define release subversion137 |
|---|
| 4 |
|
|---|
| 5 |
Summary: The reference interpreter for the Open Vulnerability and Assessment Language |
|---|
| 6 |
Name: %{name} |
|---|
| 7 |
Version: %{version} |
|---|
| 8 |
Release: %{release} |
|---|
| 9 |
Source: ovaldi-%{release}.tar.bz2 |
|---|
| 10 |
Patch0: rpminfoprobe.patch |
|---|
| 11 |
License: BSD |
|---|
| 12 |
Group: System/Configuration/Other |
|---|
| 13 |
BuildRoot: %{_tmppath}/%{name}-buildroot |
|---|
| 14 |
Prefix: %{_prefix} |
|---|
| 15 |
BuildRequires: pcre-devel xerces-c-devel xalan-c-devel dos2unix rpm-devel > 4.4 |
|---|
| 16 |
BuildArchitectures: i386 |
|---|
| 17 |
Requires: pcre xerces-c xalan-c oval-definitions |
|---|
| 18 |
|
|---|
| 19 |
%description |
|---|
| 20 |
The OVAL Interpreter is a freely available reference |
|---|
| 21 |
implementation created to show how information can be |
|---|
| 22 |
collected from a computer for testing, to evaluate and |
|---|
| 23 |
carry out the OVAL definitions for that platform, and to |
|---|
| 24 |
report the results of the tests. |
|---|
| 25 |
|
|---|
| 26 |
MITRE developed the OVAL Interpreter to demonstrate the |
|---|
| 27 |
usability of OVAL definitions, and for definition writers |
|---|
| 28 |
to use to ensure correct syntax and adherence to the OVAL |
|---|
| 29 |
Language during the development of draft definitions. It is |
|---|
| 30 |
not a fully functional scanning tool and has a simplistic user |
|---|
| 31 |
interface, but running the Interpreter will provide you with |
|---|
| 32 |
a list of true/false results and their references (e.g., CVE names) |
|---|
| 33 |
for all input OVAL definitions. |
|---|
| 34 |
|
|---|
| 35 |
MITRE offers the Interpreters, source code, schemas, and data files |
|---|
| 36 |
at no cost to further the OVAL effort and in hopes that individuals |
|---|
| 37 |
and organizations will build and expand upon them. If you are |
|---|
| 38 |
interested in contributing to the OVAL Interpreter please send an |
|---|
| 39 |
email to oval@mitre.org. |
|---|
| 40 |
|
|---|
| 41 |
To run: |
|---|
| 42 |
|
|---|
| 43 |
/usr/sbin/ovaldi.sh |
|---|
| 44 |
|
|---|
| 45 |
---------------------------------------------------------------------- |
|---|
| 46 |
|
|---|
| 47 |
Tresys Note: This package is based upon OVAL's Subversion checkout, |
|---|
| 48 |
needed because of changes in SVN checkin 113. |
|---|
| 49 |
|
|---|
| 50 |
%prep |
|---|
| 51 |
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT |
|---|
| 52 |
%setup -q -n trunk |
|---|
| 53 |
%patch0 -p0 |
|---|
| 54 |
|
|---|
| 55 |
%build |
|---|
| 56 |
cd project/linux |
|---|
| 57 |
mkdir -p Release/obj |
|---|
| 58 |
make CPPFLAGS='%{optflags} -D_RPM_4_4_COMPAT' |
|---|
| 59 |
|
|---|
| 60 |
%install |
|---|
| 61 |
/bin/mkdir -p $RPM_BUILD_ROOT/usr/sbin |
|---|
| 62 |
/bin/mkdir -m 700 -p $RPM_BUILD_ROOT/usr/lib/ovaldi |
|---|
| 63 |
/bin/mkdir -m 700 -p $RPM_BUILD_ROOT/usr/share/ovaldi |
|---|
| 64 |
/bin/mkdir -m 700 -p $RPM_BUILD_ROOT/var/log/ovaldi |
|---|
| 65 |
/bin/mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 |
|---|
| 66 |
|
|---|
| 67 |
/usr/bin/install -m 755 project/linux/Release/ovaldi $RPM_BUILD_ROOT/usr/sbin |
|---|
| 68 |
/usr/bin/install -m 755 project/linux/ovaldi.sh $RPM_BUILD_ROOT/usr/sbin |
|---|
| 69 |
/usr/bin/dos2unix $RPM_BUILD_ROOT/usr/sbin/ovaldi.sh |
|---|
| 70 |
|
|---|
| 71 |
/usr/bin/gzip docs/ovaldi.1 |
|---|
| 72 |
/bin/cp docs/ovaldi.1.gz $RPM_BUILD_ROOT%{_mandir}/man1 |
|---|
| 73 |
|
|---|
| 74 |
/bin/cp xml/results_to_html.xsl $RPM_BUILD_ROOT/usr/share/ovaldi |
|---|
| 75 |
/bin/cp xml/oval-definitions-schematron.xsl $RPM_BUILD_ROOT/usr/share/ovaldi |
|---|
| 76 |
/bin/cp xml/*.xsd $RPM_BUILD_ROOT/usr/share/ovaldi |
|---|
| 77 |
|
|---|
| 78 |
%clean |
|---|
| 79 |
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT |
|---|
| 80 |
/bin/rm -fr $RPM_BUILD_ROOT/%{name} |
|---|
| 81 |
|
|---|
| 82 |
%files |
|---|
| 83 |
%defattr(-,root,root,0700) |
|---|
| 84 |
%doc docs/terms.txt docs/README.txt docs/version.txt |
|---|
| 85 |
%doc %{_mandir}/man1/ovaldi.1.gz |
|---|
| 86 |
%defattr(-,root,root,0600) |
|---|
| 87 |
%attr(0700,root,root) /usr/sbin/ovaldi |
|---|
| 88 |
%attr(0700,root,root) /usr/sbin/ovaldi.sh |
|---|
| 89 |
%attr(0700,root,root) /var/log/ovaldi |
|---|
| 90 |
/usr/share/ovaldi/oval-definitions-schematron.xsl |
|---|
| 91 |
/usr/share/ovaldi/results_to_html.xsl |
|---|
| 92 |
/usr/share/ovaldi/*.xsd |
|---|
| 93 |
|
|---|
| 94 |
%changelog |
|---|
| 95 |
* Fri Aug 01 2008 J. Tang <selinux@tresys.com> 5.4.2-subversion137 |
|---|
| 96 |
* Modified build to use xalan and xerces RPMs. Converted CR/LF in ovaldi.sh. |
|---|
| 97 |
|
|---|
| 98 |
* Thu Jun 28 2007 Jonathen Baker <bakerj@mitre.org> 5.3.0-1.0 |
|---|
| 99 |
* Updated to 5.3 source. |
|---|
| 100 |
|
|---|
| 101 |
* Mon Jan 23 2007 Brendan Dolan-Gavitt <brendandg@mitre.org> 5.2.0-1.0 |
|---|
| 102 |
* Updated to 5.2 source. |
|---|
| 103 |
|
|---|
| 104 |
* Mon Oct 30 2006 Brendan Dolan-Gavitt <brendandg@mitre.org> 5.1.0-1.0 |
|---|
| 105 |
* Created subpackage for libs, updated to 5.1 source. Some .spec cleanup performed. |
|---|
| 106 |
|
|---|
| 107 |
* Tue May 02 2006 Matt Burton <mburton@mitre.org> 5.0.0-1.0 |
|---|
| 108 |
* New RPM using version 5 source & new SPEC file |
|---|
| 109 |
|
|---|
| 110 |
* Tue Oct 11 2005 Matt Burton <mburton@mitre.org> 4.3.0-1.3 |
|---|
| 111 |
* Rebuild RPM with new source |
|---|
| 112 |
|
|---|
| 113 |
* Thu Aug 11 2005 Matt Burton <mburton@mitre.org> 4.2.0-1.3 |
|---|
| 114 |
* Added new schema files (independant, unix and xmldsig), new source |
|---|
| 115 |
|
|---|
| 116 |
* Tue Apr 12 2005 Matt Burton <mburton@mitre.org> 4.1.0-1.2 |
|---|
| 117 |
* Added libxalan libraries and new source to RPM |
|---|
| 118 |
|
|---|
| 119 |
* Tue Feb 22 2005 Matt Burton <mburton@mitre.org> 4.0.0-1.1 |
|---|
| 120 |
* Changed SPEC file to use the 2.6 xerces library |
|---|
| 121 |
|
|---|
| 122 |
* Thu Jan 20 2005 Jay Beale <jay@bastille-linux.org> 4.0.0-1.0 |
|---|
| 123 |
* Modified RPM for ovaldi 4.0.0's new structure |
|---|
| 124 |
|
|---|
| 125 |
* Mon Oct 18 2004 Jay Beale <jay@bastille-linux.org> 3.4.0-1.0 |
|---|
| 126 |
* Rebuilt RPM with new source |
|---|
| 127 |
|
|---|
| 128 |
* Wed Sep 1 2004 Jay Beale <jay@bastille-linux.org> 3.3.0-1.0 |
|---|
| 129 |
* Rebuilt RPM with new source |
|---|
| 130 |
|
|---|
| 131 |
* Wed Jul 14 2004 Jay Beale <jay@bastille-linux.org> 3.2.0-1.0 |
|---|
| 132 |
* Rebuilt RPM with new source |
|---|
| 133 |
|
|---|
| 134 |
* Sun Jun 6 2004 Jay Beale <jay@bastille-linux.org> 3.1.0-1.0 |
|---|
| 135 |
- Rebuilt with new locations and such |
|---|
| 136 |
|
|---|
| 137 |
* Thu May 6 2004 Jay Beale <jay@bastille-linux.org> 1.0.0-1.3 |
|---|
| 138 |
- Removed xerces libraries symlinking |
|---|
| 139 |
|
|---|
| 140 |
* Wed Apr 28 2004 Jay Beale <jay@bastille-linux.org> 1.0.0-1.2 |
|---|
| 141 |
- Updated to new version |
|---|
| 142 |
|
|---|
| 143 |
* Wed Apr 21 2004 Jay Beale <jay@bastille-linux.org> 1.0.0-1.1 |
|---|
| 144 |
- Changed oval.xml to definitions.xml |
|---|
| 145 |
|
|---|
| 146 |
* Mon Apr 19 2004 Jay Beale <jay@bastille-linux.org> 1.0.0-1.0 |
|---|
| 147 |
- Initial package creation - enjoy |
|---|