Compare commits
38 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| be62d32a71 | |||
| 5e3887e0b9 | |||
| 357e1d53b4 | |||
| 85e2b2dca5 | |||
| a97d55fba8 | |||
| 277468a23c | |||
| 06fb6406fe | |||
| 3e9a4e1762 | |||
| a9a4f48259 | |||
| e4a1245a35 | |||
| 11acc803c6 | |||
| e6afca396c | |||
| 16bed8b00c | |||
| 797f465467 | |||
| b833a80033 | |||
| 047514163b | |||
| 4e5ae91a5a | |||
| 9692028410 | |||
| bc7d7061fc | |||
| 0c2cd43c44 | |||
| 6d5c9ba6a2 | |||
| 5c0b32f043 | |||
| 4016df62f0 | |||
| 0b25a0f125 | |||
| ab6512a245 | |||
| 628aec0f9f | |||
| 7b60e699b7 | |||
| 6091aaca73 | |||
| f23808cc97 | |||
| 0acef03521 | |||
| 45d316bdc4 | |||
| 2808c5ea43 | |||
| 7a03ef5932 | |||
| c8234dd49c | |||
| 6206abc073 | |||
| eb3d4c4e47 | |||
| a022e0cf6b | |||
| 2cdcef9e0a |
+8
-1
@@ -1 +1,8 @@
|
||||
openwsman-2.2.0.tar.bz2
|
||||
openwsman-2.2.3.tar.bz2
|
||||
/openwsman-2.2.4.tar.bz2
|
||||
/openwsman-2.2.5.tar.bz2
|
||||
/openwsman-2.2.7.tar.bz2
|
||||
/openwsman-2.3.0.tar.bz2
|
||||
/openwsman-2.3.5.tar.bz2
|
||||
/openwsman-2.3.6.tar.bz2
|
||||
/openwsmand.8.gz
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
diff -up openwsman-2.2.7/src/server/shttpd/compat_unix.h.orig openwsman-2.2.7/src/server/shttpd/compat_unix.h
|
||||
--- openwsman-2.2.7/src/server/shttpd/compat_unix.h.orig 2012-02-09 13:04:47.528527681 +0100
|
||||
+++ openwsman-2.2.7/src/server/shttpd/compat_unix.h 2012-02-09 13:05:31.582568867 +0100
|
||||
@@ -21,7 +21,7 @@
|
||||
#include <dirent.h>
|
||||
#include <dlfcn.h>
|
||||
#ifndef SSL_LIB
|
||||
-#define SSL_LIB "libssl.so"
|
||||
+#define SSL_LIB "libssl.so.10"
|
||||
#endif
|
||||
#define DIRSEP '/'
|
||||
#define IS_DIRSEP_CHAR(c) ((c) == '/')
|
||||
@@ -1,128 +0,0 @@
|
||||
diff -up ./etc/init/openwsmand.sh.in.new ./etc/init/openwsmand.sh.in
|
||||
--- ./etc/init/openwsmand.sh.in.new 2009-12-16 18:16:06.000000000 -0600
|
||||
+++ ./etc/init/openwsmand.sh.in 2009-12-16 18:16:18.000000000 -0600
|
||||
@@ -4,21 +4,21 @@
|
||||
# Provides: openwsmand
|
||||
# Required-Start: $remote_fs
|
||||
# Required-Stop: $network
|
||||
-# Default-Start: 2 3 4 5
|
||||
-# Default-Stop: 0 1 6
|
||||
+# Default-Start:
|
||||
+# Default-Stop:
|
||||
# Short-Description: Openwsman Daemon
|
||||
# Description: openwsmand
|
||||
# Start/Stop the Openwsman Daemon
|
||||
### END INIT INFO
|
||||
#
|
||||
#
|
||||
-# chkconfig: 2345 36 64
|
||||
+# chkconfig: - 36 64
|
||||
# description: Openwsman Daemon
|
||||
# processname: openwsmand
|
||||
|
||||
NAME=openwsmand
|
||||
DAEMON=/usr/sbin/$NAME
|
||||
-OPTIONS=
|
||||
+OPTIONS=-S
|
||||
PIDFILE=/var/run/$NAME.pid
|
||||
|
||||
if [ $EUID != 0 ]; then
|
||||
@@ -37,12 +37,14 @@ lockfile=${SVIlock:-/var/lock/subsys/$NA
|
||||
if [ -f "/etc/sysconfig/openwsman" ]; then
|
||||
. /etc/sysconfig/openwsman
|
||||
fi
|
||||
-# See how we were called.
|
||||
-. /etc/rc.status
|
||||
|
||||
-# Reset status of this service
|
||||
-rc_reset
|
||||
+if [ -f "/etc/SuSe-release" ]; then
|
||||
+ # See how we were called.
|
||||
+ . /etc/rc.status
|
||||
|
||||
+ # Reset status of this service
|
||||
+ rc_reset
|
||||
+fi
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
@@ -71,16 +73,28 @@ EOF
|
||||
|
||||
# Start daemons.
|
||||
echo -n "Starting the $DESCRIPTIVE"
|
||||
- startproc -p $PIDFILE $DAEMON > /dev/null 2>&1
|
||||
- rc_status -v
|
||||
+ if [ -f "/etc/SuSe-release" ]; then
|
||||
+ startproc -p $PIDFILE $DAEMON > /dev/null 2>&1
|
||||
+ rc_status -v
|
||||
+ elif [ -f "/etc/redhat-release" ]; then
|
||||
+ $DAEMON -S && echo " done." || echo " failed."
|
||||
+ fi
|
||||
+
|
||||
touch $lockfile
|
||||
;;
|
||||
|
||||
stop)
|
||||
# Stop daemons.
|
||||
echo -n "Shutting down $DESCRIPTIVE"
|
||||
- killproc -p $PIDFILE -TERM $DAEMON
|
||||
- rc_status -v
|
||||
+ if [ -f "/etc/SuSe-release" ]; then
|
||||
+ killproc -p $PIDFILE -TERM $DAEMON
|
||||
+ rc_status -v
|
||||
+ elif [ -f "/etc/redhat-release" ]; then
|
||||
+ kill -9 `pidof openwsmand` > /dev/null 2>&1
|
||||
+ if [ $? -eq 0 ]; then
|
||||
+ echo " done"
|
||||
+ fi
|
||||
+ fi
|
||||
rm -f $lockfile
|
||||
;;
|
||||
|
||||
@@ -91,19 +105,40 @@ EOF
|
||||
;;
|
||||
|
||||
reload)
|
||||
- echo -n "Reload service $DESCRIPTIVE"
|
||||
- killproc -p $PIDFILE -HUP $DAEMON
|
||||
- rc_status -v
|
||||
+ echo -n "Reloading service $DESCRIPTIVE"
|
||||
+ if [ -f "/etc-SuSe-release" ]; then
|
||||
+ killproc -p $PIDFILE -HUP $DAEMON
|
||||
+ rc_status -v
|
||||
+ elif [ -f "/etc/redhat-release" ]; then
|
||||
+ killall -HUP openwsmad && echo " done."|| echo " failed."
|
||||
+ fi
|
||||
;;
|
||||
|
||||
status)
|
||||
echo -n "Checking for service $DESCRIPTIVE"
|
||||
- checkproc -p $PIDFILE $DAEMON
|
||||
- rc_status -v
|
||||
+ if [ -f "/etc/SuSe-release" ]; then
|
||||
+ checkproc -p $PIDFILE $DAEMON
|
||||
+ rc_status -v
|
||||
+ elif [ -f "/etc/redhat-release" ]; then
|
||||
+ pidof opewsmand > /dev/null 2>&1
|
||||
+ if [ $? -eq 0 ]; then
|
||||
+ echo " running"
|
||||
+ else
|
||||
+ echo " stopped"
|
||||
+ fi
|
||||
+ fi
|
||||
+
|
||||
+ ;;
|
||||
+ condrestart)
|
||||
+ [ -f $lockfile ] && restart || :
|
||||
;;
|
||||
|
||||
*)
|
||||
- echo "Usage: $0 {restart|start|stop|reload|force-reload|status}"
|
||||
+ echo "Usage: $0 {restart|start|stop|reload|force-reload|status|condrestart}"
|
||||
esac
|
||||
|
||||
+if [ -f "/etc/SuSe-release" ]; then
|
||||
rc_exit
|
||||
+elif [ -f "/etc/redhat-release" ]; then
|
||||
+exit 0
|
||||
+fi
|
||||
@@ -1,24 +0,0 @@
|
||||
Index: openwsman.conf
|
||||
===================================================================
|
||||
--- openwsman-2.0.0/etc/openwsman.conf (revision 3221)
|
||||
+++ openwsman-2.0.0/etc/openwsman.conf (working copy)
|
||||
@@ -4,7 +4,7 @@
|
||||
ssl_cert_file = /etc/openwsman/servercert.pem
|
||||
ssl_key_file = /etc/openwsman/serverkey.pem
|
||||
digest_password_file = /etc/openwsman/digest_auth.passwd
|
||||
-basic_password_file = /etc/openwsman/simple_auth.passwd
|
||||
+#basic_password_file = /etc/openwsman/simple_auth.passwd
|
||||
|
||||
min_threads = 4
|
||||
max_threads = 10
|
||||
@@ -15,8 +15,8 @@
|
||||
# Authentication backend for BASIC authentication. Default is to read a configuration file defined with 'basic_password_file'
|
||||
#
|
||||
|
||||
-#basic_authenticator = libwsman_pam_auth.so
|
||||
-#basic_authenticator_arg = openwsman
|
||||
+basic_authenticator = libwsman_pam_auth.so
|
||||
+basic_authenticator_arg = openwsman
|
||||
|
||||
#
|
||||
# WS-Management unauthenticated wsmid:Identify file
|
||||
@@ -1,12 +0,0 @@
|
||||
diff -up ./etc/ssleay.cnf.new ./etc/ssleay.cnf
|
||||
--- ./etc/ssleay.cnf.new 2009-12-16 17:04:15.000000000 -0600
|
||||
+++ ./etc/ssleay.cnf 2009-12-16 17:04:55.000000000 -0600
|
||||
@@ -2,7 +2,7 @@
|
||||
# SSLeay example configuration file.
|
||||
#
|
||||
|
||||
-RANDFILE = $ENV::HOME/.rnd
|
||||
+RANDFILE = /dev/random
|
||||
|
||||
[ req ]
|
||||
default_bits = 1024
|
||||
@@ -1,2 +0,0 @@
|
||||
addFilter("devel-file-in-non-devel-package .*/usr/lib.*/openwsman/.*/.*")
|
||||
addFilter("openwsman-client.*shlib-policy-name-error.*")
|
||||
+226
-152
@@ -1,51 +1,37 @@
|
||||
#
|
||||
# spec file for package openwsman (Version 2.2.0)
|
||||
#
|
||||
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
|
||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
||||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
||||
%endif
|
||||
|
||||
# norootforbuild
|
||||
|
||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
%{!?ruby_sitelib: %global ruby_sitelib %(ruby -rrbconfig -e 'puts Config::CONFIG["sitelibdir"] ')}
|
||||
%{!?ruby_sitearch: %global ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"] ')}
|
||||
|
||||
Name: openwsman
|
||||
BuildRequires: swig
|
||||
BuildRequires: libcurl-devel libxml2-devel pam-devel sblim-sfcc-devel
|
||||
BuildRequires: python python-devel ruby ruby-devel perl
|
||||
BuildRequires: python python-devel ruby ruby-devel rubygem(rdoc) perl
|
||||
BuildRequires: python python-devel perl
|
||||
BuildRequires: perl-devel pkgconfig openssl-devel
|
||||
BuildRequires: libtool
|
||||
Requires: net-tools
|
||||
Version: 2.2.0
|
||||
Release: 3%{?dist}
|
||||
#BuildRequires: java-1.8.0-openjdk-devel
|
||||
BuildRequires: cmake
|
||||
BuildRequires: systemd-units
|
||||
Version: 2.3.6
|
||||
Release: 6%{?dist}
|
||||
Url: http://www.openwsman.org/
|
||||
License: BSD
|
||||
Group: Applications/System
|
||||
Summary: Opensource Implementation of WS-Management
|
||||
Source: %{name}-%{version}.tar.bz2
|
||||
Source1: %{name}.rpmlintrc
|
||||
Patch0: %{name}-pam-auth.patch
|
||||
Patch1: %{name}-initscript.patch
|
||||
Patch2: perl-bindings.patch
|
||||
Patch3: %{name}-randfile.patch
|
||||
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXXX)
|
||||
Summary: Open source Implementation of WS-Management
|
||||
Source: http://downloads.sourceforge.net/project/openwsman/%{name}/%{version}/%{name}-%{version}.tar.bz2
|
||||
# help2man generated manpage for openwsmand binary
|
||||
Source1: openwsmand.8.gz
|
||||
# service file for systemd
|
||||
Source2: openwsmand.service
|
||||
# script for testing presence of the certificates in ExecStartPre
|
||||
Source3: owsmantestcert.sh
|
||||
Patch1: openwsman-2.2.7-libssl.patch
|
||||
|
||||
%description
|
||||
Openwsman is a project intended to provide an open-source
|
||||
implementation of the Web Services Management specification
|
||||
implementation of the Web Services Management specipication
|
||||
(WS-Management) and to expose system management information on the
|
||||
Linux operating system using the WS-Management protocol. WS-Management
|
||||
is based on a suite of web services specifications and usage
|
||||
@@ -54,35 +40,24 @@ all system management aspects.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Anas Nashif <anas.nashif@intel.com>
|
||||
Vadim Revyakin <vadim.revyakin@intel.com>
|
||||
Denis Sadykov <denis.sadykov@intel.com>
|
||||
|
||||
%package -n libwsman1
|
||||
License: BSD
|
||||
Group: System Environment/Libraries
|
||||
Summary: Opensource Implementation of WS-Management
|
||||
Summary: Open source Implementation of WS-Management
|
||||
Provides: %{name} = %{version}
|
||||
Obsoletes: %{name} < %{version}
|
||||
Requires: %{name}-client
|
||||
|
||||
%description -n libwsman1
|
||||
Openwsman library for packages dependent on openwsman
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Anas Nashif <anas.nashif@intel.com>
|
||||
Vadim Revyakin <vadim.revyakin@intel.com>
|
||||
Denis Sadykov <denis.sadykov@intel.com>
|
||||
|
||||
%package -n libwsman-devel
|
||||
License: BSD
|
||||
Group: Development/Libraries
|
||||
Summary: Opensource Implementation of WS-Management
|
||||
Summary: Open source Implementation of WS-Management
|
||||
Provides: %{name}-devel = %{version}
|
||||
Obsoletes: %{name}-devel < %{version}
|
||||
Requires: libwsman1 = %{version}
|
||||
@@ -95,11 +70,6 @@ Requires: libcurl-devel
|
||||
Development files for openwsman
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Anas Nashif <anas.nashif@intel.com>
|
||||
Vadim Revyakin <vadim.revyakin@intel.com>
|
||||
Denis Sadykov <denis.sadykov@intel.com>
|
||||
|
||||
%package client
|
||||
License: BSD
|
||||
@@ -111,17 +81,11 @@ Openwsman Client libraries
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Anas Nashif <anas.nashif@intel.com>
|
||||
Vadim Revyakin <vadim.revyakin@intel.com>
|
||||
Denis Sadykov <denis.sadykov@intel.com>
|
||||
|
||||
%package server
|
||||
License: BSD
|
||||
Group: System Environment/Daemons
|
||||
Requires: net-tools
|
||||
Requires: openwsman-client
|
||||
Requires(post): chkconfig
|
||||
Requires(preun): chkconfig
|
||||
Requires(postun): initscripts
|
||||
@@ -132,11 +96,6 @@ Openwsman Server and service libraries
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Anas Nashif <anas.nashif@intel.com>
|
||||
Vadim Revyakin <vadim.revyakin@intel.com>
|
||||
Denis Sadykov <denis.sadykov@intel.com>
|
||||
|
||||
%package python
|
||||
License: BSD
|
||||
@@ -150,29 +109,26 @@ API.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Anas Nashif <anas.nashif@intel.com>
|
||||
Vadim Revyakin <vadim.revyakin@intel.com>
|
||||
Denis Sadykov <denis.sadykov@intel.com>
|
||||
|
||||
%package ruby
|
||||
License: BSD
|
||||
Group: Development/Libraries
|
||||
Requires: ruby
|
||||
Requires: ruby(abi) = 1.8
|
||||
Requires: ruby(release)
|
||||
Summary: Ruby bindings for openwsman client API
|
||||
|
||||
%description ruby
|
||||
This package provides Ruby bindings to access the openwsman client API.
|
||||
|
||||
#%package java
|
||||
#Requires: java
|
||||
#Requires: libwsman1 = %{version}
|
||||
#Summary: Java bindings for openwsman client API
|
||||
#Group: Development/Libraries
|
||||
|
||||
#%description java
|
||||
#This package provides Java bindings to access the openwsman client API.
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Anas Nashif <anas.nashif@intel.com>
|
||||
Vadim Revyakin <vadim.revyakin@intel.com>
|
||||
Denis Sadykov <denis.sadykov@intel.com>
|
||||
|
||||
%package perl
|
||||
License: BSD
|
||||
@@ -185,51 +141,58 @@ This package provides Perl bindings to access the openwsman client API.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Anas Nashif <anas.nashif@intel.com>
|
||||
Vadim Revyakin <vadim.revyakin@intel.com>
|
||||
Denis Sadykov <denis.sadykov@intel.com>
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
%patch1 -p1 -b .libssl
|
||||
|
||||
%build
|
||||
sh autoconfiscate.sh
|
||||
# Removing executable permissions on .c and .h files to fix rpmlint warnings.
|
||||
chmod -x src/cpp/WsmanClient.h
|
||||
chmod -x src/lib/wsman-filter.c
|
||||
chmod -x include/wsman-filter.h
|
||||
%configure \
|
||||
--disable-more-warnings \
|
||||
--disable-static \
|
||||
--enable-python \
|
||||
--enable-ruby \
|
||||
--enable-perl \
|
||||
--enable-ipv6
|
||||
#make clean
|
||||
|
||||
export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -DFEDORA"
|
||||
make CFLAGS="$RPM_OPT_FLAGS" %{?_smp_flags}
|
||||
rm -rf build
|
||||
mkdir build
|
||||
|
||||
export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -DFEDORA -DNO_SSL_CALLBACK"
|
||||
export SSL_LIB=`readlink %{_libdir}/libssl.so`
|
||||
cd build
|
||||
cmake \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_VERBOSE_MAKEFILE=TRUE \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_C_FLAGS_RELEASE:STRING="$RPM_OPT_FLAGS -fno-strict-aliasing" \
|
||||
-DCMAKE_CXX_FLAGS_RELEASE:STRING="$RPM_OPT_FLAGS" \
|
||||
-DCMAKE_SKIP_RPATH=1 \
|
||||
-DPACKAGE_ARCHITECTURE=`uname -m` \
|
||||
-DLIB=%{_lib} \
|
||||
-DBUILD_RUBY_GEM=no \
|
||||
..
|
||||
|
||||
make CFLAGS="-DSSL_LIB='\"$SSL_LIB\"'"
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/openwsman/plugins/*.la
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/openwsman/authenticators/*.la
|
||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/init.d
|
||||
install -m 644 etc/openwsman.conf $RPM_BUILD_ROOT%{_sysconfdir}/openwsman
|
||||
install -m 644 etc/ssleay.cnf $RPM_BUILD_ROOT%{_sysconfdir}/openwsman
|
||||
install -m 755 etc/init/openwsmand.sh $RPM_BUILD_ROOT%{_sysconfdir}/init.d/openwsmand
|
||||
ln -sf %{_sysconfdir}/init.d/openwsmand $RPM_BUILD_ROOT%{_sbindir}/rcopenwsmand
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
cd build
|
||||
make DESTDIR=%{buildroot} install
|
||||
cd ..
|
||||
rm -f %{buildroot}/%{_libdir}/*.la
|
||||
rm -f %{buildroot}/%{_libdir}/openwsman/plugins/*.la
|
||||
rm -f %{buildroot}/%{_libdir}/openwsman/authenticators/*.la
|
||||
[ -d %{buildroot}/%{ruby_vendorlibdir} ] && rm -f %{buildroot}/%{ruby_vendorlibdir}/openwsmanplugin.rb
|
||||
[ -d %{buildroot}/%{ruby_vendorlibdir} ] && rm -f %{buildroot}/%{ruby_vendorlibdir}/openwsman.rb
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/init.d
|
||||
install -m 644 etc/openwsman.conf %{buildroot}/%{_sysconfdir}/openwsman
|
||||
install -m 644 etc/openwsman_client.conf %{buildroot}/%{_sysconfdir}/openwsman
|
||||
mkdir -p %{buildroot}/%{_unitdir}
|
||||
install -p -m 644 %{SOURCE2} %{buildroot}/%{_unitdir}/openwsmand.service
|
||||
install -m 644 etc/ssleay.cnf %{buildroot}/%{_sysconfdir}/openwsman
|
||||
install -p -m 755 %{SOURCE3} %{buildroot}/%{_sysconfdir}/openwsman
|
||||
# install manpage
|
||||
mkdir -p %{buildroot}/%{_mandir}/man8/
|
||||
cp %SOURCE1 %{buildroot}/%{_mandir}/man8/
|
||||
# install missing headers
|
||||
install -m 644 include/wsman-xml.h %{buildroot}/%{_includedir}/openwsman
|
||||
install -m 644 include/wsman-xml-binding.h %{buildroot}/%{_includedir}/openwsman
|
||||
install -m 644 include/wsman-dispatcher.h %{buildroot}/%{_includedir}/openwsman
|
||||
|
||||
%post -n libwsman1 -p /sbin/ldconfig
|
||||
|
||||
@@ -237,13 +200,14 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post server
|
||||
/sbin/ldconfig
|
||||
chkconfig --add openwsmand
|
||||
%systemd_post openwsmand.service
|
||||
|
||||
%preun server
|
||||
chkconfig --del openwsmand
|
||||
%systemd_preun openwsmand.service
|
||||
|
||||
%postun server
|
||||
rm -f /var/log/wsmand.log
|
||||
%systemd_postun_with_restart openwsmand.service
|
||||
/sbin/ldconfig
|
||||
|
||||
%post client -p /sbin/ldconfig
|
||||
@@ -251,51 +215,50 @@ rm -f /var/log/wsmand.log
|
||||
%postun client -p /sbin/ldconfig
|
||||
|
||||
%files -n libwsman1
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS COPYING ChangeLog README TODO
|
||||
%doc AUTHORS COPYING ChangeLog README.md TODO
|
||||
%{_libdir}/libwsman.so.*
|
||||
%{_libdir}/libwsman_client.so.*
|
||||
%{_libdir}/libwsman_curl_client_transport.so.*
|
||||
|
||||
%files -n libwsman-devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/*
|
||||
%{_libdir}/pkgconfig/*
|
||||
%{_libdir}/*.so
|
||||
%doc AUTHORS COPYING ChangeLog README
|
||||
%doc AUTHORS COPYING ChangeLog README.md
|
||||
|
||||
%files python
|
||||
%defattr(-,root,root)
|
||||
%{python_sitearch}/*.so
|
||||
%{python_sitelib}/*.py
|
||||
#%{python_sitelib}/*.pyc
|
||||
#%{python_sitelib}/*.pyo
|
||||
%doc AUTHORS COPYING ChangeLog README
|
||||
%{python_sitearch}/*.py
|
||||
%{python_sitearch}/*.pyc
|
||||
%{python_sitearch}/*.pyo
|
||||
%doc AUTHORS COPYING ChangeLog README.md
|
||||
|
||||
%files ruby
|
||||
%defattr(-,root,root)
|
||||
%{ruby_sitearch}/openwsman.so
|
||||
%dir %{ruby_sitelib}/openwsman
|
||||
%{ruby_sitelib}/openwsman/openwsman.rb
|
||||
%{ruby_sitelib}/openwsman/wsxmlnode.rb
|
||||
%doc AUTHORS COPYING ChangeLog README
|
||||
%{ruby_vendorarchdir}/_openwsman.so
|
||||
%dir %{ruby_vendorlibdir}/openwsman
|
||||
%{ruby_vendorlibdir}/openwsman/*.rb
|
||||
%doc AUTHORS COPYING ChangeLog README.md
|
||||
|
||||
|
||||
#%files java
|
||||
#%defattr(-,root,root)
|
||||
#%{_javadir}/*jar
|
||||
|
||||
%files perl
|
||||
%defattr(-,root,root)
|
||||
%{perl_vendorarch}/openwsman.so
|
||||
%{perl_vendorlib}/openwsman.pm
|
||||
%doc AUTHORS COPYING ChangeLog README
|
||||
%doc AUTHORS COPYING ChangeLog README.md
|
||||
|
||||
%files server
|
||||
# Don't remove *.so files from the server package.
|
||||
# the server fails to start without these files.
|
||||
%defattr(-,root,root)
|
||||
%dir %{_sysconfdir}/openwsman
|
||||
%config(noreplace) %{_sysconfdir}/openwsman/openwsman.conf
|
||||
%config(noreplace) %{_sysconfdir}/openwsman/ssleay.cnf
|
||||
%attr(0755,root,root) %{_sysconfdir}/openwsman/owsmangencert.sh
|
||||
%attr(0755,root,root) %{_sysconfdir}/openwsman/owsmantestcert.sh
|
||||
%config(noreplace) %{_sysconfdir}/pam.d/openwsman
|
||||
%attr(0755,root,root) %{_sysconfdir}/init.d/openwsmand
|
||||
%{_unitdir}/openwsmand.service
|
||||
%dir %{_libdir}/openwsman
|
||||
%dir %{_libdir}/openwsman/authenticators
|
||||
%{_libdir}/openwsman/authenticators/*.so
|
||||
@@ -304,36 +267,147 @@ rm -f /var/log/wsmand.log
|
||||
%{_libdir}/openwsman/plugins/*.so
|
||||
%{_libdir}/openwsman/plugins/*.so.*
|
||||
%{_sbindir}/openwsmand
|
||||
%{_sbindir}/rcopenwsmand
|
||||
%{_libdir}/libwsman_server.so.*
|
||||
%doc AUTHORS COPYING ChangeLog README
|
||||
%{_mandir}/man8/*
|
||||
%doc AUTHORS COPYING ChangeLog README.md
|
||||
|
||||
%files client
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libwsman_clientpp.so.*
|
||||
%doc AUTHORS COPYING ChangeLog README
|
||||
%config(noreplace) %{_sysconfdir}/openwsman/openwsman_client.conf
|
||||
%doc AUTHORS COPYING ChangeLog README.md
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Dec 16 2009 Praveen K Paladugu <praveen_paladugu@dell.com> - 2.2.0-3
|
||||
- Changed the random file used by openssl to generate a certificate while
|
||||
- starting the openwsman-server service
|
||||
* Tue Mar 19 2013 Vít Ondruch <vondruch@redhat.com> - 2.3.6-6
|
||||
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
||||
|
||||
* Wed Dec 9 2009 Praveen K Paladugu <praveen_paladugu@dell.com> - 2.2.0-2
|
||||
- Re-wrote the spec file to break the openwmsman pkg into lib, client
|
||||
- and server components following the upstream spec file.
|
||||
* Mon Mar 18 2013 Praveen K Paladugu <praveen_paladugu@dell.com>-2.3.6-5
|
||||
- Disabling the java binding for now.
|
||||
|
||||
* Thu Oct 1 2009 Praveen K Paladugu <praveen_paladugu@dell.com> - 2.2.0-1
|
||||
- Updated the sources to 2.2.0. Couple of major changes are as follows:
|
||||
- Major changes:
|
||||
- Adapt IANA ports of 5985 (http) and 5986 (https)
|
||||
- Change the Ruby bindings module name to 'Openwsman'
|
||||
- Change the Ruby plugin module name to 'Openwsman'
|
||||
- IPv6 support (A_Venkatachalam@Dell.com)
|
||||
- preliminary support for wbem intrinsic operations
|
||||
- 'EnumerateClassNames' and 'GetClass' (kkaempf@suse.de)
|
||||
- (needs fixed sblim-sfcc, see www.openwsman.org for details)
|
||||
|
||||
* Fri Mar 15 2013 Praveen K Paladugu <praveen_paladugu@dell.com>-2.3.6-4
|
||||
- Enabled java bindings in the build
|
||||
- Removed versioned dep on ruby
|
||||
|
||||
* Wed Mar 13 2013 Peter Robinson <pbrobinson@fedoraproject.org> 2.3.6-3
|
||||
- rebuild for ruby 2
|
||||
|
||||
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.6-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
* Thu Nov 08 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.3.6-1
|
||||
- Update to openwsman-2.3.6
|
||||
|
||||
* Mon Sep 17 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.3.5-1
|
||||
- Update to openwsman-2.3.5
|
||||
- Enable ruby subpackage again
|
||||
|
||||
* Tue Aug 28 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.3.0-7
|
||||
- Fix issues found by fedora-review utility in the spec file
|
||||
|
||||
* Thu Aug 23 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.3.0-6
|
||||
- Use new systemd-rpm macros
|
||||
Resolves: #850405
|
||||
|
||||
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Sun Jun 10 2012 Petr Pisar <ppisar@redhat.com> - 2.3.0-4
|
||||
- Perl 5.16 rebuild
|
||||
|
||||
* Mon May 28 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.3.0-3
|
||||
- Rename service file
|
||||
|
||||
* Wed May 23 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.3.0-2
|
||||
- Add systemd support
|
||||
|
||||
* Tue Mar 27 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.3.0-1
|
||||
- Update to openwsman-2.3.0
|
||||
|
||||
* Thu Feb 09 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.2.7-4
|
||||
- Fix libssl loading
|
||||
|
||||
* Thu Feb 09 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.2.7-3
|
||||
- Temporarily disable ruby subpackage
|
||||
|
||||
* Thu Jan 26 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.2.7-2
|
||||
- Remove unnecessary net-tools requirement
|
||||
Resolves: #784787
|
||||
|
||||
* Wed Jan 11 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.2.7-1
|
||||
- Update to openwsman-2.2.7
|
||||
|
||||
* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.2.5-3
|
||||
- Perl mass rebuild
|
||||
|
||||
* Fri Jun 10 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.2.5-2
|
||||
- Perl 5.14 mass rebuild
|
||||
|
||||
* Wed Mar 23 2011 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.2.5-1
|
||||
- Update to openwsman-2.2.5
|
||||
|
||||
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.4-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
* Thu Dec 9 2010 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.2.4-2
|
||||
- Recompile with -DNO_SSL_CALLBACK
|
||||
|
||||
* Tue Nov 16 2010 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.2.4-1
|
||||
- Update to openwsman-2.2.4
|
||||
- Add help2man generated manpage for openwsmand binary
|
||||
- Add missing openwsman headers to libwsman-devel
|
||||
- Add configuration file to openwsman-client
|
||||
|
||||
* Wed Sep 29 2010 jkeating - 2.2.3-9
|
||||
- Rebuilt for gcc bug 634757
|
||||
|
||||
* Mon Sep 13 2010 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.2.3-8
|
||||
- Move initscript to the right place
|
||||
- Fix return values from initscript according to guidelines
|
||||
|
||||
* Tue Aug 10 2010 Praveen K Paladugu <praveen_paladugu@dell.com> - 2.2.3-7
|
||||
- Moved the certificate generation from init script. The user will have to
|
||||
- generate the certificate manually.
|
||||
|
||||
* Mon Aug 2 2010 Praveen K Paladugu <praveen_paladugu@dell.com> - 2.2.3-6
|
||||
- Fixed the version checking of swig and forced all the ruby files to be
|
||||
- installed into site{lib,arch} dirs
|
||||
|
||||
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 2.2.3-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
||||
|
||||
* Tue Jun 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.2.3-4
|
||||
- Mass rebuild with perl-5.12.0
|
||||
|
||||
* Tue Apr 22 2010 Praveen K Paladugu <praveen_paladugu@dell.com> - 2.2.3-3
|
||||
- authors.patch: Moved all the AUTHORS info to AUTHORS file.
|
||||
- Corrected the Source tag.
|
||||
- Corrected the package dependencies to break cyclic dependencies.
|
||||
- Fixed the default attributes.
|
||||
- Fixed the preun & postun scripts, to make sure the openwsmand service
|
||||
- is stopped before the package is removed.
|
||||
- Added 'condrestart' function to the init script.
|
||||
- Had to let the *.so files be part of the openwsman-server becuase
|
||||
- some of the source files explicitly call out for *.so files.
|
||||
|
||||
|
||||
* Thu Apr 15 2010 Praveen K Paladugu <praveen_paladugu@dell.com> - 2.2.3-2
|
||||
- Updated the spec file to adhere to the upstream standard of breaking
|
||||
- the package in server, client, lib modules
|
||||
- randfile.patch: when openwsmand daemon creates a certificate the
|
||||
- first time it needs a file which have random content it. This
|
||||
- is pointed to $HOME/.rnd in /etc/openwsman/ssleay.cnf. Changed this
|
||||
- random file to /dev/urandom.
|
||||
- initscript.patch: patch to edit the init script so that the services
|
||||
- are not started by default.
|
||||
|
||||
|
||||
* Wed Mar 3 2010 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.2.3-1
|
||||
- Update to openwsman-2.2.3
|
||||
|
||||
|
||||
* Wed Sep 23 2009 Praveen K Paladugu <praveen_paladugu@dell.com> - 2.2.0-1
|
||||
- Added the new 2.2.0 sources.
|
||||
- Changed the release and version numbers.
|
||||
|
||||
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 2.1.0-4
|
||||
- rebuilt with new openssl
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Openwsman WS-Management Service
|
||||
After=syslog.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/usr/sbin/openwsmand
|
||||
ExecStartPre=/etc/openwsman/owsmantestcert.sh
|
||||
PIDFile=/var/run/wsmand.pid
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ ! -f "/etc/openwsman/serverkey.pem" ]; then
|
||||
if [ -f "/etc/ssl/servercerts/servercert.pem" \
|
||||
-a -f "/etc/ssl/servercerts/serverkey.pem" ]; then
|
||||
echo "Using common server certificate /etc/ssl/servercerts/servercert.pem"
|
||||
ln -s /etc/ssl/servercerts/server{cert,key}.pem /etc/openwsman
|
||||
exit 0
|
||||
else
|
||||
echo "FAILED: Starting openwsman server"
|
||||
echo "There is no ssl server key available for openwsman server to use."
|
||||
echo -e "Please generate one with the following script and start the openwsman service again:\n"
|
||||
echo "##################################"
|
||||
echo "/etc/openwsman/owsmangencert.sh"
|
||||
echo "================================="
|
||||
|
||||
echo "NOTE: The script uses /dev/random device for generating some random bits while generating the server key."
|
||||
echo " If this takes too long, you can replace the value of \"RANDFILE\" in /etc/openwsman/ssleay.cnf with /dev/urandom. Please understand the implications of replacing the RNADFILE."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
@@ -1,22 +0,0 @@
|
||||
diff -up openwsman-2.2.0/bindings/perl/Makefile.am.org openwsman-2.2.0/bindings/perl/Makefile.am
|
||||
--- openwsman-2.2.0/bindings/perl/Makefile.am.org 2009-12-10 13:34:55.000000000 -0600
|
||||
+++ openwsman-2.2.0/bindings/perl/Makefile.am 2009-12-10 13:35:56.000000000 -0600
|
||||
@@ -33,6 +33,7 @@ SWIG_INPUT = ../openwsman.i
|
||||
openwsman_la_SOURCES = openwsman_wrap.c \
|
||||
../openwsman.c \
|
||||
$(SWIG_INPUT)
|
||||
+all-local: openwsman.pm
|
||||
|
||||
openwsman_la_LIBADD = $(LIBS) -lpthread $(CURL_LIBS)
|
||||
|
||||
diff -up openwsman-2.2.0/bindings/perl/Makefile.in.org openwsman-2.2.0/bindings/perl/Makefile.in
|
||||
--- openwsman-2.2.0/bindings/perl/Makefile.in.org 2009-12-10 13:35:03.000000000 -0600
|
||||
+++ openwsman-2.2.0/bindings/perl/Makefile.in 2009-12-10 13:36:18.000000000 -0600
|
||||
@@ -289,6 +289,7 @@ SWIG_INPUT = ../openwsman.i
|
||||
openwsman_la_SOURCES = openwsman_wrap.c \
|
||||
../openwsman.c \
|
||||
$(SWIG_INPUT)
|
||||
+all-local: openwsman.pm
|
||||
|
||||
openwsman_la_LIBADD = $(LIBS) -lpthread $(CURL_LIBS)
|
||||
openwsman_la_LDFLAGS = -module -avoid-version $(NO_UNDEFINED)
|
||||
Reference in New Issue
Block a user