Hello community,

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

Package is "rubygem-webyast-firewall"

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/rubygem-webyast-firewall/rubygem-webyast-firewall.changes
        2013-02-05 13:07:55.000000000 +0100
+++ 
/work/SRC/openSUSE:Factory/.rubygem-webyast-firewall.new/rubygem-webyast-firewall.changes
   2013-08-23 11:03:54.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.12
+
+-------------------------------------------------------------------

Old:
----
  webyast-firewall-0.3.11.gem

New:
----
  40-default-webyast-firewall.rules
  webyast-firewall-0.3.12.gem

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

Other differences:
------------------
++++++ rubygem-webyast-firewall.spec ++++++
--- /var/tmp/diff_new_pack.O2dVaE/_old  2013-08-23 11:03:55.000000000 +0200
+++ /var/tmp/diff_new_pack.O2dVaE/_new  2013-08-23 11:03:55.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-webyast-firewall
 #
-# 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-firewall
-Version:        0.3.11
+Version:        0.3.12
 Release:        0
 %define mod_name webyast-firewall
 %define mod_full_name %{mod_name}-%{version}
@@ -51,6 +51,7 @@
 Source:         %{mod_full_name}.gem
 Source1:        org.opensuse.yast.modules.yapi.firewall.policy
 Source2:        FIREWALL.pm
+Source3:        40-default-webyast-firewall.rules
 
 %package doc
 Summary:        RDoc documentation for %{mod_name}
@@ -93,6 +94,10 @@
 # Policies
 mkdir -p $RPM_BUILD_ROOT/usr/share/%{webyast_polkit_dir}
 install -m 0644 %SOURCE1 $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
 
 #YaPI
 mkdir -p $RPM_BUILD_ROOT/usr/share/YaST2/modules/YaPI/
@@ -109,8 +114,10 @@
 #
 # granting all permissions for root
 #
+%if %suse_version < 1230
 /usr/sbin/grantwebyastrights --user root --action grant > /dev/null ||:
 /usr/sbin/grantwebyastrights --user %{webyast_user} --action grant > /dev/null 
||:
+%endif
 
 %restart_webyast
 
@@ -130,6 +137,9 @@
 
 %dir /usr/share/%{webyast_polkit_dir}
 %attr(644,root,root) %config 
/usr/share/%{webyast_polkit_dir}/org.opensuse.yast.modules.yapi.firewall.policy
+%if %suse_version >= 1230
+/etc/polkit-1/rules.d/40-default-webyast-firewall.rules
+%endif
 
 # YaPI dir
 %dir /usr/share/YaST2/

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

polkit.addRule(function(action, subject) {
  if ((action.id == "org.opensuse.yast.modules.yapi.firewall.read"
    || action.id == "org.opensuse.yast.modules.yapi.firewall.write"
    ) && (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