commit yast2-nfs-server for openSUSE:Factory
Hello community,
here is the log from the commit of package yast2-nfs-server for openSUSE:Factory checked in at 2013-07-07 22:28:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-nfs-server (Old)
and /work/SRC/openSUSE:Factory/.yast2-nfs-server.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-nfs-server"
Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-nfs-server/yast2-nfs-server.changes 2013-06-05 13:26:24.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.yast2-nfs-server.new/yast2-nfs-server.changes 2013-07-07 22:28:27.000000000 +0200
@@ -1,0 +2,7 @@
+Wed Jun 26 16:39:49 UTC 2013 - lslezak@suse.cz
+
+- use ini-agent instead of Limal for reading /etc/idmapd.conf file,
+ Limal has been dropped in Factory (FATE#313242).
+- 2.24.0
+
+-------------------------------------------------------------------
Old:
----
yast2-nfs-server-2.21.7.tar.bz2
New:
----
yast2-nfs-server-2.24.0.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-nfs-server.spec ++++++
--- /var/tmp/diff_new_pack.xK7YdN/_old 2013-07-07 22:28:28.000000000 +0200
+++ /var/tmp/diff_new_pack.xK7YdN/_new 2013-07-07 22:28:28.000000000 +0200
@@ -17,7 +17,7 @@
Name: yast2-nfs-server
-Version: 2.21.7
+Version: 2.24.0
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -49,8 +49,6 @@
%package -n yast2-nfs-common
Summary: Configuration of NFS, common parts
Group: System/YaST
-Requires: limal-nfs-server
-Requires: limal-nfs-server-perl
%description -n yast2-nfs-common
-
@@ -101,6 +99,5 @@
%defattr(-,root,root)
/usr/share/YaST2/scrconf/cfg_nfs.scr
/usr/share/YaST2/scrconf/etc_idmapd_conf.scr
-/usr/lib/YaST2/servers_non_y2/ag_idmapd_conf
%changelog
++++++ yast2-nfs-server-2.21.7.tar.bz2 -> yast2-nfs-server-2.24.0.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-nfs-server-2.21.7/VERSION new/yast2-nfs-server-2.24.0/VERSION
--- old/yast2-nfs-server-2.21.7/VERSION 2013-05-16 16:30:41.000000000 +0200
+++ new/yast2-nfs-server-2.24.0/VERSION 2013-07-02 10:20:52.000000000 +0200
@@ -1 +1 @@
-2.21.7
+2.24.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-nfs-server-2.21.7/agents/Makefile.am new/yast2-nfs-server-2.24.0/agents/Makefile.am
--- old/yast2-nfs-server-2.21.7/agents/Makefile.am 2013-01-23 18:54:21.000000000 +0100
+++ new/yast2-nfs-server-2.24.0/agents/Makefile.am 2013-07-02 10:20:52.000000000 +0200
@@ -4,8 +4,7 @@
# $Id$
#
-agent_SCRIPTS = ag_exports\
- ag_idmapd_conf
+agent_SCRIPTS = ag_exports
scrconf_DATA = etc_exports.scr\
etc_idmapd_conf.scr\
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-nfs-server-2.21.7/agents/Makefile.in new/yast2-nfs-server-2.24.0/agents/Makefile.in
--- old/yast2-nfs-server-2.21.7/agents/Makefile.in 2013-05-28 14:14:43.000000000 +0200
+++ new/yast2-nfs-server-2.24.0/agents/Makefile.in 2013-07-04 12:58:56.000000000 +0200
@@ -224,9 +224,7 @@
ydatadir = @ydatadir@
yncludedir = @yncludedir@
ystartupdir = @ystartupdir@
-agent_SCRIPTS = ag_exports\
- ag_idmapd_conf
-
+agent_SCRIPTS = ag_exports
scrconf_DATA = etc_exports.scr\
etc_idmapd_conf.scr\
cfg_nfs.scr
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-nfs-server-2.21.7/agents/ag_idmapd_conf new/yast2-nfs-server-2.24.0/agents/ag_idmapd_conf
--- old/yast2-nfs-server-2.21.7/agents/ag_idmapd_conf 2013-01-23 18:54:21.000000000 +0100
+++ new/yast2-nfs-server-2.24.0/agents/ag_idmapd_conf 1970-01-01 01:00:00.000000000 +0100
@@ -1,164 +0,0 @@
-#!/usr/bin/perl -w
-#
-# $Id: $
-#
-# Agent for modifying /etc/idmapd.conf parameters.
-#
-# using limal-nfs-server swig interface, see:
-# http://svn.suse.de/svn/limal/limal-head/limal-nfs-server/
-#
-
-use strict;
-use ycp;
-use Errno qw(ENOENT);
-use LIMAL::NfsServer;
-use LIMAL;
-
-my $filename="";
-my $conf = new LIMAL::NfsServer::KNfsIdmapdConf();
-my @idmapdentry = ();
-my $entryName="";
-
-# read the conf file
-
-sub parse_file()
-{
- eval {
- $conf->load($filename);
- };
- if($@)
- {
- return $@;
- }
- return undef;
-}
-
-
-# verify and tell if there are errors in the conf file
-sub checked_write_file ()
-{
- eval
- {
- my $res = $conf->verifyConf();
- my @msg = "";
-
- if ($res->size() > 0)
- {
- y2error("Check failed !!");
- for(my $i = 0; $i < $res->size(); $i++)
- {
- push(@msg, $res->getitem($i));
- y2error($res->getitem($i));
- }
- die "Error in Idmapd Entries ".join(": ",@msg. "\n");
- }
- };
- return 0 if ($@);
-
- eval
- {
- $conf->save($filename,"");
- };
- return 0 if ($@);
-
- return 1;
-
-}
-
-
-sub set_entry ()
-{
- eval
- {
- $conf->setEntry($idmapdentry[0],$idmapdentry[1]);
- if ($@)
- {
- y2error("Unable to set entry!");
- }
- };
- return 0 if ($@);
-
- return 1;
-}
-
-
-sub get_value ()
-{
- my $value = "";
- eval
- {
- $value = $conf->getValueFor($entryName);
- };
- return undef if ($@);
-
- return $value;
-}
-
-
-#
-# MAIN program
-#
-
-$filename="/etc/idmapd.conf";
-
-while ( <STDIN> )
-{
- my ($command, $path, $argument) = ycp::ParseCommand ($_);
-
- if ($command eq "Write")
- {
- parse_file();
- my $result = "true";
- if ($path eq "." && ref ($argument) eq "ARRAY")
- {
- @idmapdentry = @{$argument};
- $result = set_entry() ? "true" : "false";
- if( $@)
- {
- y2error ("$@");
- }
-
- $result = checked_write_file()? "true":"false";
- }
- else
- {
- y2error ("Wrong path $path or argument: ", ref ($argument));
- $result = "false";
- }
-
- ycp::Return ($result);
- }
- elsif ($command eq "Read")
- {
- parse_file();
- my $value = "";
- if ($path eq ".")
- {
- $entryName = $argument;
- $value = get_value();
- }
- if ($@)
- {
- y2error ("$@");
- }
- else
- {
- y2error ("Wrong path $path");
- }
- ycp::Return ($value);
-
- }
-
- elsif ($command eq "result")
- {
- exit;
- }
-
- # Unknown command
- else
- {
- y2error ("Unknown instruction $command or argument: ", ref ($argument));
- ycp::Return (undef);
- }
-
-}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-nfs-server-2.21.7/agents/etc_idmapd_conf.scr new/yast2-nfs-server-2.24.0/agents/etc_idmapd_conf.scr
--- old/yast2-nfs-server-2.21.7/agents/etc_idmapd_conf.scr 2013-01-23 18:54:21.000000000 +0100
+++ new/yast2-nfs-server-2.24.0/agents/etc_idmapd_conf.scr 2013-07-02 10:20:52.000000000 +0200
@@ -4,40 +4,50 @@
* Summary:
* SCR Agent for reading/writing /etc/idmapd.conf
* Access:
- * Currently only write
+ * R/W
* Authors:
- * Chakravarthi P
participants (1)
-
root@hilbert.suse.de