Hello community,
here is the log from the commit of package rubygem-webyast-mailsetting for
openSUSE:Factory checked in at 2013-08-27 21:09:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-webyast-mailsetting (Old)
and /work/SRC/openSUSE:Factory/.rubygem-webyast-mailsetting.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-webyast-mailsetting"
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-webyast-mailsetting/rubygem-webyast-mailsetting.changes
2013-03-08 09:49:37.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.rubygem-webyast-mailsetting.new/rubygem-webyast-mailsetting.changes
2013-08-27 21:22:20.000000000 +0200
@@ -1,0 +2,12 @@
+Mon Aug 26 08:19:43 UTC 2013 - [email protected]
+
+- restart WebYast when the plugin is uninstalled
+- 0.3.17
+
+-------------------------------------------------------------------
+Mon Apr 22 13:49:04 UTC 2013 - [email protected]
+
+- support for the new polkit (Javascript rules file) (bnc#816478)
+- 0.3.16
+
+-------------------------------------------------------------------
Old:
----
webyast-mailsetting-0.3.15.gem
New:
----
40-default-webyast-mailsetting.rules
webyast-mailsetting-0.3.17.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-webyast-mailsetting.spec ++++++
--- /var/tmp/diff_new_pack.Ti8ksO/_old 2013-08-27 21:22:20.000000000 +0200
+++ /var/tmp/diff_new_pack.Ti8ksO/_new 2013-08-27 21:22:20.000000000 +0200
@@ -17,7 +17,7 @@
Name: rubygem-webyast-mailsetting
-Version: 0.3.15
+Version: 0.3.17
Release: 0
%define mod_name webyast-mailsetting
%define mod_full_name %{mod_name}-%{version}
@@ -44,6 +44,7 @@
Source1: MailSettings.pm
Source2: org.opensuse.yast.modules.yapi.mailsettings.policy
Source3: postfix-update-hostname
+Source4: 40-default-webyast-mailsetting.rules
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# install these packages into Hudson chroot environment
@@ -115,6 +116,10 @@
#YaPI
mkdir -p $RPM_BUILD_ROOT/usr/share/YaST2/modules/YaPI/
cp %{SOURCE1} $RPM_BUILD_ROOT/usr/share/YaST2/modules/YaPI/
+%if %suse_version >= 1230
+mkdir -p $RPM_BUILD_ROOT/etc/polkit-1/rules.d/
+install -m 0644 %SOURCE4 $RPM_BUILD_ROOT/etc/polkit-1/rules.d/
+%endif
#hook script
mkdir -p $RPM_BUILD_ROOT/etc/sysconfig/network/scripts/
@@ -128,14 +133,17 @@
%{__rm} -rf $RPM_BUILD_ROOT
%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
%postun
%webyast_remove_assets
+%webyast_plugin_postun
%files
%defattr(-,root,root,-)
@@ -153,7 +161,6 @@
%dir /usr/share/YaST2/modules/
%dir /usr/share/YaST2/modules/YaPI/
#var dir to store mail test status
-%dir %attr (-,%{webyast_user},root) %{webyast_vardir}
%dir %attr (-,%{webyast_user},root) %{webyast_vardir}/mailsetting
/usr/share/YaST2/modules/YaPI/MailSettings.pm
@@ -161,6 +168,9 @@
%dir /usr/share/%{webyast_polkit_dir}
%attr(644,root,root) %config
/usr/share/%{webyast_polkit_dir}/org.opensuse.yast.modules.yapi.mailsettings.policy
+%if %suse_version >= 1230
+/etc/polkit-1/rules.d/40-default-webyast-mailsetting.rules
+%endif
%restart_script_name
++++++ 40-default-webyast-mailsetting.rules ++++++
// default permissions for "webyast" and "root" users
polkit.addRule(function(action, subject) {
if ((action.id == "org.opensuse.yast.modules.yapi.mailsettings.read"
|| action.id == "org.opensuse.yast.modules.yapi.mailsettings.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]