Hello community,
here is the log from the commit of package webyast-kerberos-ws for openSUSE:Factory
checked in at Mon Jan 24 15:51:14 CET 2011.
--------
New Changes file:
--- /dev/null 2010-08-26 16:28:41.000000000 +0200
+++ /mounts/work_src_done/STABLE/webyast-kerberos-ws/webyast-kerberos-ws.changes 2010-08-23 15:04:39.000000000 +0200
@@ -0,0 +1,29 @@
+-------------------------------------------------------------------
+Mon Aug 23 12:58:41 UTC 2010 - jreidinger@novell.com
+
+- add url to spec file (bnc#625537)
+- 0.2.4
+
+-------------------------------------------------------------------
+Thu Aug 19 08:50:52 CEST 2010 - jsuchome@suse.cz
+
+- do not try to save undefined values (bnc#632669)
+- 0.2.3
+
+-------------------------------------------------------------------
+Mon Jul 26 18:35:05 CEST 2010 - jsuchome@suse.cz
+
+- do not read settings twice before writing
+- 0.2.2
+
+-------------------------------------------------------------------
+Fri Jul 23 14:36:05 CEST 2010 - jsuchome@suse.cz
+
+- added REST API documentation
+- 0.2.1
+
+-------------------------------------------------------------------
+Mon Jul 19 12:42:48 CEST 2010 - jsuchome@suse.cz
+
+- initial version
+
calling whatdependson for head-i586
New:
----
KERBEROS.pm
org.opensuse.yast.modules.yapi.kerberos.policy
webyast-kerberos-ws-rpmlintrc
webyast-kerberos-ws.changes
webyast-kerberos-ws.spec
www.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ webyast-kerberos-ws.spec ++++++
#
# spec file for package webyast-kerberos-ws
#
# Copyright (c) 2011 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: webyast-kerberos-ws
Provides: WebYaST(org.opensuse.yast.modules.yapi.kerberos)
PreReq: webyast-base-ws
License: GPLv2
Group: Productivity/Networking/Web/Utilities
Url: http://en.opensuse.org/Portal:WebYaST
AutoReqProv: on
Version: 0.2.4
Release: 1
Summary: WebYaST - service for configuration of Kerberos client
Source: www.tar.bz2
Source1: org.opensuse.yast.modules.yapi.kerberos.policy
Source2: KERBEROS.pm
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
BuildRequires: rubygem-restility rubygem-yast2-webservice-tasks
BuildRequires: webyast-base-ws-testsuite
BuildRequires: rubygem-mocha rubygem-test-unit
# KERBEROS.pm is using yast2-kerberos-client API
Requires: yast2-kerberos-client krb5 pam_krb5 krb5-client
# reasonable PATH set (bnc#617442)
Requires: yast2-dbus-server >= 2.17.3
#
%define plugin_name kerberos
%define plugin_dir %{webyast_ws_dir}/vendor/plugins/%{plugin_name}
#
%package testsuite
License: GPLv2
Group: Productivity/Networking/Web/Utilities
Requires: %{name} = %{version}
Requires: webyast-base-ws-testsuite
Summary: Testsuite for webyast-kerberos-ws package
%description
WebYaST - Plugin providing REST service for configuration of Kerberos client
Authors:
--------
Jiri Suchomel
%description testsuite
This package contains complete testsuite for webyast-kerberos-ws webservice package.
It's only needed for verifying the functionality of the module and it's not
needed at runtime.
%prep
%setup -q -n www
%build
# build restdoc documentation
mkdir -p public/kerberos/restdoc
%webyast_ws_restdoc
# do not package restdoc sources
rm -rf restdoc
%check
# run the testsuite
%webyast_ws_check
%install
#
# Install all web and frontend parts.
#
mkdir -p $RPM_BUILD_ROOT%{plugin_dir}
cp -a * $RPM_BUILD_ROOT%{plugin_dir}/
rm -f $RPM_BUILD_ROOT%{plugin_dir}/COPYING
# Policies
mkdir -p $RPM_BUILD_ROOT/usr/share/PolicyKit/policy
install -m 0644 %SOURCE1 $RPM_BUILD_ROOT/usr/share/PolicyKit/policy/
#YaPI
mkdir -p $RPM_BUILD_ROOT/usr/share/YaST2/modules/YaPI/
cp %{SOURCE2} $RPM_BUILD_ROOT/usr/share/YaST2/modules/YaPI/
%clean
rm -rf $RPM_BUILD_ROOT
%post
# granting all permissions for the web user
/usr/sbin/grantwebyastrights --user root --action grant > /dev/null
/usr/sbin/grantwebyastrights --user %{webyast_ws_user} --action grant > /dev/null
%postun
%files
%defattr(-,root,root)
%dir %{webyast_ws_dir}
%dir %{webyast_ws_dir}/vendor
%dir %{webyast_ws_dir}/vendor/plugins
%dir %{plugin_dir}
# YaPI dir
%dir /usr/share/YaST2/
%dir /usr/share/YaST2/modules/
%dir /usr/share/YaST2/modules/YaPI/
/usr/share/YaST2/modules/YaPI/KERBEROS.pm
%{plugin_dir}/README
%{plugin_dir}/Rakefile
%{plugin_dir}/init.rb
%{plugin_dir}/install.rb
%{plugin_dir}/uninstall.rb
%{plugin_dir}/app
%{plugin_dir}/config
%{plugin_dir}/doc
%{plugin_dir}/public
%dir /usr/share/PolicyKit
%dir /usr/share/PolicyKit/policy
%attr(644,root,root) %config /usr/share/PolicyKit/policy/org.opensuse.yast.modules.yapi.kerberos.policy
%doc COPYING
%files testsuite
%defattr(-,root,root)
%{webyast_ws_dir}/vendor/plugins/%{plugin_name}/test
%changelog
++++++ KERBEROS.pm ++++++
#--
# Copyright (c) 2009-2010 Novell, Inc.
#
# All Rights Reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2 of the GNU General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, contact Novell, Inc.
#
# To contact Novell about this file by physical or electronic mail,
# you may find current contact information at www.novell.com
#++
package YaPI::KERBEROS;
use strict;
use YaST::YCP qw(:LOGGING);
use YaPI;
use Data::Dumper;
# ------------------- imported modules
YaST::YCP::Import ("Kerberos");
YaST::YCP::Import ("Progress");
# -------------------------------------
our $VERSION = '1.0.0';
our @CAPABILITIES = ('SLES11');
our %TYPEINFO;
=item *
C<$hash Read ();>
Returns the Kerberos client configuration
=cut
BEGIN{$TYPEINFO{Read} = ["function",
[ "map", "string", "any" ],
[ "map", "string", "any" ]];
}
sub Read {
my $self = shift;
my $args = shift;
Progress->set (0);
Kerberos->Read ();
my $export = Kerberos->Export ();
if ($args->{"full_export"}) {
return $export;
}
return {
"default_realm" => $export->{"kerberos_client"}{"default_realm"} || "",
"default_domain"=> $export->{"kerberos_client"}{"default_domain"} || "",
"kdc" => $export->{"kerberos_client"}{"kdc_server"} || "",
"use_kerberos" => $export->{"pam_login"}{"use_kerberos"},
"dns_used" => Kerberos->dns_used ()
};
}
=item *
C<$string Write ($argument_hash);>
Write Kerberos configuration
Returns error code, 0 is success
=cut
BEGIN{$TYPEINFO{Write} = ["function",
"integer",
[ "map", "string", "any" ]];
}
sub Write {
my $self = shift;
my $args = shift;
my $ret = 0;
Progress->set (0);
Kerberos->Read ();
if (defined $args->{"use_kerberos"}) {
Kerberos->use_pam_krb ($args->{"use_kerberos"});
Kerberos->pam_modified (1);
}
if (defined $args->{"dns_used"}) {
Kerberos->dns_used ($args->{"dns_used"});
}
Kerberos->default_domain ($args->{"default_domain"} || "") if defined $args->{"default_domain"};
Kerberos->default_realm ($args->{"default_realm"} || "") if defined $args->{"default_realm"};
Kerberos->kdc ($args->{"kdc"} || "") if defined $args->{"kdc"};
Kerberos->modified (1);
Kerberos->Write ();
return $ret;
}
++++++ webyast-kerberos-ws-rpmlintrc ++++++
# ignore security warnings (unauthorized PolicyKit permissions) for now
addFilter("I: polkit-unauthorized-privilege")
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org