# HG changeset patch # User Jacob Varughese # Date 1387486308 28800 # Node ID b44390c1019f40d267aa7fb1af456f9925273903 # Parent 2e7a684f3c3d32356342829e9dbecf92d77beab6 16780806 Oracle colours & branding for OVAL & XCCDF diff -r 2e7a684f3c3d -r b44390c1019f components/openscap/Makefile --- a/components/openscap/Makefile Thu Dec 19 01:51:35 2013 -0800 +++ b/components/openscap/Makefile Thu Dec 19 12:51:48 2013 -0800 @@ -66,6 +66,7 @@ CONFIGURE_OPTIONS += am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES) CONFIGURE_OPTIONS += am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES) CONFIGURE_OPTIONS += LIBS="-lsocket -lnsl -lldap_r -lscf -ldlpi -lsec" +CONFIGURE_OPTIONS += --with-report-branding="/usr/share/lib/xml/style/os-logo.xsl" # common targets build: $(BUILD_32) diff -r 2e7a684f3c3d -r b44390c1019f components/openscap/openscap.p5m --- a/components/openscap/openscap.p5m Thu Dec 19 01:51:35 2013 -0800 +++ b/components/openscap/openscap.p5m Thu Dec 19 12:51:48 2013 -0800 @@ -524,6 +524,7 @@ file path=usr/share/openscap/xsl/fix.xsl file path=usr/share/openscap/xsl/fixtpl-bash.xml file path=usr/share/openscap/xsl/html2docbook.xsl +file path=usr/share/openscap/xsl/os-brand.xsl file path=usr/share/openscap/xsl/oscap-share.xsl file path=usr/share/openscap/xsl/oval-report.xsl file path=usr/share/openscap/xsl/oval-results-report.xsl diff -r 2e7a684f3c3d -r b44390c1019f components/openscap/patches/os-brand.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/openscap/patches/os-brand.patch Thu Dec 19 12:51:48 2013 -0800 @@ -0,0 +1,231 @@ +This patch provides a new configure option --with-report-branding to generate + the reports with vendor specific brand and logo. If the option is not used + reports get generated using the default template and colors. +This change was developed in-house and has not been submitted upstream. + + +--- openscap-0.9.7/xsl/Makefile.am.~1~ 2013-10-17 19:32:43.848277759 -0700 ++++ openscap-0.9.7/xsl/Makefile.am 2013-10-17 19:31:32.960110050 -0700 +@@ -17,7 +17,8 @@ + xccdf_1.1_remove_dangling_sub.xsl \ + xccdf-tailor.xsl \ + xccdf-substitute.xsl \ +- xccdf-share.xsl ++ xccdf-share.xsl \ ++ os-brand.xsl + + EXTRA_DIST = security-guide.xsl \ + xccdf-report.xsl \ +@@ -35,5 +36,6 @@ + oscap-share.xsl \ + xccdf-tailor.xsl \ + xccdf-substitute.xsl \ +- xccdf-share.xsl ++ xccdf-share.xsl \ ++ os-brand.xsl + +--- openscap-0.9.7/xsl/xccdf-report.xsl.~1~ 2013-04-23 06:21:53.014000001 -0700 ++++ openscap-0.9.7/xsl/xccdf-report.xsl 2013-10-17 20:37:01.886707203 -0700 +@@ -40,6 +40,7 @@ + + + ++ + + + +@@ -134,7 +135,14 @@ + id='{@id}' + > + +- XCCDF test result ++ ++ ++ XCCDF Assessment Report ++ ++ ++ XCCDF Test Report ++ ++ + + + +@@ -348,8 +356,10 @@ + + + +- +- ++ ++ ++ ++ + + + +--- /dev/null 2013-10-17 20:38:34.000000000 -0700 ++++ openscap-0.9.7/xsl/os-brand.xsl.in 2013-10-17 20:57:48.565359270 -0700 +@@ -0,0 +1,5 @@ ++ ++ ++ ++@BRANDTEMPLATE@ ++ +--- openscap-0.9.7/configure.ac.~2~ 2013-10-18 10:46:29.041272020 -0700 ++++ openscap-0.9.7/configure.ac 2013-10-18 10:49:44.494855545 -0700 +@@ -233,6 +233,7 @@ + probe_dpkginfo_req_deps_missing= + probe_dpkginfo_opt_deps_ok=yes + probe_dpkginfo_opt_deps_missing= ++report_branding= + + # + # env +@@ -990,6 +991,22 @@ + [], + [crypto=gcrypt]) + ++#used for generating os-brand.xsl ++AC_ARG_WITH([report-branding], ++ [AS_HELP_STRING([--with-report-branding= enables report-branding.])], ++ [report_branding="${with_report_branding}"], ++ []) ++ ++notbranded='' ++osbranded="" ++if test "x${report_branding}" = "x" ; then ++AC_SUBST([BRANDED], "no") ++AC_SUBST([BRANDTEMPLATE], "${notbranded}") ++else ++AC_SUBST([BRANDED], "yes") ++AC_SUBST([BRANDTEMPLATE], "${osbranded}") ++fi ++ + if test "x${libexecdir}" = xNONE; then + probe_dir="/usr/local/libexec/openscap" + else +@@ -1196,6 +1213,7 @@ + lib/Makefile + src/Makefile + xsl/Makefile ++ xsl/os-brand.xsl + schemas/Makefile + cpe/Makefile + selinux/Makefile +--- openscap-0.9.7/xsl/dbout-html.xsl.~1~ 2013-04-23 06:21:52.991000001 -0700 ++++ openscap-0.9.7/xsl/dbout-html.xsl 2013-10-21 11:38:46.988422014 -0700 +@@ -36,6 +36,7 @@ + xmlns:xlink="http://www.w3.org/1999/xlink" + exclude-result-prefixes="xsl db exsl htm" + > ++ + + + + +-

++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++

++
++
+
+ + +@@ -433,7 +450,14 @@ + + +