Hello community,

here is the log from the commit of package rubygem-webyast-ntp for 
openSUSE:Factory checked in at 2013-08-23 11:04:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-webyast-ntp (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-webyast-ntp.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-webyast-ntp"

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-webyast-ntp/rubygem-webyast-ntp.changes  
2013-02-05 13:12:21.000000000 +0100
+++ 
/work/SRC/openSUSE:Factory/.rubygem-webyast-ntp.new/rubygem-webyast-ntp.changes 
    2013-08-23 11:04:23.000000000 +0200
@@ -1,0 +2,6 @@
+Mon Apr 22 13:49:04 UTC 2013 - [email protected]
+
+- support for the new polkit (Javascript rules file) (bnc#816478)
+- 0.3.8
+
+-------------------------------------------------------------------

Old:
----
  webyast-ntp-0.3.7.gem

New:
----
  40-default-webyast-ntp.rules
  webyast-ntp-0.3.8.gem

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

Other differences:
------------------
++++++ rubygem-webyast-ntp.spec ++++++
--- /var/tmp/diff_new_pack.PHlZdH/_old  2013-08-23 11:04:24.000000000 +0200
+++ /var/tmp/diff_new_pack.PHlZdH/_new  2013-08-23 11:04:24.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-webyast-ntp
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 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
@@ -17,7 +17,7 @@
 
 
 Name:           rubygem-webyast-ntp
-Version:        0.3.7
+Version:        0.3.8
 Release:        0
 %define mod_name webyast-ntp
 %define mod_full_name %{mod_name}-%{version}
@@ -48,6 +48,7 @@
 Source:         %{mod_full_name}.gem
 Source1:        NTP.pm
 Source2:        org.opensuse.yast.modules.yapi.ntp.policy
+Source3:        40-default-webyast-ntp.rules
 
 %package doc
 Summary:        RDoc documentation for %{mod_name}
@@ -93,6 +94,10 @@
 #policies
 mkdir -p $RPM_BUILD_ROOT/usr/share/%{webyast_polkit_dir}
 cp %{SOURCE2} $RPM_BUILD_ROOT/usr/share/%{webyast_polkit_dir}
+%if %suse_version >= 1230
+mkdir -p $RPM_BUILD_ROOT/etc/polkit-1/rules.d/
+install -m 0644 %SOURCE3 $RPM_BUILD_ROOT/etc/polkit-1/rules.d/
+%endif
 
 %webyast_build_restdoc
 
@@ -103,9 +108,12 @@
 %{__rm} -rf $RPM_BUILD_ROOT
 
 %post
+%if %suse_version < 1230
 # granting all permissions for the webservice user and root
 /usr/sbin/grantwebyastrights --user root --action grant > /dev/null
 /usr/sbin/grantwebyastrights --user %{webyast_user} --action grant > /dev/null
+%endif
+
 %restart_webyast
 
 %files 
@@ -121,6 +129,9 @@
 %dir /usr/share/YaST2/modules/YaPI/
 %attr(644,root,root) /usr/share/YaST2/modules/YaPI/NTP.pm
 %attr(644,root,root) 
/usr/share/%{webyast_polkit_dir}/org.opensuse.yast.modules.yapi.ntp.policy
+%if %suse_version >= 1230
+/etc/polkit-1/rules.d/40-default-webyast-ntp.rules
+%endif
 
 %restart_script_name
 

++++++ 40-default-webyast-ntp.rules ++++++
// default permissions for "webyast" and "root" users

polkit.addRule(function(action, subject) {
  if ((action.id == "org.opensuse.yast.modules.yapi.ntp.synchronize"
    || action.id == "org.opensuse.yast.modules.yapi.ntp.setserver"
    ) && (subject.user == "webyast" || subject.user == "root"))
  {
    return polkit.Result.YES;
  }
});    

// vim: syntax=javascript

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

Reply via email to