Hello community,

here is the log from the commit of package openvpn for openSUSE:Factory checked 
in at 2014-01-02 11:15:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/openvpn (Old)
 and      /work/SRC/openSUSE:Factory/.openvpn.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "openvpn"

Changes:
--------
--- /work/SRC/openSUSE:Factory/openvpn/openvpn.changes  2013-11-04 
07:08:38.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.openvpn.new/openvpn.changes     2014-01-02 
11:15:20.000000000 +0100
@@ -1,0 +2,5 @@
+Tue Dec 17 15:26:16 UTC 2013 - [email protected]
+
+- Readded rcopenvpn helper script under systemd (bnc#848070)
+
+-------------------------------------------------------------------

New:
----
  rcopenvpn

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ openvpn.spec ++++++
--- /var/tmp/diff_new_pack.XGCALD/_old  2014-01-02 11:15:21.000000000 +0100
+++ /var/tmp/diff_new_pack.XGCALD/_new  2014-01-02 11:15:21.000000000 +0100
@@ -45,6 +45,7 @@
 Source8:        %{name}.service
 Source9:        %{name}.target
 Source10:       %{name}-tmpfile.conf
+Source11:       rc%{name}
 Patch1:         %{name}-2.3-plugin-man.dif
 Patch5:         %{name}-2.3.0-man-dot.diff
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
@@ -155,6 +156,7 @@
 %if %{with_systemd}
 install -D -m 644 $RPM_SOURCE_DIR/%{name}.service 
%{buildroot}/%{_unitdir}/%{name}@.service
 install -D -m 644 $RPM_SOURCE_DIR/%{name}.target 
%{buildroot}/%{_unitdir}/%{name}.target
+install -D -m 755 $RPM_SOURCE_DIR/rc%{name} %{buildroot}%{_sbindir}/rc%{name}
 # tmpfiles.d
 mkdir -p %{buildroot}%{_libexecdir}/tmpfiles.d
 install -m 0644 $RPM_SOURCE_DIR/%{name}-tmpfile.conf 
%{buildroot}%{_libexecdir}/tmpfiles.d/%{name}.conf
@@ -248,8 +250,8 @@
 %else
 %config %{_sysconfdir}/init.d/openvpn
 /var/adm/fillup-templates/sysconfig.openvpn
-%{_sbindir}/rcopenvpn
 %endif
+%{_sbindir}/rcopenvpn
 %{_sbindir}/openvpn
 %attr(0750,root,root) %dir %ghost %{_localstatedir}/run/openvpn
 %{_includedir}/%{name}-plugin.h



++++++ rcopenvpn ++++++
#! /bin/bash

SYSTEMD_NO_WRAP=1 . /etc/rc.status
rc_reset

action=$1 ; shift
config=$1 ; shift

if test -n "$config" ; then
        systemctl "${action}" "openvpn@${config}.service"
else
        case $action in
        status)
                n=0
                l=`systemctl show -p ConsistsOf openvpn.target 2>/dev/null`
                for s in ${l#ConsistsOf=} ; do
                        case $s in
                        openvpn@*.service)
                                systemctl status "$s"
                                rc_check
                                ((++n))
                        ;;
                        esac
                done
                if test $n -gt 0 ; then
                        rc_status
                else
                        rc_status -u
                fi
        ;;
        *)
                systemctl "${action}" "openvpn.target"
        ;;
        esac
fi
rc_exit

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to