Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2d0b84a016 | |||
| f90a3a3223 | |||
| b67a9c8e99 | |||
| 97c3afb745 | |||
| c89fffde96 |
@@ -1,4 +1 @@
|
||||
openwsman-2.2.3.tar.bz2
|
||||
/openwsman-2.2.4.tar.bz2
|
||||
/openwsman-2.2.5.tar.bz2
|
||||
/openwsman-2.2.7.tar.bz2
|
||||
|
||||
@@ -1,81 +0,0 @@
|
||||
diff -up openwsman-2.2.7/etc/init/openwsmand.sh.cmake.orig openwsman-2.2.7/etc/init/openwsmand.sh.cmake
|
||||
--- openwsman-2.2.7/etc/init/openwsmand.sh.cmake.orig 2012-01-11 13:38:58.789392556 +0100
|
||||
+++ openwsman-2.2.7/etc/init/openwsmand.sh.cmake 2012-01-11 13:44:32.383593944 +0100
|
||||
@@ -4,28 +4,28 @@
|
||||
# Provides: openwsmand
|
||||
# Required-Start: $remote_fs
|
||||
# Required-Stop: $network
|
||||
-# Default-Start: 2 3 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,12 +0,0 @@
|
||||
diff -up openwsman-2.2.7/CMakeLists.txt.ruby openwsman-2.2.7/CMakeLists.txt
|
||||
--- openwsman-2.2.7/CMakeLists.txt.ruby 2012-02-09 09:13:51.222066933 +0100
|
||||
+++ openwsman-2.2.7/CMakeLists.txt 2012-02-09 09:14:01.059119669 +0100
|
||||
@@ -103,7 +103,7 @@ SET( BUILD_JAVA_EXPLICIT ${BUILD_JAVA})
|
||||
OPTION( BUILD_LIBCIM "Build CIM plugin" YES )
|
||||
OPTION( BUILD_EXAMPLES "Build examples" YES )
|
||||
OPTION( BUILD_PYTHON "Build Python bindings" YES )
|
||||
-OPTION( BUILD_RUBY "Build Ruby bindings" YES )
|
||||
+OPTION( BUILD_RUBY "Build Ruby bindings" NO )
|
||||
OPTION( BUILD_PERL "Build Perl bindings" YES )
|
||||
OPTION( BUILD_JAVA "Build Java bindings" YES )
|
||||
OPTION( BUILD_CSHARP "Build C# bindings" YES)
|
||||
@@ -0,0 +1,14 @@
|
||||
diff -up openwsman-2.2.3/AUTHORS.diff openwsman-2.2.3/AUTHORS
|
||||
--- openwsman-2.2.3/AUTHORS.diff 2010-04-20 10:42:40.156797595 -0500
|
||||
+++ openwsman-2.2.3/AUTHORS 2010-04-20 10:43:10.440803220 -0500
|
||||
@@ -13,5 +13,10 @@ Contributions and Patches by:
|
||||
Viktor Mihajlovski, IBM
|
||||
Klaus Kaempf, Novell
|
||||
|
||||
+AUTHORS from Spec file:
|
||||
+ Anas Nashif <anas.nashif@intel.com>
|
||||
+ Vadim Revyakin <vadim.revyakin@intel.com>
|
||||
+ Denis Sadykov <denis.sadykov@intel.com>
|
||||
+
|
||||
|
||||
If you think you name should be here and I forgot it, please let me know.
|
||||
@@ -0,0 +1,112 @@
|
||||
diff -up ./etc/init/openwsmand.sh.in.old ./etc/init/openwsmand.sh.in
|
||||
--- ./etc/init/openwsmand.sh.in.old 2010-08-04 16:43:40.212100948 -0500
|
||||
+++ ./etc/init/openwsmand.sh.in 2010-08-04 17:26:20.013849220 -0500
|
||||
@@ -4,15 +4,15 @@
|
||||
# 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
|
||||
|
||||
@@ -56,20 +56,16 @@ start()
|
||||
echo "Using common server certificate /etc/ssl/servercerts/servercert.pem"
|
||||
ln -s /etc/ssl/servercerts/server{cert,key}.pem @SYSCONFDIR@
|
||||
else
|
||||
- echo "Generating Openwsman server public certificate and private key"
|
||||
- FQDN=`hostname --fqdn`
|
||||
- if [ "x${FQDN}" = "x" ]; then
|
||||
- FQDN=localhost.localdomain
|
||||
- fi
|
||||
-cat << EOF | sh @SYSCONFDIR@/owsmangencert.sh > /dev/null 2>&1
|
||||
---
|
||||
-SomeState
|
||||
-SomeCity
|
||||
-SomeOrganization
|
||||
-SomeOrganizationalUnit
|
||||
-${FQDN}
|
||||
-root@${FQDN}
|
||||
-EOF
|
||||
+ 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 @SYSCONFDIR@/ssleay.cnf with /dev/urandom."
|
||||
+
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -145,6 +141,10 @@ case "$1" in
|
||||
fi
|
||||
;;
|
||||
|
||||
+ condrestart)
|
||||
+ [ -e $lockfile ] && restart
|
||||
+ ;;
|
||||
+
|
||||
*)
|
||||
echo "Usage: $0 {restart|start|stop|reload|force-reload|status}"
|
||||
esac
|
||||
diff -up ./etc/owsmangencert.sh.in.old ./etc/owsmangencert.sh.in
|
||||
--- ./etc/owsmangencert.sh.in.old 2010-08-04 17:14:31.241100874 -0500
|
||||
+++ ./etc/owsmangencert.sh.in 2010-08-04 17:21:02.944850958 -0500
|
||||
@@ -1,7 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
-#!/bin/sh -e
|
||||
-
|
||||
CERTFILE=@SYSCONFDIR@/servercert.pem
|
||||
KEYFILE=@SYSCONFDIR@/serverkey.pem
|
||||
CNFFILE=@SYSCONFDIR@/ssleay.cnf
|
||||
@@ -15,19 +13,33 @@ if [ "$1" = "--force" ]; then
|
||||
shift
|
||||
fi
|
||||
|
||||
+FQDN=`hostname --fqdn`
|
||||
+ if [ "x${FQDN}" = "x" ]; then
|
||||
+ FQDN=localhost.localdomain
|
||||
+ fi
|
||||
echo
|
||||
echo creating selfsingned certificate
|
||||
echo "replace it with one signed by a certification authority (CA)"
|
||||
echo
|
||||
-echo enter your ServerName at the Common Name prompt
|
||||
+#echo enter your ServerName at the Common Name prompt
|
||||
echo
|
||||
|
||||
# use special .cnf, because with normal one no valid selfsigned
|
||||
# certificate is created
|
||||
|
||||
-export RANDFILE=/dev/random
|
||||
-openssl req -days 365 $@ -config $CNFFILE \
|
||||
+#export RANDFILE=/dev/random
|
||||
+cat <<EOF |openssl req -days 365 $@ -config $CNFFILE \
|
||||
-new -x509 -nodes -out $CERTFILE \
|
||||
-keyout $KEYFILE
|
||||
+--
|
||||
+SomeState
|
||||
+SomeCity
|
||||
+SomeOrganization
|
||||
+SomeOrganizationalUnit
|
||||
+${FQDN}
|
||||
+root@${FQDN}
|
||||
+EOF
|
||||
+
|
||||
+
|
||||
chmod 600 $KEYFILE
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
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,29 +0,0 @@
|
||||
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
|
||||
+69
-158
@@ -1,34 +1,30 @@
|
||||
#
|
||||
# spec file for package openwsman (Version 2.2.3)
|
||||
#
|
||||
# norootforbuild
|
||||
|
||||
%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
|
||||
%{!?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 ruby-rdoc perl
|
||||
BuildRequires: python python-devel perl
|
||||
BuildRequires: python python-devel ruby ruby-devel perl
|
||||
BuildRequires: perl-devel pkgconfig openssl-devel
|
||||
BuildRequires: cmake
|
||||
BuildRequires: systemd-units
|
||||
Version: 2.2.7
|
||||
Release: 5%{?dist}
|
||||
BuildRequires: libtool
|
||||
Requires: net-tools
|
||||
Version: 2.2.3
|
||||
Release: 3%{?dist}
|
||||
Url: http://www.openwsman.org/
|
||||
License: BSD
|
||||
Group: Applications/System
|
||||
Summary: Open source Implementation of WS-Management
|
||||
Summary: Opensource 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
|
||||
Patch0: %{name}-sitelibdir.patch
|
||||
Patch2: openwsman-2.2.7-disable-ruby.patch
|
||||
Patch0: %{name}-initscript.patch
|
||||
Patch1: %{name}-randfile.patch
|
||||
Patch2: %{name}-authors.patch
|
||||
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXXX)
|
||||
|
||||
%description
|
||||
@@ -46,7 +42,7 @@ all system management aspects.
|
||||
%package -n libwsman1
|
||||
License: BSD
|
||||
Group: System Environment/Libraries
|
||||
Summary: Open source Implementation of WS-Management
|
||||
Summary: Opensource Implementation of WS-Management
|
||||
Provides: %{name} = %{version}
|
||||
Obsoletes: %{name} < %{version}
|
||||
|
||||
@@ -59,7 +55,7 @@ Openwsman library for packages dependent on openwsman
|
||||
%package -n libwsman-devel
|
||||
License: BSD
|
||||
Group: Development/Libraries
|
||||
Summary: Open source Implementation of WS-Management
|
||||
Summary: Opensource Implementation of WS-Management
|
||||
Provides: %{name}-devel = %{version}
|
||||
Obsoletes: %{name}-devel < %{version}
|
||||
Requires: libwsman1 = %{version}
|
||||
@@ -112,15 +108,15 @@ API.
|
||||
|
||||
|
||||
|
||||
#%package ruby
|
||||
#License: BSD
|
||||
#Group: Development/Libraries
|
||||
#Requires: ruby
|
||||
#Requires: ruby(abi) = 1.9.1
|
||||
#Summary: Ruby bindings for openwsman client API
|
||||
#
|
||||
#%description ruby
|
||||
#This package provides Ruby bindings to access the openwsman client API.
|
||||
%package ruby
|
||||
License: BSD
|
||||
Group: Development/Libraries
|
||||
Requires: ruby
|
||||
Requires: ruby(abi) = 1.8
|
||||
Summary: Ruby bindings for openwsman client API
|
||||
|
||||
%description ruby
|
||||
This package provides Ruby bindings to access the openwsman client API.
|
||||
|
||||
|
||||
|
||||
@@ -136,61 +132,41 @@ This package provides Perl bindings to access the openwsman client API.
|
||||
|
||||
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
# don't make backup of file patched by patch0, it'll be installed...
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
|
||||
%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
|
||||
|
||||
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\"'"
|
||||
export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -DFEDORA"
|
||||
make CFLAGS="$RPM_OPT_FLAGS" %{?_smp_flags}
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
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_sitelib} ] && rm -f %{buildroot}/%{ruby_sitelib}/openwsman.rb
|
||||
[ -d %{buildroot/}%{ruby_vendorlib} ] && rm -f %{buildroot}/%{ruby_vendorlib}/openwsmanplugin.rb
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/init.d
|
||||
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 $RPM_BUILD_ROOT%{_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
|
||||
install -m 755 etc/init/openwsmand.sh %{buildroot}/%{_sysconfdir}/init.d/openwsmand
|
||||
ln -sf %{_sysconfdir}/init.d/openwsmand %{buildroot}/%{_sbindir}/rcopenwsmand
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
@@ -201,23 +177,18 @@ rm -rf %{buildroot}
|
||||
|
||||
%post server
|
||||
/sbin/ldconfig
|
||||
if [ $1 -eq 1 ] ; then
|
||||
# Initial installation
|
||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
||||
fi
|
||||
chkconfig --add openwsmand
|
||||
|
||||
%preun server
|
||||
if [ $1 = 0 ] ; then
|
||||
/bin/systemctl --no-reload disable openwsmand.service > /dev/null 2>&1 || :
|
||||
/bin/systemctl stop openwsmand.service > /dev/null 2>&1 || :
|
||||
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
|
||||
|
||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
||||
if [ "$1" -ge "1" ] ; then
|
||||
/bin/systemctl try-restart openwsmand.service >/dev/null 2>&1 || :
|
||||
/sbin/service %{name}d condrestart >/dev/null 2>&1 || :
|
||||
fi
|
||||
/sbin/ldconfig
|
||||
|
||||
@@ -242,18 +213,18 @@ fi
|
||||
%files python
|
||||
%defattr(-,root,root,-)
|
||||
%{python_sitearch}/*.so
|
||||
%{python_sitearch}/*.py
|
||||
%{python_sitearch}/*.pyc
|
||||
%{python_sitearch}/*.pyo
|
||||
%{python_sitelib}/*.py
|
||||
%{python_sitelib}/*.pyc
|
||||
%{python_sitelib}/*.pyo
|
||||
%doc AUTHORS COPYING ChangeLog README
|
||||
|
||||
#%files ruby
|
||||
#%defattr(-,root,root,-)
|
||||
#%{ruby_sitearch}/openwsman.so
|
||||
#%{ruby_sitearch}/_openwsman.so
|
||||
#%dir %{ruby_sitelib}/openwsman
|
||||
#%{ruby_sitelib}/openwsman/*.rb
|
||||
#%doc AUTHORS COPYING ChangeLog README
|
||||
%files ruby
|
||||
%defattr(-,root,root,-)
|
||||
%{ruby_sitearch}/openwsman.so
|
||||
%dir %{ruby_sitelib}/openwsman
|
||||
%{ruby_sitelib}/openwsman/openwsman.rb
|
||||
%{ruby_sitelib}/openwsman/xmlnode.rb
|
||||
%doc AUTHORS COPYING ChangeLog README
|
||||
|
||||
%files perl
|
||||
%defattr(-,root,root,-)
|
||||
@@ -269,9 +240,8 @@ fi
|
||||
%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
|
||||
%{_unitdir}/openwsmand.service
|
||||
%attr(0755,root,root) %{_sysconfdir}/init.d/openwsmand
|
||||
%dir %{_libdir}/openwsman
|
||||
%dir %{_libdir}/openwsman/authenticators
|
||||
%{_libdir}/openwsman/authenticators/*.so
|
||||
@@ -280,77 +250,22 @@ fi
|
||||
%{_libdir}/openwsman/plugins/*.so
|
||||
%{_libdir}/openwsman/plugins/*.so.*
|
||||
%{_sbindir}/openwsmand
|
||||
%{_sbindir}/rcopenwsmand
|
||||
%{_libdir}/libwsman_server.so.*
|
||||
%{_mandir}/man8/*
|
||||
%doc AUTHORS COPYING ChangeLog README
|
||||
|
||||
%files client
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/libwsman_clientpp.so.*
|
||||
%config(noreplace) %{_sysconfdir}/openwsman/openwsman_client.conf
|
||||
%doc AUTHORS COPYING ChangeLog README
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon May 28 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.2.7-5
|
||||
- Rename service file
|
||||
* Tue Aug 10 2010 Praveen K Paladugu <praveen_paladugu@dell.com> - 2.2.3-3
|
||||
- Moved the certificate generation from the init script. The user has to
|
||||
- manually generate on before starting the service.
|
||||
|
||||
* Wed May 23 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.2.7-4
|
||||
- Add systemd support
|
||||
|
||||
* 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
|
||||
* Thu Apr 22 2010 Praveen K Paladugu <praveen_paladugu@dell.com> - 2.2.3-2
|
||||
- authors.patch: Moved all the AUTHORS info to AUTHORS file.
|
||||
- Corrected the Source tag.
|
||||
- Corrected the package dependencies to break cyclic dependencies.
|
||||
@@ -362,21 +277,16 @@ fi
|
||||
- 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
|
||||
* Fri Apr 16 2010 Praveen K Paladugu <praveen_paladugu@dell.com> - 2.2.3-1
|
||||
- Updated the sources to 2.2.3
|
||||
- Updated the spec file to follow the upstream packaging format.
|
||||
- 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.
|
||||
- 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.
|
||||
@@ -395,3 +305,4 @@ fi
|
||||
|
||||
* Tue Aug 19 2008 <srinivas_ramanatha@dell.com> - 2.0.0-1%{?dist}
|
||||
- Modified the spec file to adhere to fedora packaging guidelines.
|
||||
|
||||
|
||||
Binary file not shown.
@@ -1,12 +0,0 @@
|
||||
[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
|
||||
@@ -1,21 +0,0 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user