Skip to content

Commit

Permalink
Add rcopenwsman symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaempf committed Feb 27, 2014
1 parent 638b9c8 commit 7d43c4d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
- Unchecked memory allocation in dictionary_new(), d, d->val, d->key, d->hash
- Unchecked memory allocation in u_error_new(), *error
- sighup_handler() in wsmand.c uses unsafe functions in a signal handler
- Features
- add rcopenwsman command to systemd environments
- add rcopenwsmand command for backwards compatibility
- Bindings
- support rdoc 2.1 in Ruby bindings
- cmake: use PYTHON_INCLUDE_DIRS
Expand Down
12 changes: 11 additions & 1 deletion package/openwsman.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,13 @@ BuildRequires: openssl-devel
BuildRequires: pkgconfig
BuildRequires: ruby

# RHEL6 is missing ruby-devel in OBS
%if 0%{?rhel_version} != 700
BuildRequires: ruby-devel
%if 0%{?fedora} == 0
BuildRequires: ruby-rdoc
%endif
%endif

%if 0%{?fedora} == 19
BuildRequires: rubypick
Expand Down Expand Up @@ -340,6 +343,10 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/openwsman/authenticators/*.la
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/init.d
install -m 755 build/etc/init/openwsmand.sh $RPM_BUILD_ROOT%{_sysconfdir}/init.d/openwsmand
ln -sf %{_sysconfdir}/init.d/openwsmand $RPM_BUILD_ROOT%{_sbindir}/rcopenwsmand
%else
# rcopenwsmand for systemd
ln -sf %{_sbindir}/service $RPM_BUILD_ROOT%{_sbindir}/rcopenwsman
ln -sf %{_sbindir}/rcopenwsman $RPM_BUILD_ROOT%{_sbindir}/rcopenwsmand
%endif
install -m 644 etc/openwsman.conf $RPM_BUILD_ROOT%{_sysconfdir}/openwsman
install -m 644 etc/openwsman_client.conf $RPM_BUILD_ROOT%{_sysconfdir}/openwsman
Expand Down Expand Up @@ -471,8 +478,11 @@ rm -f /var/log/wsmand.log
%endif
%if 0%{?suse_version} <= 1210
%attr(0755,root,root) %{_sysconfdir}/init.d/openwsmand
%{_sbindir}/rcopenwsmand
%else
%{_sbindir}/rcopenwsman
%endif
# backwards compatibility
%{_sbindir}/rcopenwsmand
%dir %{_libdir}/openwsman
%dir %{_libdir}/openwsman/authenticators
%{_libdir}/openwsman/authenticators/*.so
Expand Down

0 comments on commit 7d43c4d

Please sign in to comment.