1 |
commit: db99fa1e4bbe2fe97838fc4becd82cedb2e87791 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 27 09:50:56 2019 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 27 10:15:21 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db99fa1e |
7 |
|
8 |
app-forensics/ovaldi: Drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.58, Repoman-2.3.12 |
11 |
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> |
12 |
|
13 |
app-forensics/ovaldi/Manifest | 1 - |
14 |
app-forensics/ovaldi/files/disable-acl.patch | 23 -- |
15 |
.../ovaldi-5.10.1.4-disable-selinux-probes.patch | 84 ------ |
16 |
.../ovaldi/files/ovaldi-5.10.1.4-strnicmp.patch | 11 - |
17 |
.../ovaldi/files/ovaldi-5.10.1.4-xerces3.patch | 283 --------------------- |
18 |
app-forensics/ovaldi/ovaldi-5.10.1.4.ebuild | 94 ------- |
19 |
6 files changed, 496 deletions(-) |
20 |
|
21 |
diff --git a/app-forensics/ovaldi/Manifest b/app-forensics/ovaldi/Manifest |
22 |
index 91d5ee64560..10d46d80f07 100644 |
23 |
--- a/app-forensics/ovaldi/Manifest |
24 |
+++ b/app-forensics/ovaldi/Manifest |
25 |
@@ -1,2 +1 @@ |
26 |
-DIST ovaldi-5.10.1.4-src.tar.bz2 14868251 BLAKE2B a85d4d1b80226dd4059d206b471788b1417224dea54ba0b5813dda3427543195b9fb5505e4f9d5db4655acb36385a84ff23556c281189558bf1a637f5a122262 SHA512 d7926a7416fe90013e203b333390e33d51c3eb0caa6ebba69dd593791a8377ac38f5db72fcff2d1ab2dd39a0f5d1b0d2a0d08f906d3e26740288532a27debb47 |
27 |
DIST ovaldi-5.10.1.7-src.tar.bz2 20391784 BLAKE2B 7e2c719f0819f967c6aee533bb881c29ffac756461460d73e3231f1cffd254d88a26e716f0334d023daa7fa6f9c314bf7a42b6c13e2a90daa558e589d135479c SHA512 22c373436889b03ffb5d479bd322703bbd8b5b335f116a3b38a3d206ddaaf3115961ab89597c3907b6e5d745eb302a042c135c73cde0eaae10e51f5d6e3e55ec |
28 |
|
29 |
diff --git a/app-forensics/ovaldi/files/disable-acl.patch b/app-forensics/ovaldi/files/disable-acl.patch |
30 |
deleted file mode 100644 |
31 |
index 49ea42c8055..00000000000 |
32 |
--- a/app-forensics/ovaldi/files/disable-acl.patch |
33 |
+++ /dev/null |
34 |
@@ -1,23 +0,0 @@ |
35 |
---- src/probes/unix/FileProbe.cpp.old 2013-01-14 16:28:33.000000000 +0100 |
36 |
-+++ src/probes/unix/FileProbe.cpp 2013-01-14 16:30:33.000000000 +0100 |
37 |
-@@ -427,19 +427,8 @@ |
38 |
- 5) If a file doesn't have an ACL, or it matches the standard UNIX permissions, the value will be 'false' (this is covered by acl_extended_file() - thank you openscap) |
39 |
- 6) If a file has an ACL, the value will be 'true'. |
40 |
- */ |
41 |
-- |
42 |
-- int hasExtendedAcl = acl_extended_file(filePath.c_str()); |
43 |
-- if(hasExtendedAcl > -1){ // behavior 4, 5, and 6 |
44 |
-- item->AppendElement(new ItemEntity("has_extended_acl",Common::ToString(hasExtendedAcl),OvalEnum::DATATYPE_BOOLEAN,OvalEnum::STATUS_EXISTS,0)); |
45 |
-- }else{ |
46 |
-- if(errno == EOPNOTSUPP){ // behavior 3 |
47 |
-- item->AppendElement(new ItemEntity("has_extended_acl","",OvalEnum::DATATYPE_BOOLEAN,OvalEnum::STATUS_DOES_NOT_EXIST,0)); |
48 |
-- }else{ // behavior 2 |
49 |
-- item->AppendElement(new ItemEntity("has_extended_acl","",OvalEnum::DATATYPE_BOOLEAN,OvalEnum::STATUS_ERROR,0)); |
50 |
-- item->AppendMessage(new OvalMessage(string("Error reading ACL data: ") + strerror(errno))); |
51 |
-- } |
52 |
-- } |
53 |
- |
54 |
-+ item->AppendElement(new ItemEntity("has_extended_acl","",OvalEnum::DATATYPE_BOOLEAN,OvalEnum::STATUS_NOT_COLLECTED,0)); |
55 |
- # else |
56 |
- // behavior 1 |
57 |
- item->AppendElement(new ItemEntity("has_extended_acl","",OvalEnum::DATATYPE_BOOLEAN,OvalEnum::STATUS_NOT_COLLECTED,0)); |
58 |
|
59 |
diff --git a/app-forensics/ovaldi/files/ovaldi-5.10.1.4-disable-selinux-probes.patch b/app-forensics/ovaldi/files/ovaldi-5.10.1.4-disable-selinux-probes.patch |
60 |
deleted file mode 100644 |
61 |
index b9d02d763c6..00000000000 |
62 |
--- a/app-forensics/ovaldi/files/ovaldi-5.10.1.4-disable-selinux-probes.patch |
63 |
+++ /dev/null |
64 |
@@ -1,84 +0,0 @@ |
65 |
---- src/probes/unix/Process58Probe.cpp.old 2013-01-14 16:05:18.000000000 +0100 |
66 |
-+++ src/probes/unix/Process58Probe.cpp 2013-01-14 16:06:16.000000000 +0100 |
67 |
-@@ -29,8 +29,8 @@ |
68 |
- //****************************************************************************************// |
69 |
- |
70 |
- #ifdef LINUX |
71 |
--# include <selinux/selinux.h> |
72 |
--# include <selinux/context.h> |
73 |
-+/*# include <selinux/selinux.h> |
74 |
-+# include <selinux/context.h>*/ |
75 |
- # include <sys/capability.h> |
76 |
- # include <SecurityContextGuard.h> |
77 |
- #endif |
78 |
-@@ -328,7 +328,7 @@ |
79 |
- pid_t sessionId; |
80 |
- uid_t loginuid; |
81 |
- uint64_t effCap, *effCapp=&effCap; |
82 |
-- string selinuxDomainLabel; |
83 |
-+/* string selinuxDomainLabel;*/ |
84 |
- |
85 |
- Process58Probe::ProcStatus statStatus, statusStatus, ttyStatus, loginuidStatus; |
86 |
- |
87 |
-@@ -423,10 +423,10 @@ |
88 |
- } |
89 |
- |
90 |
- // this one doesn't require reading anything in /proc |
91 |
-- if (!RetrieveSelinuxDomainLabel(pid, &selinuxDomainLabel, &errMsg)) { |
92 |
-+/* if (!RetrieveSelinuxDomainLabel(pid, &selinuxDomainLabel, &errMsg)) { |
93 |
- item->AppendMessage(new OvalMessage(errMsg, OvalEnum::LEVEL_ERROR)); |
94 |
- item->SetStatus(OvalEnum::STATUS_ERROR); |
95 |
-- } |
96 |
-+ }*/ |
97 |
- |
98 |
- // The Linux start time is represented as the number of jiffies (1/100 sec) |
99 |
- // that the application was started after the last system reboot. To get an |
100 |
-@@ -522,10 +522,10 @@ |
101 |
- // aren't any. |
102 |
- item->AppendElement(new ItemEntity("posix_capability", "", OvalEnum::DATATYPE_STRING, OvalEnum::STATUS_ERROR)); |
103 |
- |
104 |
-- if (selinuxDomainLabel.empty()) |
105 |
-+/* if (selinuxDomainLabel.empty()) |
106 |
- item->AppendElement(new ItemEntity("selinux_domain_label", "", OvalEnum::DATATYPE_STRING, OvalEnum::STATUS_ERROR)); |
107 |
- else |
108 |
-- item->AppendElement(new ItemEntity("selinux_domain_label", selinuxDomainLabel)); |
109 |
-+ item->AppendElement(new ItemEntity("selinux_domain_label", selinuxDomainLabel));*/ |
110 |
- |
111 |
- if (statStatus == PROC_OK) |
112 |
- item->AppendElement(new ItemEntity("session_id", Common::ToString(sessionId), OvalEnum::DATATYPE_INTEGER)); |
113 |
-@@ -740,7 +740,7 @@ |
114 |
- capMap[capEnum])); |
115 |
- } |
116 |
- } |
117 |
-- |
118 |
-+/* |
119 |
- bool Process58Probe::RetrieveSelinuxDomainLabel(pid_t pid, string *label, string *err) { |
120 |
- security_context_t sctx; |
121 |
- int ec = getpidcon(pid, &sctx); |
122 |
-@@ -763,7 +763,7 @@ |
123 |
- *label = tmp; |
124 |
- return true; |
125 |
- } |
126 |
-- |
127 |
-+*/ |
128 |
- #elif defined SUNOS |
129 |
- |
130 |
- void Process58Probe::GetPSInfo(string command, string pidStr, ItemVector* items) { |
131 |
-@@ -830,7 +830,7 @@ |
132 |
- item->AppendElement(new ItemEntity("exec_shield", "", OvalEnum::DATATYPE_BOOLEAN, OvalEnum::STATUS_NOT_COLLECTED)); |
133 |
- item->AppendElement(new ItemEntity("loginuid", "", OvalEnum::DATATYPE_INTEGER, OvalEnum::STATUS_NOT_COLLECTED)); |
134 |
- item->AppendElement(new ItemEntity("posix_capability", "", OvalEnum::DATATYPE_STRING, OvalEnum::STATUS_NOT_COLLECTED)); |
135 |
-- item->AppendElement(new ItemEntity("selinux_domain_label", "", OvalEnum::DATATYPE_STRING, OvalEnum::STATUS_NOT_COLLECTED)); |
136 |
-+/* item->AppendElement(new ItemEntity("selinux_domain_label", "", OvalEnum::DATATYPE_STRING, OvalEnum::STATUS_NOT_COLLECTED));*/ |
137 |
- item->AppendElement(new ItemEntity("session_id", Common::ToString(info.pr_sid), OvalEnum::DATATYPE_INTEGER)); |
138 |
- |
139 |
- items->push_back(item); |
140 |
-@@ -988,7 +988,7 @@ |
141 |
- item->AppendElement(new ItemEntity("exec_shield", "", OvalEnum::DATATYPE_BOOLEAN, OvalEnum::STATUS_NOT_COLLECTED)); |
142 |
- item->AppendElement(new ItemEntity("loginuid", "", OvalEnum::DATATYPE_INTEGER, OvalEnum::STATUS_NOT_COLLECTED)); |
143 |
- item->AppendElement(new ItemEntity("posix_capability", "", OvalEnum::DATATYPE_STRING, OvalEnum::STATUS_NOT_COLLECTED)); |
144 |
-- item->AppendElement(new ItemEntity("selinux_domain_label", "", OvalEnum::DATATYPE_STRING, OvalEnum::STATUS_NOT_COLLECTED)); |
145 |
-+/* item->AppendElement(new ItemEntity("selinux_domain_label", "", OvalEnum::DATATYPE_STRING, OvalEnum::STATUS_NOT_COLLECTED));*/ |
146 |
- item->AppendElement(new ItemEntity("session_id", "", OvalEnum::DATATYPE_INTEGER, OvalEnum::STATUS_NOT_COLLECTED)); |
147 |
- |
148 |
- items->push_back(item); |
149 |
|
150 |
diff --git a/app-forensics/ovaldi/files/ovaldi-5.10.1.4-strnicmp.patch b/app-forensics/ovaldi/files/ovaldi-5.10.1.4-strnicmp.patch |
151 |
deleted file mode 100644 |
152 |
index fc127efd3cd..00000000000 |
153 |
--- a/app-forensics/ovaldi/files/ovaldi-5.10.1.4-strnicmp.patch |
154 |
+++ /dev/null |
155 |
@@ -1,11 +0,0 @@ |
156 |
---- src/Main.h.old 2010-10-22 14:59:13.000000000 +0200 |
157 |
-+++ src/Main.h 2010-10-22 14:59:38.000000000 +0200 |
158 |
-@@ -38,7 +38,7 @@ |
159 |
- #endif |
160 |
- |
161 |
- #ifdef LINUX |
162 |
--# define STRNICMP strnicmp |
163 |
-+# define STRNICMP strncasecmp |
164 |
- #elif defined SUNOS |
165 |
- # define STRNICMP strncasecmp |
166 |
- #elif defined DARWIN |
167 |
|
168 |
diff --git a/app-forensics/ovaldi/files/ovaldi-5.10.1.4-xerces3.patch b/app-forensics/ovaldi/files/ovaldi-5.10.1.4-xerces3.patch |
169 |
deleted file mode 100644 |
170 |
index 9350029312c..00000000000 |
171 |
--- a/app-forensics/ovaldi/files/ovaldi-5.10.1.4-xerces3.patch |
172 |
+++ /dev/null |
173 |
@@ -1,283 +0,0 @@ |
174 |
---- src/XmlProcessor.h.old 2011-08-18 14:35:41.608703233 +0200 |
175 |
-+++ src/XmlProcessor.h 2011-08-18 14:39:21.835597094 +0200 |
176 |
-@@ -38,14 +38,17 @@ |
177 |
- #include <string> |
178 |
- |
179 |
- // required xerces includes |
180 |
--#include <xercesc/dom/DOMBuilder.hpp> |
181 |
- #include <xercesc/dom/DOMDocument.hpp> |
182 |
- #include <xercesc/dom/DOMErrorHandler.hpp> |
183 |
- #include <xercesc/dom/DOMError.hpp> |
184 |
- |
185 |
- // for entity resolver |
186 |
--#include <xercesc/dom/DOMEntityResolver.hpp> |
187 |
--#include <xercesc/dom/DOMInputSource.hpp> |
188 |
-+ |
189 |
-+#include <xercesc/dom/DOMImplementationRegistry.hpp> |
190 |
-+#include <xercesc/dom/DOMLSParser.hpp> |
191 |
-+#include <xercesc/sax/EntityResolver.hpp> |
192 |
-+#include <xercesc/sax/InputSource.hpp> |
193 |
-+#include <xercesc/sax2/SAX2XMLReader.hpp> |
194 |
- |
195 |
- #include "Exception.h" |
196 |
- |
197 |
-@@ -53,12 +56,14 @@ |
198 |
- This class extends the default DOMEntityResolver and implments the resolve entity method |
199 |
- to support |
200 |
- */ |
201 |
--class DataDirResolver : public xercesc::DOMEntityResolver { |
202 |
-+class DataDirResolver : public xercesc::EntityResolver { |
203 |
- public: |
204 |
- /** |
205 |
- * |
206 |
- */ |
207 |
-- xercesc::DOMInputSource *resolveEntity (const XMLCh *const publicId, const XMLCh *const systemId, const XMLCh *const baseURI); |
208 |
-+// xercesc::DOMInputSource *resolveEntity (const XMLCh *const publicId, const XMLCh *const systemId, const XMLCh *const baseURI); |
209 |
-+ xercesc::InputSource *resolveEntity (const XMLCh *const publicId, const XMLCh *const systemId); |
210 |
-+ xercesc::DOMLSInput *resolveEntity (const XMLCh *const publicId, const XMLCh *const systemId, const XMLCh *const baseURI); |
211 |
- }; |
212 |
- |
213 |
- /** |
214 |
-@@ -144,7 +149,7 @@ |
215 |
- * owns the documents it builds. Users must manually destroy |
216 |
- * those documents. |
217 |
- */ |
218 |
-- xercesc::DOMBuilder *parserWithCallerAdoption; |
219 |
-+ xercesc::DOMLSParser *parserWithCallerAdoption; |
220 |
- |
221 |
- /** |
222 |
- * This parser doesn't have user-adoption switched on, so it |
223 |
-@@ -156,7 +161,7 @@ |
224 |
- * appear to ever be switched off. So to make sure this isn't |
225 |
- * leaking memory, I have created separate parsers. |
226 |
- */ |
227 |
-- xercesc::DOMBuilder *parser; |
228 |
-+ xercesc::DOMLSParser *parser; |
229 |
- |
230 |
- /** The entity resolver for both parsers. */ |
231 |
- DataDirResolver resolver; |
232 |
---- src/probes/independent/XmlFileContentProbe.cpp.old 2010-10-22 14:49:22.000000000 +0200 |
233 |
-+++ src/probes/independent/XmlFileContentProbe.cpp 2010-10-22 14:51:39.000000000 +0200 |
234 |
-@@ -419,12 +419,24 @@ |
235 |
- return new DummyEntityResolver::DoNothingBinInputStream(); |
236 |
- } |
237 |
- |
238 |
-+#if XERCES_VERSION_MAJOR < 3 |
239 |
- unsigned int DummyEntityResolver::DoNothingBinInputStream::curPos() const |
240 |
-+#else |
241 |
-+const XMLCh* DummyEntityResolver::DoNothingBinInputStream::getContentType() const |
242 |
-+{ |
243 |
-+ return NULL; |
244 |
-+} |
245 |
-+XMLFilePos DummyEntityResolver::DoNothingBinInputStream::curPos() const |
246 |
-+#endif |
247 |
- { |
248 |
- return 0; |
249 |
- } |
250 |
- |
251 |
-+#if XERCES_VERSION_MAJOR < 3 |
252 |
- unsigned int DummyEntityResolver::DoNothingBinInputStream::readBytes(XMLByte *const /*toFill*/, const unsigned int /*maxToRead*/) |
253 |
-+#else |
254 |
-+XMLSize_t DummyEntityResolver::DoNothingBinInputStream::readBytes(XMLByte *const toFill, XMLSize_t maxToRead) |
255 |
-+#endif |
256 |
- { |
257 |
- return 0; |
258 |
- } |
259 |
---- src/probes/independent/XmlFileContentProbe.h.old 2010-10-22 14:55:47.000000000 +0200 |
260 |
-+++ src/probes/independent/XmlFileContentProbe.h 2010-10-22 14:57:00.000000000 +0200 |
261 |
-@@ -134,8 +134,14 @@ |
262 |
- class DoNothingBinInputStream : public BinInputStream |
263 |
- { |
264 |
- public: |
265 |
-+#if XERCES_VERSION_MAJOR < 3 |
266 |
- virtual unsigned int curPos() const; |
267 |
- virtual unsigned int readBytes(XMLByte *const toFill, const unsigned int maxToRead); |
268 |
-+#else |
269 |
-+ virtual XMLFilePos curPos() const; |
270 |
-+ virtual const XMLCh* getContentType() const; |
271 |
-+ virtual XMLSize_t readBytes(XMLByte *const toFill, XMLSize_t maxToRead); |
272 |
-+#endif |
273 |
- }; |
274 |
- }; |
275 |
- |
276 |
---- src/XmlCommon.cpp.old |
277 |
-+++ src/XmlCommon.cpp |
278 |
-@@ -546,7 +546,11 @@ void XmlCommon::AddSchemaLocation(XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *do |
279 |
- string XmlCommon::GetNamespace(DOMElement *element) { |
280 |
- |
281 |
- string xmlns = ""; |
282 |
-+#if XERCES_VERSION_MAJOR < 3 |
283 |
- xmlns = XmlCommon::ToString(element->getTypeInfo()->getNamespace()); |
284 |
-+#else |
285 |
-+ xmlns = XmlCommon::ToString(element->getSchemaTypeInfo()->getTypeNamespace()); |
286 |
-+#endif |
287 |
- if (xmlns.compare("") == 0) { |
288 |
- xmlns = ""; |
289 |
- } |
290 |
---- src/XmlProcessor.cpp.old 2013-01-14 15:16:14.000000000 +0100 |
291 |
-+++ src/XmlProcessor.cpp 2013-01-14 15:19:20.000000000 +0100 |
292 |
-@@ -35,7 +35,6 @@ |
293 |
- // for dom Writer |
294 |
- #include <xercesc/dom/DOMImplementation.hpp> |
295 |
- #include <xercesc/dom/DOMImplementationLS.hpp> |
296 |
--#include <xercesc/dom/DOMWriter.hpp> |
297 |
- #include <xercesc/framework/StdOutFormatTarget.hpp> |
298 |
- #include <xercesc/framework/LocalFileFormatTarget.hpp> |
299 |
- #include <xercesc/util/XMLUni.hpp> |
300 |
-@@ -50,11 +49,26 @@ |
301 |
- using namespace std; |
302 |
- using namespace xercesc; |
303 |
- |
304 |
-+#if XERCES_VERSION_MAJOR < 3 |
305 |
-+#define SetParameter(serializer,n,v) if (serializer->canSetFeature(n,v)) serializer->setFeature(n,v) |
306 |
-+#else |
307 |
-+#define SetParameter(serializer,n,v) if (serializer->getDomConfig()->canSetParameter(n,v)) serializer->getDomConfig()->setParameter(n,v) |
308 |
-+#endif |
309 |
-+ |
310 |
- //****************************************************************************************// |
311 |
- // DataDirResolver Class // |
312 |
- //****************************************************************************************// |
313 |
-- |
314 |
-+#if XERCES_VERSION_MAJOR < 3 |
315 |
- DOMInputSource* DataDirResolver::resolveEntity (const XMLCh *const /*publicId*/, const XMLCh *const systemId, const XMLCh *const /*baseURI*/) { |
316 |
-+#else |
317 |
-+InputSource* DataDirResolver::resolveEntity(const XMLCh* publicId, const XMLCh* systemId) |
318 |
-+{ |
319 |
-+ return NULL; |
320 |
-+ //return DataDirResolver::resolveEntity (publicId, systemId, NULL); |
321 |
-+} |
322 |
-+ |
323 |
-+DOMLSInput* DataDirResolver::resolveEntity (const XMLCh *const publicId, const XMLCh *const systemId, const XMLCh *const baseURI) { |
324 |
-+#endif |
325 |
- string path = ""; |
326 |
- size_t last; |
327 |
- string schemapath = Common::GetSchemaPath(); |
328 |
-@@ -127,7 +141,7 @@ |
329 |
- parserWithCallerAdoption = makeParser(schemaLocation); |
330 |
- // add one extra feature on this parser to prevent it from |
331 |
- // taking ownership of its documents. |
332 |
-- parserWithCallerAdoption->setFeature(XMLUni::fgXercesUserAdoptsDOMDocument, true); |
333 |
-+ SetParameter(parserWithCallerAdoption, XMLUni::fgXercesUserAdoptsDOMDocument, true); |
334 |
- |
335 |
- } catch (const XMLException& toCatch) { |
336 |
- string errMsg = "Error: An error occured durring initialization of the xml utilities:\n"; |
337 |
-@@ -156,32 +170,40 @@ |
338 |
- XMLPlatformUtils::Terminate(); |
339 |
- } |
340 |
- |
341 |
--DOMBuilder *XmlProcessor::makeParser(const string &schemaLocation) { |
342 |
-+DOMLSParser *XmlProcessor::makeParser(const string &schemaLocation) { |
343 |
- // Instantiate the DOM parser. |
344 |
- static const XMLCh gLS[] = { chLatin_L, chLatin_S, chNull }; |
345 |
- DOMImplementation *impl = DOMImplementationRegistry::getDOMImplementation(gLS); |
346 |
- |
347 |
-- DOMBuilder *parser = ((DOMImplementationLS*)impl)->createDOMBuilder(DOMImplementationLS::MODE_SYNCHRONOUS, 0); |
348 |
-+#if XERCES_VERSION_MAJOR < 3 |
349 |
-+ DOMLSParser *parser = ((DOMImplementationLS*)impl)->createDOMLSParser(DOMImplementationLS::MODE_SYNCHRONOUS, 0); |
350 |
-+#else |
351 |
-+ DOMLSParser *parser = ((DOMImplementationLS*)impl)->createLSParser(DOMImplementationLS::MODE_SYNCHRONOUS, 0); |
352 |
-+#endif |
353 |
- |
354 |
- /////////////////////////////////////////////////////// |
355 |
- // Set features on the builder |
356 |
- /////////////////////////////////////////////////////// |
357 |
- |
358 |
-- parser->setFeature(XMLUni::fgDOMComments, false); // Discard Comment nodes in the document. |
359 |
-- parser->setFeature(XMLUni::fgDOMDatatypeNormalization, true); // Let the validation process do its datatype normalization that is defined in the used schema language. |
360 |
-- parser->setFeature(XMLUni::fgDOMNamespaces, true); // Perform Namespace processing |
361 |
-- parser->setFeature(XMLUni::fgDOMValidation, true); // Report all validation errors. |
362 |
-- parser->setFeature(XMLUni::fgXercesSchema, true); // Enable the parser's schema support. |
363 |
-- parser->setFeature(XMLUni::fgXercesSchemaFullChecking, true); // Enable full schema constraint checking, including checking which may be time-consuming or memory intensive. Currently, particle unique attribution constraint checking and particle derivation restriction checking are controlled by this option. |
364 |
-- parser->setFeature(XMLUni::fgXercesValidationErrorAsFatal, true); // The parser will treat validation error as fatal and will exit |
365 |
-- parser->setFeature(XMLUni::fgXercesDOMHasPSVIInfo, true); // Enable storing of PSVI information in element and attribute nodes. |
366 |
-+ SetParameter(parser, XMLUni::fgDOMComments, false); // Discard Comment nodes in the document. |
367 |
-+ SetParameter(parser, XMLUni::fgDOMDatatypeNormalization, true); // Let the validation process do its datatype normalization that is defined in the used schema language. |
368 |
-+ SetParameter(parser, XMLUni::fgDOMNamespaces, true); // Perform Namespace processing |
369 |
-+ SetParameter(parser, XMLUni::fgDOMValidate, true); // Report all validation errors. |
370 |
-+ SetParameter(parser, XMLUni::fgXercesSchema, true); // Enable the parser's schema support. |
371 |
-+ SetParameter(parser, XMLUni::fgXercesSchemaFullChecking, true); // Enable full schema constraint checking, including checking which may be time-consuming or memory intensive. Currently, particle unique attribution constraint checking and particle derivation restriction checking are controlled by this option. |
372 |
-+ SetParameter(parser, XMLUni::fgXercesValidationErrorAsFatal, true); // The parser will treat validation error as fatal and will exit |
373 |
-+ SetParameter(parser, XMLUni::fgXercesDOMHasPSVIInfo, true); // Enable storing of PSVI information in element and attribute nodes. |
374 |
- |
375 |
- /////////////////////////////////////////////////////// |
376 |
- //****************************************************************************************// |
377 |
- // The following code was added to handle air-gap operation // |
378 |
- //****************************************************************************************// |
379 |
- /* Look for XML schemas in local directory instead of Internet */ |
380 |
-+#if XERCES_VERSION_MAJOR < 3 |
381 |
- parser->setEntityResolver (&resolver); |
382 |
-+#else |
383 |
-+ parser->getDomConfig()->setParameter(XMLUni::fgXercesEntityResolver, &resolver); |
384 |
-+#endif |
385 |
- //****************************************************************************************// |
386 |
- // End of air-gap code // |
387 |
- //****************************************************************************************// |
388 |
-@@ -189,7 +211,11 @@ |
389 |
- /////////////////////////////////////////////////////// |
390 |
- // Add an Error Handler |
391 |
- /////////////////////////////////////////////////////// |
392 |
-+#if XERCES_VERSION_MAJOR < 3 |
393 |
- parser->setErrorHandler(&errHandler); |
394 |
-+#else |
395 |
-+ parser->getDomConfig()->setParameter(XMLUni::fgDOMErrorHandler, &errHandler); |
396 |
-+#endif |
397 |
- |
398 |
- // Fix a schema location if possible, so instance documents don't |
399 |
- // have to set the schemaLocation attribute. And if they do, this |
400 |
-@@ -197,7 +223,7 @@ |
401 |
- // overriding of the value in instance documents. |
402 |
- if (!schemaLocation.empty()) { |
403 |
- XMLCh *schemaLocationCstr = XMLString::transcode(schemaLocation.c_str()); |
404 |
-- parser->setProperty(XMLUni::fgXercesSchemaExternalSchemaLocation, schemaLocationCstr); |
405 |
-+ SetParameter(parser, XMLUni::fgXercesSchemaExternalSchemaLocation, schemaLocationCstr); |
406 |
- XMLString::release(&schemaLocationCstr); |
407 |
- } |
408 |
- |
409 |
-@@ -279,23 +305,19 @@ |
410 |
- XMLCh tempStr[100]; |
411 |
- XMLString::transcode("LS", tempStr, 99); |
412 |
- DOMImplementation *impl = DOMImplementationRegistry::getDOMImplementation(tempStr); |
413 |
-+#if XERCES_VERSION_MAJOR < 3 |
414 |
- DOMWriter *theSerializer = ((DOMImplementationLS*)impl)->createDOMWriter(); |
415 |
-+#else |
416 |
-+ DOMLSSerializer *theSerializer = ((DOMImplementationLS*)impl)->createLSSerializer(); |
417 |
-+#endif |
418 |
- |
419 |
-- // set feature if the serializer supports the feature/mode |
420 |
-- if (theSerializer->canSetFeature(XMLUni::fgDOMWRTSplitCdataSections, true)) |
421 |
-- theSerializer->setFeature(XMLUni::fgDOMWRTSplitCdataSections, true); |
422 |
- |
423 |
-- if (theSerializer->canSetFeature(XMLUni::fgDOMWRTDiscardDefaultContent, true)) |
424 |
-- theSerializer->setFeature(XMLUni::fgDOMWRTDiscardDefaultContent, true); |
425 |
-- |
426 |
-- if (theSerializer->canSetFeature(XMLUni::fgDOMWRTFormatPrettyPrint, true)) |
427 |
-- theSerializer->setFeature(XMLUni::fgDOMWRTFormatPrettyPrint, true); |
428 |
-- |
429 |
-- if (theSerializer->canSetFeature(XMLUni::fgDOMWRTBOM, false)) |
430 |
-- theSerializer->setFeature(XMLUni::fgDOMWRTBOM, false); |
431 |
-- |
432 |
-- //if (theSerializer->canSetFeature(XMLUni::fgDOMWRTDiscardDefaultContent, true)) |
433 |
-- // theSerializer->setFeature(XMLUni::fgDOMWRTBOM, true); |
434 |
-+ // set feature if the serializer supports the feature/mode |
435 |
-+ SetParameter(theSerializer, XMLUni::fgDOMWRTSplitCdataSections, true); |
436 |
-+ SetParameter(theSerializer, XMLUni::fgDOMWRTDiscardDefaultContent, true); |
437 |
-+ SetParameter(theSerializer, XMLUni::fgDOMWRTFormatPrettyPrint, true); |
438 |
-+ SetParameter(theSerializer, XMLUni::fgDOMWRTBOM, false); |
439 |
-+ //SetParameter(theSerializer, XMLUni::fgDOMWRTBOM, true); |
440 |
- |
441 |
- // |
442 |
- // Plug in a format target to receive the resultant |
443 |
-@@ -313,7 +335,13 @@ |
444 |
- // |
445 |
- // do the serialization through DOMWriter::writeNode(); |
446 |
- // |
447 |
-+#if XERCES_VERSION_MAJOR < 3 |
448 |
- theSerializer->writeNode(myFormTarget, *doc); |
449 |
-+#else |
450 |
-+ DOMLSOutput *output = ((DOMImplementationLS*)impl)->createLSOutput(); |
451 |
-+ output->setByteStream(myFormTarget); |
452 |
-+ theSerializer->write(doc, output); |
453 |
-+#endif |
454 |
- |
455 |
- theSerializer->release(); |
456 |
- delete myFormTarget; |
457 |
|
458 |
diff --git a/app-forensics/ovaldi/ovaldi-5.10.1.4.ebuild b/app-forensics/ovaldi/ovaldi-5.10.1.4.ebuild |
459 |
deleted file mode 100644 |
460 |
index c23af38bfe5..00000000000 |
461 |
--- a/app-forensics/ovaldi/ovaldi-5.10.1.4.ebuild |
462 |
+++ /dev/null |
463 |
@@ -1,94 +0,0 @@ |
464 |
-# Copyright 1999-2017 Gentoo Foundation |
465 |
-# Distributed under the terms of the GNU General Public License v2 |
466 |
- |
467 |
-EAPI=5 |
468 |
- |
469 |
-inherit eutils toolchain-funcs |
470 |
- |
471 |
-DESCRIPTION="Free implementation of OVAL" |
472 |
-HOMEPAGE="http://oval.mitre.org/language/interpreter.html" |
473 |
-SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.bz2" |
474 |
- |
475 |
-LICENSE="BSD" |
476 |
-SLOT="0" |
477 |
-KEYWORDS="~amd64 ~x86" |
478 |
-IUSE="acl ldap selinux" |
479 |
- |
480 |
-CDEPEND="dev-libs/libgcrypt:0 |
481 |
- dev-libs/libpcre |
482 |
- dev-libs/xalan-c |
483 |
- dev-libs/xerces-c |
484 |
- sys-apps/util-linux |
485 |
- sys-libs/libcap |
486 |
- acl? ( sys-apps/acl ) |
487 |
- ldap? ( net-nds/openldap )" |
488 |
-DEPEND="${CDEPEND} |
489 |
- sys-apps/sed" |
490 |
-RDEPEND="${CDEPEND} |
491 |
- selinux? ( sys-libs/libselinux )" |
492 |
- |
493 |
-S="${WORKDIR}/${P}-src" |
494 |
- |
495 |
-src_prepare() { |
496 |
- #Ovaldi do not support xerces 3, but portage have only that |
497 |
- epatch "${FILESDIR}"/${P}-xerces3.patch |
498 |
- sed -i 's,xercesc::DOMBuilder,xercesc::DOMLSParser,' src/XmlProcessor.h || die |
499 |
- sed -i 's,DOMBuilder,DOMLSParser,' src/XmlProcessor.cpp || die |
500 |
- |
501 |
- epatch "${FILESDIR}"/${P}-strnicmp.patch |
502 |
- |
503 |
- if ! use ldap ; then |
504 |
- einfo "Disabling LDAP probes" |
505 |
- sed -i 's,.*ldap,//&,' src/linux/ProbeFactory.cpp || die |
506 |
- sed -i 's,.*LDAP,//&,' src/linux/ProbeFactory.cpp || die |
507 |
- sed -i 's/-lldap//' project/linux/Makefile || die |
508 |
- sed -i 's/-llber//' project/linux/Makefile || die |
509 |
- sed -i 's/.*LDAPProbe.h.*//' src/linux/ProbeFactory.h || die |
510 |
- rm src/probes/independent/LDAPProbe.{cpp,h} || die |
511 |
- fi |
512 |
- |
513 |
- if ! use acl ; then |
514 |
- sed -i 's,.*libacl,//&,' src/probes/unix/FileProbe.h || die |
515 |
- epatch "${FILESDIR}"/disable-acl.patch |
516 |
- sed -i 's, -lacl , ,' project/linux/Makefile || die |
517 |
- fi |
518 |
- |
519 |
- einfo "Disabling rpm probes" |
520 |
- sed -i 's/^PACKAGE_RPM/#PACKAGE_RPM/' project/linux/Makefile || die |
521 |
- |
522 |
- # same thing for dpkg, but package dpkg is not sufficient, needs app-arch/apt-pkg that is not on tree |
523 |
- einfo "Disabling dpkg probes" |
524 |
- sed -i 's/^PACKAGE_DPKG/#PACKAGE_DPKG/' project/linux/Makefile || die |
525 |
- |
526 |
- #Disabling SELinux support |
527 |
- if ! use selinux ; then |
528 |
- rm src/probes/linux/SelinuxSecurityContextProbe.cpp || die |
529 |
- rm src/probes/linux/SelinuxBooleanProbe.cpp || die |
530 |
- rm src/probes/linux/SelinuxBooleanProbe.h || die |
531 |
- epatch "${FILESDIR}"/${P}-disable-selinux-probes.patch |
532 |
- sed -i 's,.*selinux.*,//&,' src/linux/ProbeFactory.cpp || die |
533 |
- sed -i 's,.*Selinux.*,//&,' src/linux/ProbeFactory.cpp || die |
534 |
- sed -i 's,.*selinux.*,//&,' src/linux/ProbeFactory.h || die |
535 |
- sed -i 's,.*Selinux.*,//&,' src/linux/ProbeFactory.h || die |
536 |
- sed -i 's,.*SecurityContextGuard.h.*,//&,' src/probes/unix/Process58Probe.cpp || die |
537 |
- rm src/linux/SecurityContextGuard.h || die |
538 |
- sed -i 's, -lselinux,,' project/linux/Makefile || die |
539 |
- fi |
540 |
- # respect CXXFLAGS and CXX |
541 |
- sed -i -e '/^CPPFLAGS/s/$(INCDIRS)/$(CXXFLAGS) \0/' project/linux/Makefile || die |
542 |
- tc-export CXX |
543 |
-} |
544 |
- |
545 |
-src_compile () { |
546 |
- emake -C project/linux |
547 |
-} |
548 |
- |
549 |
-src_install () { |
550 |
- # no make install in Makefile |
551 |
- dosbin project/linux/Release/ovaldi project/linux/ovaldi.sh |
552 |
- dodir /var/log/${PN} |
553 |
- insinto /usr/share/${PN} |
554 |
- doins xml/* |
555 |
- dodoc docs/{README.txt,version.txt} |
556 |
- doman docs/ovaldi.1 |
557 |
-} |