--- uns-3.2.0.24.orig/BaseWSManClient.cpp +++ uns-3.2.0.24/BaseWSManClient.cpp @@ -52,9 +52,11 @@ #else #include #include +#include #endif #include +#include #define WSMAN_PATH "/wsman" #define WSMAN_HTTPS_SCHEME "https" --- uns-3.2.0.24.orig/EACWSManClient.cpp +++ uns-3.2.0.24/EACWSManClient.cpp @@ -44,6 +44,8 @@ #include "EACWSManClient.h" #include "UNSCommonDefs.h" +#include + const std::string EACWSManClient::DEFAULT_USER = "$$eac"; const std::string EACWSManClient::DEFAULT_PASS = "$$eac"; --- uns-3.2.0.24.orig/AMTPPSharedData.cpp +++ uns-3.2.0.24/AMTPPSharedData.cpp @@ -58,6 +58,8 @@ #include #include "CryptUtils.h" +#include +#include AMTPPSharedData::AMTPPSharedData(const char * name, bool bOwner /*= false*/, bool bPublic /*= false*/) : _name(name), --- uns-3.2.0.24.orig/CryptUtils.cpp +++ uns-3.2.0.24/CryptUtils.cpp @@ -49,6 +49,8 @@ #endif #include "CryptUtils.h" #include +#include +#include #ifdef _WIN32 #include #include --- uns-3.2.0.24.orig/Options.cpp +++ uns-3.2.0.24/Options.cpp @@ -53,6 +53,8 @@ #include "Options.h" #include +#include +#include #include #ifndef _WIN32 --- uns-3.2.0.24.orig/WSMAN_Common/Src/XMLTypes.cpp +++ uns-3.2.0.24/WSMAN_Common/Src/XMLTypes.cpp @@ -40,6 +40,8 @@ #include "XMLTypes.h" #include +#include +#include #define MAX_STRING_SIZE 21 #define BASE_10 10 --- uns-3.2.0.24.orig/WSMAN_Common/Src/XMLUtils_XRCS.cpp +++ uns-3.2.0.24/WSMAN_Common/Src/XMLUtils_XRCS.cpp @@ -171,7 +171,7 @@ friend class XMLDocImpl; private: DOMElement* domElement; - xercesc_2_7::DOMDocument* domDoc; + xercesc_2_8::DOMDocument* domDoc; public: XMLElementImpl(DOMElement* element) --- uns-3.2.0.24.orig/debian/control +++ uns-3.2.0.24/debian/control @@ -0,0 +1,16 @@ +Source: uns +Section: universe/admin +Priority: extra +Maintainer: Ubuntu Kernel Team +Standards-Version: 3.2.0.0 +Build-Depends: cdbs, libssl-dev, libpam0g-dev, libxml2-dev, libcurl4-openssl-dev, gsoap, libxerces-c2-dev, libopenwsman-dev (>= 2.0.0b1-0ubuntu2), quilt + +Package: uns +Architecture: any +Depends: ${shlibs:Depends} +Description: User Notification Service for Intel AMT Technology + The UNS receives messages from Intel AMT and write them to the local OS event + log for the purpose of notifying end users of predefined events such as when + critical System Defense policies are applied by the ME Firmware. The service + is meant to be run as a daemon. Messages from the service will be sent to the + system syslog. All UNS messages will be marked with a source of "IntelĀ® AMT". --- uns-3.2.0.24.orig/debian/copyright +++ uns-3.2.0.24/debian/copyright @@ -0,0 +1,37 @@ +Part of "Intel(R) Active Management Technology (Intel(R) AMT) + User Notification Service (UNS)" + +Copyright (c) 2007 Intel Corp. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright + notice, this list of conditions, and the following disclaimer, + without modification. +2. Redistributions in binary form must reproduce at minimum a disclaimer + substantially similar to the "NO WARRANTY" disclaimer below + ("Disclaimer") and any redistribution must be conditioned upon + including a substantially similar Disclaimer requirement for further + binary redistribution. +3. Neither the names of the above-listed copyright holders nor the names + of any contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +Alternatively, this software may be distributed under the terms of the +GNU General Public License ("GPL") version 2 as published by the Free +Software Foundation. + +NO WARRANTY +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING +IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. --- uns-3.2.0.24.orig/debian/rules +++ uns-3.2.0.24/debian/rules @@ -0,0 +1,6 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/patchsys-quilt.mk +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/autotools-files.mk +include /usr/share/cdbs/1/class/autotools.mk --- uns-3.2.0.24.orig/debian/prerm +++ uns-3.2.0.24/debian/prerm @@ -0,0 +1,3 @@ +#!/bin/sh -e + +#DEBHELPER# --- uns-3.2.0.24.orig/debian/postinst +++ uns-3.2.0.24/debian/postinst @@ -0,0 +1,3 @@ +#!/bin/sh -e + +#DEBHELPER# --- uns-3.2.0.24.orig/debian/compat +++ uns-3.2.0.24/debian/compat @@ -0,0 +1 @@ +5 --- uns-3.2.0.24.orig/debian/changelog +++ uns-3.2.0.24/debian/changelog @@ -0,0 +1,38 @@ +uns (3.2.0.24-0ubuntu5) karmic; urgency=low + + * debian/patches/include_stdio.patch: include cstdio before calling + fopen() et al., gcc-4.4 is more strict about these declarations being + available. + + -- Steve Langasek Wed, 14 Oct 2009 09:52:17 +0000 + +uns (3.2.0.24-0ubuntu4) jaunty; urgency=low + + * debian/control: + - Build-depends on libxerces-c2-dev instead of + libxerces27-dev (LP: #284753). + * Fixed missing includes, fixes FTBFS. + * WSMAN_Common/Src/XMLUtils_XRCS.cpp: + - Uses xercesc_2_8 namespace instead of xercesc_2_7, + fixes FTBFS (LP: #156208). + + -- Alessio Treglia Sat, 13 Dec 2008 13:53:39 +0100 + +uns (3.2.0.24-0ubuntu3) hardy; urgency=low + + * Re-upload with tighter build-deps on libopenwsman-dev to make sure we get + fixed pkg. + + -- Ben Collins Tue, 04 Mar 2008 13:37:57 -0500 + +uns (3.2.0.24-0ubuntu2) hardy; urgency=low + + * Whoops, add build-dep for libopenwsman-dev + + -- Ben Collins Tue, 04 Mar 2008 09:25:01 -0500 + +uns (3.2.0.24-0ubuntu1) hardy; urgency=low + + * Initial release + + -- Ben Collins Fri, 29 Feb 2008 14:06:25 -0500 --- uns-3.2.0.24.orig/debian/patches/series +++ uns-3.2.0.24/debian/patches/series @@ -0,0 +1 @@ +include_stdio.patch --- uns-3.2.0.24.orig/debian/patches/include_stdio.patch +++ uns-3.2.0.24/debian/patches/include_stdio.patch @@ -0,0 +1,85 @@ +Index: uns-3.2.0.24/BaseWSManClient.cpp +=================================================================== +--- uns-3.2.0.24.orig/BaseWSManClient.cpp ++++ uns-3.2.0.24/BaseWSManClient.cpp +@@ -57,6 +57,7 @@ + + #include + #include ++#include + + #define WSMAN_PATH "/wsman" + #define WSMAN_HTTPS_SCHEME "https" +Index: uns-3.2.0.24/EACWSManClient.cpp +=================================================================== +--- uns-3.2.0.24.orig/EACWSManClient.cpp ++++ uns-3.2.0.24/EACWSManClient.cpp +@@ -45,6 +45,7 @@ + #include "UNSCommonDefs.h" + + #include ++#include + + const std::string EACWSManClient::DEFAULT_USER = "$$eac"; + const std::string EACWSManClient::DEFAULT_PASS = "$$eac"; +Index: uns-3.2.0.24/LinuxEventLog.cpp +=================================================================== +--- uns-3.2.0.24.orig/LinuxEventLog.cpp ++++ uns-3.2.0.24/LinuxEventLog.cpp +@@ -49,6 +49,7 @@ + #include + + #include ++#include + + + //ctor +Index: uns-3.2.0.24/UNSEventLogger.cpp +=================================================================== +--- uns-3.2.0.24.orig/UNSEventLogger.cpp ++++ uns-3.2.0.24/UNSEventLogger.cpp +@@ -50,6 +50,7 @@ + #endif + #include "UNSEventLogger.h" + #include ++#include + + #define UNS_SERVICE_START "Intel(R) User Notification Service started." + #define UNS_SERVICE_STOPPED "Intel(R) User Notification Service stopped." +Index: uns-3.2.0.24/UNSWSManClient.cpp +=================================================================== +--- uns-3.2.0.24.orig/UNSWSManClient.cpp ++++ uns-3.2.0.24/UNSWSManClient.cpp +@@ -55,6 +55,7 @@ + #include "UNSCommonDefs.h" + #include "UNSStatus.h" + #include "openssl/rand.h" ++#include + + using namespace CimClassNamespace; + const int UNSWSManClient::GENERATED_USERNAME_LEN = 8; +Index: uns-3.2.0.24/WSMAN_Common/Src/XMLTypes.cpp +=================================================================== +--- uns-3.2.0.24.orig/WSMAN_Common/Src/XMLTypes.cpp ++++ uns-3.2.0.24/WSMAN_Common/Src/XMLTypes.cpp +@@ -42,6 +42,7 @@ + #include + #include + #include ++#include + + #define MAX_STRING_SIZE 21 + #define BASE_10 10 +Index: uns-3.2.0.24/AMTStatus/IPCBufferLinux.cpp +=================================================================== +--- uns-3.2.0.24.orig/AMTStatus/IPCBufferLinux.cpp ++++ uns-3.2.0.24/AMTStatus/IPCBufferLinux.cpp +@@ -120,7 +120,7 @@ + bool IPCBuffer::init(const char* pName, bool bIsOwner, unsigned int nSize, bool bSecure, + unsigned long nAccess /*= IPC_BUF_ACCESS_READ | IPC_BUF_ACCESS_WRITE*/) + { +- char *pmp; ++ const char *pmp; + int i; + int open_flag = 0; + int open_mode = 0;