Hello community,
here is the log from the commit of package rubygem-webyast-activedirectory for
openSUSE:Factory checked in at 2013-08-23 11:03:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-webyast-activedirectory (Old)
and /work/SRC/openSUSE:Factory/.rubygem-webyast-activedirectory.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-webyast-activedirectory"
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-webyast-activedirectory/rubygem-webyast-activedirectory.changes
2013-03-08 11:20:50.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.rubygem-webyast-activedirectory.new/rubygem-webyast-activedirectory.changes
2013-08-23 11:03:42.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.13
+
+-------------------------------------------------------------------
Old:
----
webyast-activedirectory-0.3.12.gem
New:
----
40-default-webyast-activedirectory.rules
webyast-activedirectory-0.3.13.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-webyast-activedirectory.spec ++++++
--- /var/tmp/diff_new_pack.hXcx3o/_old 2013-08-23 11:03:43.000000000 +0200
+++ /var/tmp/diff_new_pack.hXcx3o/_new 2013-08-23 11:03:43.000000000 +0200
@@ -17,7 +17,7 @@
Name: rubygem-webyast-activedirectory
-Version: 0.3.12
+Version: 0.3.13
Release: 0
%define mod_name webyast-activedirectory
%define mod_full_name %{mod_name}-%{version}
@@ -51,6 +51,7 @@
Source: %{mod_full_name}.gem
Source1: org.opensuse.yast.modules.yapi.activedirectory.policy
Source2: ActiveDirectory.pm
+Source3: 40-default-webyast-activedirectory.rules
#
Summary: Webyast module for configuring activedirectory settings
License: GPL-2.0
@@ -82,9 +83,11 @@
%create_restart_script
%post
+%if %suse_version < 1230
# granting all permissions for the web user
/usr/sbin/grantwebyastrights --user root --action grant > /dev/null
/usr/sbin/grantwebyastrights --user %{webyast_user} --action grant > /dev/null
+%endif
%restart_webyast
@@ -102,6 +105,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/
@@ -127,6 +134,9 @@
%dir /usr/share/%{webyast_polkit_dir}
%attr(644,root,root) %config
/usr/share/%{webyast_polkit_dir}/org.opensuse.yast.modules.yapi.activedirectory.policy
+%if %suse_version >= 1230
+/etc/polkit-1/rules.d/40-default-webyast-activedirectory.rules
+%endif
# YaPI dir
%dir /usr/share/YaST2/
++++++ 40-default-webyast-activedirectory.rules ++++++
// default permissions for "webyast" and "root" users
polkit.addRule(function(action, subject) {
if ((action.id == "org.opensuse.yast.modules.yapi.activedirectory.read"
|| action.id == "org.opensuse.yast.modules.yapi.activedirectory.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]