Compare commits
16 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4016df62f0 | |||
| 0b25a0f125 | |||
| ab6512a245 | |||
| 628aec0f9f | |||
| 7b60e699b7 | |||
| 6091aaca73 | |||
| f23808cc97 | |||
| 0acef03521 | |||
| 45d316bdc4 | |||
| 2808c5ea43 | |||
| 7a03ef5932 | |||
| c8234dd49c | |||
| 6206abc073 | |||
| eb3d4c4e47 | |||
| a022e0cf6b | |||
| 2cdcef9e0a |
+2
-1
@@ -1 +1,2 @@
|
||||
openwsman-2.2.0.tar.bz2
|
||||
openwsman-2.2.3.tar.bz2
|
||||
/openwsman-2.2.4.tar.bz2
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
diff -up openwsman-2.2.4/etc/init/openwsmand.sh.cmake.orig openwsman-2.2.4/etc/init/openwsmand.sh.cmake
|
||||
--- openwsman-2.2.4/etc/init/openwsmand.sh.cmake.orig 2010-10-06 11:10:10.000000000 +0200
|
||||
+++ openwsman-2.2.4/etc/init/openwsmand.sh.cmake 2010-11-11 16:52:19.494661859 +0100
|
||||
@@ -4,28 +4,28 @@
|
||||
# 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=-S # with SSL
|
||||
-PIDFILE=/var/run/$NAME.pid
|
||||
+PIDFILE=/var/run/wsmand.pid
|
||||
|
||||
lsb=0
|
||||
|
||||
if [ $EUID != 0 ]; then
|
||||
echo "This script must be run as root."
|
||||
- exit 1;
|
||||
+ exit 4;
|
||||
fi
|
||||
|
||||
if [ "$DESCRIPTIVE" = "" ]; then
|
||||
@@ -65,6 +65,7 @@ start()
|
||||
|
||||
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 @SYSCONFDIR@/ssleay.cnf with /dev/urandom. Please understand the implications of replacing the RNADFILE."
|
||||
+ exit 6 # Six means "program is not configured", seems to be suitable value
|
||||
|
||||
fi
|
||||
fi
|
||||
@@ -103,6 +104,9 @@ case "$1" in
|
||||
stop)
|
||||
stop
|
||||
rm -f $lockfile
|
||||
+ # pid file should be removed by server itself, but it's marked as
|
||||
+ # TODO in wsmand.c source file;)
|
||||
+ rm -f $PIDFILE
|
||||
;;
|
||||
|
||||
restart)
|
||||
@@ -137,6 +141,16 @@ case "$1" in
|
||||
echo " running"
|
||||
else
|
||||
echo " stopped"
|
||||
+ if [ -e $PIDFILE ]; then
|
||||
+ echo " stopped, but pid file exists"
|
||||
+ exit 1
|
||||
+ elif [ -e $lockfile ]; then
|
||||
+ echo " stopped, but lock file exists"
|
||||
+ exit 2
|
||||
+ else
|
||||
+ echo " stopped"
|
||||
+ exit 3
|
||||
+ fi
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
@@ -147,6 +161,8 @@ case "$1" in
|
||||
|
||||
*)
|
||||
echo "Usage: $0 {restart|start|stop|reload|force-reload|status|condrestart}"
|
||||
+ [ "$1" = "usage" ] && exit 0
|
||||
+ exit 2
|
||||
esac
|
||||
|
||||
if [ $lsb -ne 0 ]; then
|
||||
@@ -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
|
||||
@@ -0,0 +1,29 @@
|
||||
diff -up ./bindings/ruby/Makefile.am.diff ./bindings/ruby/Makefile.am
|
||||
--- ./bindings/ruby/Makefile.am.diff 2010-08-02 16:57:20.407937479 -0500
|
||||
+++ ./bindings/ruby/Makefile.am 2010-08-02 16:57:54.718188163 -0500
|
||||
@@ -4,8 +4,10 @@
|
||||
|
||||
SUBDIRS = openwsman tests
|
||||
|
||||
-rubyarchdir = $(shell ruby -r rbconfig -e "vad = Config::CONFIG['vendorarchdir']; print(vad ? vad : Config::CONFIG['sitearchdir'])")
|
||||
-rubydir = $(shell ruby -r rbconfig -e "vd = Config::CONFIG['vendorlibdir']; print(vd ? vd : Config::CONFIG['sitelibdir'])")
|
||||
+#rubyarchdir = $(shell ruby -r rbconfig -e "vad = Config::CONFIG['vendorarchdir']; print(vad ? vad : Config::CONFIG['sitearchdir'])")
|
||||
+rubyarchdir = $(shell ruby -r rbconfig -e " print( Config::CONFIG['sitearchdir'])")
|
||||
+#rubydir = $(shell ruby -r rbconfig -e "vd = Config::CONFIG['vendorlibdir']; print(vd ? vd : Config::CONFIG['sitelibdir'])")
|
||||
+rubydir = $(shell ruby -r rbconfig -e " print(Config::CONFIG['sitelibdir'])")
|
||||
rubyincdir = $(shell ruby -r rbconfig -e "print(Config::CONFIG['archdir'])")
|
||||
|
||||
INCLUDES = \
|
||||
diff -up ./bindings/ruby/openwsman/Makefile.am.diff ./bindings/ruby/openwsman/Makefile.am
|
||||
--- ./bindings/ruby/openwsman/Makefile.am.diff 2010-08-02 16:58:05.201189127 -0500
|
||||
+++ ./bindings/ruby/openwsman/Makefile.am 2010-08-02 16:58:20.999937941 -0500
|
||||
@@ -2,7 +2,8 @@
|
||||
# Makefile.am for openwsman/bindings/ruby/openwsman
|
||||
#
|
||||
|
||||
-rubylibdir = $(shell ruby -r rbconfig -e "vld = Config::CONFIG['vendorlibdir']; print(vld ? vld : Config::CONFIG['sitelibdir'])")
|
||||
+#rubylibdir = $(shell ruby -r rbconfig -e "vld = Config::CONFIG['vendorlibdir']; print(vld ? vld : Config::CONFIG['sitelibdir'])")
|
||||
+rubylibdir = $(shell ruby -r rbconfig -e "print( Config::CONFIG['sitelibdir'])")
|
||||
|
||||
install-data-local:
|
||||
$(mkinstalldirs) $(DESTDIR)$(rubylibdir)/openwsman
|
||||
@@ -1,2 +0,0 @@
|
||||
addFilter("devel-file-in-non-devel-package .*/usr/lib.*/openwsman/.*/.*")
|
||||
addFilter("openwsman-client.*shlib-policy-name-error.*")
|
||||
+143
-133
@@ -1,51 +1,34 @@
|
||||
#
|
||||
# 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/
|
||||
#
|
||||
|
||||
# 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)")}
|
||||
%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
|
||||
%{!?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 ruby-rdoc perl
|
||||
BuildRequires: perl-devel pkgconfig openssl-devel
|
||||
BuildRequires: libtool
|
||||
BuildRequires: cmake
|
||||
Requires: net-tools
|
||||
Version: 2.2.0
|
||||
Version: 2.2.4
|
||||
Release: 3%{?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
|
||||
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
|
||||
Patch0: %{name}-sitelibdir.patch
|
||||
Patch1: openwsman-2.2.3-initscript.patch
|
||||
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXXX)
|
||||
|
||||
%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 +37,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 +67,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 +78,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 +93,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,11 +106,6 @@ API.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Anas Nashif <anas.nashif@intel.com>
|
||||
Vadim Revyakin <vadim.revyakin@intel.com>
|
||||
Denis Sadykov <denis.sadykov@intel.com>
|
||||
|
||||
%package ruby
|
||||
License: BSD
|
||||
@@ -168,11 +119,6 @@ This package provides Ruby 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 +131,63 @@ 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
|
||||
# don't make backup of file patched by patch0, it'll be installed...
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
%patch1 -p1 -b .initscript
|
||||
|
||||
%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} \
|
||||
..
|
||||
|
||||
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
|
||||
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_sitelib} ] && rm -f %{buildroot}/%{ruby_sitelib}/openwsmanplugin.rb
|
||||
[ -d %{buildroot/}%{ruby_vendorlib} ] && rm -f %{buildroot}/%{ruby_vendorlib}/openwsmanplugin.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}/%{_sysconfdir}/rc.d/init.d
|
||||
install -m 755 build/etc/init/openwsmand.sh %{buildroot}/%{_sysconfdir}/rc.d/init.d/openwsmand
|
||||
install -m 644 etc/ssleay.cnf %{buildroot}/%{_sysconfdir}/openwsman
|
||||
ln -sf %{_sysconfdir}/rc.d/init.d/openwsmand %{buildroot}/%{_sbindir}/rcopenwsmand
|
||||
# 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
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%post -n libwsman1 -p /sbin/ldconfig
|
||||
|
||||
@@ -237,13 +195,20 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post server
|
||||
/sbin/ldconfig
|
||||
chkconfig --add openwsmand
|
||||
/sbin/chkconfig --add openwsmand
|
||||
|
||||
%preun server
|
||||
chkconfig --del openwsmand
|
||||
if [ $1 = 0 ] ; then
|
||||
/sbin/service %{name}d stop >/dev/null 2>&1
|
||||
/sbin/chkconfig --del openwsmand
|
||||
fi
|
||||
|
||||
%postun server
|
||||
rm -f /var/log/wsmand.log
|
||||
|
||||
if [ "$1" -ge "1" ] ; then
|
||||
/sbin/service %{name}d condrestart >/dev/null 2>&1 || :
|
||||
fi
|
||||
/sbin/ldconfig
|
||||
|
||||
%post client -p /sbin/ldconfig
|
||||
@@ -251,37 +216,36 @@ rm -f /var/log/wsmand.log
|
||||
%postun client -p /sbin/ldconfig
|
||||
|
||||
%files -n libwsman1
|
||||
%defattr(-,root,root)
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS COPYING ChangeLog README TODO
|
||||
%{_libdir}/libwsman.so.*
|
||||
%{_libdir}/libwsman_client.so.*
|
||||
%{_libdir}/libwsman_curl_client_transport.so.*
|
||||
|
||||
%files -n libwsman-devel
|
||||
%defattr(-,root,root)
|
||||
%defattr(-,root,root,-)
|
||||
%{_includedir}/*
|
||||
%{_libdir}/pkgconfig/*
|
||||
%{_libdir}/*.so
|
||||
%doc AUTHORS COPYING ChangeLog README
|
||||
|
||||
%files python
|
||||
%defattr(-,root,root)
|
||||
%defattr(-,root,root,-)
|
||||
%{python_sitearch}/*.so
|
||||
%{python_sitelib}/*.py
|
||||
#%{python_sitelib}/*.pyc
|
||||
#%{python_sitelib}/*.pyo
|
||||
%{python_sitearch}/*.py
|
||||
%{python_sitearch}/*.pyc
|
||||
%{python_sitearch}/*.pyo
|
||||
%doc AUTHORS COPYING ChangeLog README
|
||||
|
||||
%files ruby
|
||||
%defattr(-,root,root)
|
||||
%defattr(-,root,root,-)
|
||||
%{ruby_sitearch}/openwsman.so
|
||||
%dir %{ruby_sitelib}/openwsman
|
||||
%{ruby_sitelib}/openwsman/openwsman.rb
|
||||
%{ruby_sitelib}/openwsman/wsxmlnode.rb
|
||||
%{ruby_sitelib}/openwsman/*.rb
|
||||
%doc AUTHORS COPYING ChangeLog README
|
||||
|
||||
%files perl
|
||||
%defattr(-,root,root)
|
||||
%defattr(-,root,root,-)
|
||||
%{perl_vendorarch}/openwsman.so
|
||||
%{perl_vendorlib}/openwsman.pm
|
||||
%doc AUTHORS COPYING ChangeLog README
|
||||
@@ -289,13 +253,13 @@ rm -f /var/log/wsmand.log
|
||||
%files server
|
||||
# Don't remove *.so files from the server package.
|
||||
# the server fails to start without these files.
|
||||
%defattr(-,root,root)
|
||||
%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
|
||||
%config(noreplace) %{_sysconfdir}/pam.d/openwsman
|
||||
%attr(0755,root,root) %{_sysconfdir}/init.d/openwsmand
|
||||
%attr(0755,root,root) %{_sysconfdir}/rc.d/init.d/openwsmand
|
||||
%dir %{_libdir}/openwsman
|
||||
%dir %{_libdir}/openwsman/authenticators
|
||||
%{_libdir}/openwsman/authenticators/*.so
|
||||
@@ -306,34 +270,80 @@ rm -f /var/log/wsmand.log
|
||||
%{_sbindir}/openwsmand
|
||||
%{_sbindir}/rcopenwsmand
|
||||
%{_libdir}/libwsman_server.so.*
|
||||
%{_mandir}/man8/*
|
||||
%doc AUTHORS COPYING ChangeLog README
|
||||
|
||||
%files client
|
||||
%defattr(-,root,root)
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/libwsman_clientpp.so.*
|
||||
%config(noreplace) %{_sysconfdir}/openwsman/openwsman_client.conf
|
||||
%doc AUTHORS COPYING ChangeLog README
|
||||
|
||||
|
||||
%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 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
|
||||
|
||||
* 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.
|
||||
* Thu Dec 9 2010 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.2.4-2
|
||||
- Recompile with -DNO_SSL_CALLBACK
|
||||
|
||||
* 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)
|
||||
|
||||
* 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
|
||||
|
||||
Binary file not shown.
@@ -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