diff --git a/openwsman.spec b/openwsman.spec index 93945dc..c2a5f34 100644 --- a/openwsman.spec +++ b/openwsman.spec @@ -15,7 +15,7 @@ BuildRequires: perl-devel pkgconfig openssl-devel BuildRequires: cmake BuildRequires: systemd-units Version: 2.3.0 -Release: 2%{?dist} +Release: 3%{?dist} Url: http://www.openwsman.org/ License: BSD Group: Applications/System @@ -24,7 +24,7 @@ Source: http://downloads.sourceforge.net/project/openwsman/%{name}/%{ver # help2man generated manpage for openwsmand binary Source1: openwsmand.8.gz # service file for systemd -Source2: openwsman.service +Source2: openwsmand.service # script for testing presence of the certificates in ExecStartPre Source3: owsmantestcert.sh Patch0: %{name}-sitelibdir.patch @@ -183,7 +183,7 @@ 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}/openwsman.service +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 @@ -210,8 +210,8 @@ fi %preun server if [ $1 = 0 ] ; then - /bin/systemctl --no-reload disable openwsman.service > /dev/null 2>&1 || : - /bin/systemctl stop openwsman.service > /dev/null 2>&1 || : + /bin/systemctl --no-reload disable openwsmand.service > /dev/null 2>&1 || : + /bin/systemctl stop openwsmand.service > /dev/null 2>&1 || : fi %postun server @@ -219,7 +219,7 @@ rm -f /var/log/wsmand.log /bin/systemctl daemon-reload >/dev/null 2>&1 || : if [ "$1" -ge "1" ] ; then - /bin/systemctl try-restart openwsman.service >/dev/null 2>&1 || : + /bin/systemctl try-restart openwsmand.service >/dev/null 2>&1 || : fi /sbin/ldconfig @@ -273,7 +273,7 @@ fi %attr(0755,root,root) %{_sysconfdir}/openwsman/owsmangencert.sh %attr(0755,root,root) %{_sysconfdir}/openwsman/owsmantestcert.sh %config(noreplace) %{_sysconfdir}/pam.d/openwsman -%{_unitdir}/openwsman.service +%{_unitdir}/openwsmand.service %dir %{_libdir}/openwsman %dir %{_libdir}/openwsman/authenticators %{_libdir}/openwsman/authenticators/*.so @@ -294,6 +294,9 @@ fi %changelog +* Mon May 28 2012 Vitezslav Crhonek - 2.3.0-3 +- Rename service file + * Wed May 23 2012 Vitezslav Crhonek - 2.3.0-2 - Add systemd support diff --git a/openwsman.service b/openwsmand.service similarity index 100% rename from openwsman.service rename to openwsmand.service