Mailinglist Archive: opensuse-commit (1500 mails)

< Previous Next >
commit yast2-ntp-client
  • From: root@xxxxxxx (h_root)
  • Date: Mon, 6 Nov 2006 22:37:57 +0100 (CET)
  • Message-id: <20061106213757.8552A84798@xxxxxxxxxxxxxxx>

Hello community,

here is the log from the commit of package yast2-ntp-client
checked in at Mon Nov 6 22:37:57 CET 2006.

--------
--- yast2-ntp-client/yast2-ntp-client.changes 2006-10-30 09:59:38.000000000 +0100
+++ /mounts/work_src_done/NOARCH/yast2-ntp-client/yast2-ntp-client.changes 2006-11-06 14:25:30.000000000 +0100
@@ -1,0 +2,7 @@
+Mon Nov 6 14:16:06 CET 2006 - kmachalkova@xxxxxxx
+
+- Set ActiveDirectory DC as a default time server when called from
+ samba-client
+- 2.14.1
+
+-------------------------------------------------------------------

Old:
----
yast2-ntp-client-2.14.0.tar.bz2

New:
----
yast2-ntp-client-2.14.1.tar.bz2

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

Other differences:
------------------
++++++ yast2-ntp-client.spec ++++++
--- /var/tmp/diff_new_pack.fjlpqd/_old 2006-11-06 22:37:34.000000000 +0100
+++ /var/tmp/diff_new_pack.fjlpqd/_new 2006-11-06 22:37:34.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-ntp-client (Version 2.14.0)
+# spec file for package yast2-ntp-client (Version 2.14.1)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -11,12 +11,12 @@
# norootforbuild

Name: yast2-ntp-client
-Version: 2.14.0
+Version: 2.14.1
Release: 1
License: GNU General Public License (GPL) - all versions
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-ntp-client-2.14.0.tar.bz2
+Source0: yast2-ntp-client-2.14.1.tar.bz2
prefix: /usr
BuildRequires: perl-XML-Writer update-desktop-files yast2 yast2-devtools yast2-slp yast2-testsuite
Requires: yast2 yast2-slp yast2-country
@@ -34,7 +34,7 @@
Lukas Ocilka <locilka@xxxxxxx>

%prep
-%setup -n yast2-ntp-client-2.14.0
+%setup -n yast2-ntp-client-2.14.1

%build
%{prefix}/bin/y2tool y2autoconf
@@ -72,6 +72,10 @@
/usr/share/YaST2/schema/autoyast/rnc/ntpclient.rnc

%changelog -n yast2-ntp-client
+* Mon Nov 06 2006 - kmachalkova@xxxxxxx
+- Set ActiveDirectory DC as a default time server when called from
+ samba-client
+- 2.14.1
* Mon Oct 30 2006 - kmachalkova@xxxxxxx
- Improved Autoyast profile validation (ntpclient.rnc moved from
autoyast package (#215248)

++++++ yast2-ntp-client-2.14.0.tar.bz2 -> yast2-ntp-client-2.14.1.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-ntp-client-2.14.0/VERSION new/yast2-ntp-client-2.14.1/VERSION
--- old/yast2-ntp-client-2.14.0/VERSION 2006-10-30 09:45:22.000000000 +0100
+++ new/yast2-ntp-client-2.14.1/VERSION 2006-11-06 14:15:50.000000000 +0100
@@ -1 +1 @@
-2.14.0
+2.14.1
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-ntp-client-2.14.0/configure new/yast2-ntp-client-2.14.1/configure
--- old/yast2-ntp-client-2.14.0/configure 2006-10-30 09:56:25.000000000 +0100
+++ new/yast2-ntp-client-2.14.1/configure 2006-11-06 13:52:59.000000000 +0100
@@ -2799,6 +2799,34 @@
echo "$as_me: error: ycpc is not installed" >&2;}
{ (exit 1); exit 1; }; }
fi
+as_ac_File=`echo "ac_cv_file_$devtools_yast2dir/data/testsuite/Makefile.testsuite" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for $devtools_yast2dir/data/testsuite/Makefile.testsuite" >&5
+echo $ECHO_N "checking for $devtools_yast2dir/data/testsuite/Makefile.testsuite... $ECHO_C" >&6; }
+if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ test "$cross_compiling" = yes &&
+ { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
+echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
+ { (exit 1); exit 1; }; }
+if test -r "$devtools_yast2dir/data/testsuite/Makefile.testsuite"; then
+ eval "$as_ac_File=yes"
+else
+ eval "$as_ac_File=no"
+fi
+fi
+ac_res=`eval echo '${'$as_ac_File'}'`
+ { echo "$as_me:$LINENO: result: $ac_res" >&5
+echo "${ECHO_T}$ac_res" >&6; }
+if test `eval echo '${'$as_ac_File'}'` = yes; then
+ :
+else
+
+ { echo "$as_me:$LINENO: WARNING: yast2-testsuite.rpm is not installed" >&5
+echo "$as_me: WARNING: yast2-testsuite.rpm is not installed" >&2;}
+
+fi
+


ac_config_files="$ac_config_files Makefile agents/Makefile data/Makefile doc/autodocs/Makefile doc/Makefile src/Makefile testsuite/Makefile"
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-ntp-client-2.14.0/configure.in new/yast2-ntp-client-2.14.1/configure.in
--- old/yast2-ntp-client-2.14.0/configure.in 2006-10-30 09:56:21.000000000 +0100
+++ new/yast2-ntp-client-2.14.1/configure.in 2006-11-06 13:52:55.000000000 +0100
@@ -1,6 +1,6 @@
dnl configure.in for yast2-ntp-client
dnl
-dnl -- This file is generated by y2autoconf 2.13.27 - DO NOT EDIT! --
+dnl -- This file is generated by y2autoconf 2.13.29 - DO NOT EDIT! --
dnl (edit configure.in.in instead)

AC_INIT(yast2-ntp-client, 2.14.0, http://bugs.opensuse.org/, yast2-ntp-client)
@@ -144,6 +144,9 @@
if test "$YCPC" = "false"; then
AC_MSG_ERROR([ycpc is not installed])
fi
+AC_CHECK_FILE($devtools_yast2dir/data/testsuite/Makefile.testsuite, [], [
+ AC_MSG_WARN([yast2-testsuite.rpm is not installed])
+])


AC_CONFIG_FILES(Makefile agents/Makefile
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-ntp-client-2.14.0/src/NtpClient.ycp new/yast2-ntp-client-2.14.1/src/NtpClient.ycp
--- old/yast2-ntp-client-2.14.0/src/NtpClient.ycp 2006-10-30 09:50:38.000000000 +0100
+++ new/yast2-ntp-client-2.14.1/src/NtpClient.ycp 2006-11-06 14:17:51.000000000 +0100
@@ -4,7 +4,7 @@
* Summary: Data for configuration of ntp-client, input and output functions.
* Authors: Jiri Srain <jsrain@xxxxxxx>
*
- * $Id: NtpClient.ycp 33820 2006-10-30 08:50:35Z kmachalkova $
+ * $Id: NtpClient.ycp 34082 2006-11-06 13:17:48Z kmachalkova $
*
* Representation of the configuration of ntp-client.
* Input and output routines.
@@ -16,6 +16,7 @@
textdomain "ntp-client";

import "Directory";
+import "FileUtils";
import "Message";
import "Mode";
import "NetworkDevices";
@@ -87,6 +88,11 @@
*/
global map<string,any> selected_record = $[];

+/**
+ * Active Directory controller
+ */
+global string ad_controller = "";
+
///**
// * Should the firewall settings be changed?
// */
@@ -258,6 +264,19 @@

run_service = Service::Enabled (service_name);

+ //Poke to /var/lib/YaST if there is Active Directory controller address dumped in .ycp file
+ string ad_ntp_file = Directory::vardir + "/ad_ntp_data.ycp";
+ if(FileUtils::Exists(ad_ntp_file)) {
+ y2milestone("Reading %1", ad_ntp_file);
+ map <string, string> ad_ntp_data = (map <string, string>) SCR::Read(.target.ycp, ad_ntp_file);
+ ad_controller = ad_ntp_data["ads"]:"";
+ if(ad_controller != "") {
+ y2milestone("Got %1 for ntp sync, deleting %2, since it is no longer needed", ad_controller, ad_ntp_file);
+ SCR::Execute(.target.remove, ad_ntp_file);
+ }
+ }
+
+
map conf = (map)SCR::Read (.etc.ntp_conf.all);
if (conf == nil)
{
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-ntp-client-2.14.0/src/widgets.ycp new/yast2-ntp-client-2.14.1/src/widgets.ycp
--- old/yast2-ntp-client-2.14.0/src/widgets.ycp 2006-10-27 12:24:34.000000000 +0200
+++ new/yast2-ntp-client-2.14.1/src/widgets.ycp 2006-11-06 14:17:51.000000000 +0100
@@ -4,7 +4,7 @@
* Summary: Widgets definitions
* Authors: Jiri Srain <jsrain@xxxxxxx>
*
- * $Id: widgets.ycp 33772 2006-10-27 10:24:31Z kmachalkova $
+ * $Id: widgets.ycp 34082 2006-11-06 13:17:48Z kmachalkova $
*/

{
@@ -481,9 +481,14 @@
* @param id any widget id
*/
define void addressInit (string id) ``{
- selected_record_during_init = NtpClient::selected_record;
- UI::ChangeWidget (`id (id), `Value,
- NtpClient::selected_record["address"]:"");
+ string ad = NtpClient::ad_controller;
+ if ( ad != "")
+ UI::ChangeWidget(`id(id), `Value, ad);
+ else {
+ selected_record_during_init = NtpClient::selected_record;
+ UI::ChangeWidget (`id (id), `Value,
+ NtpClient::selected_record["address"]:"");
+ }
UI::SetFocus (`id (id));
}

diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-ntp-client-2.14.0/testsuite/tests/Read.out new/yast2-ntp-client-2.14.1/testsuite/tests/Read.out
--- old/yast2-ntp-client-2.14.0/testsuite/tests/Read.out 2006-08-18 13:22:49.000000000 +0200
+++ new/yast2-ntp-client-2.14.1/testsuite/tests/Read.out 2006-11-06 14:10:20.000000000 +0100
@@ -4,6 +4,7 @@
Read .target.ycp "/usr/share/YaST2/data/country.ycp" nil
Read .target.yast2 "country.ycp" nil
Log Failed to read country names
+Read .target.ycp "/var/lib/YaST2/ad_ntp_data.ycp" nil
Read .etc.ntp_conf.all $["comment":"", "file":-1, "kind":"section", "name":"", "type":-1, "value":[$["comment":"", "kind":"value", "name":"server", "type":0, "value":"ntp1 options1"], $["comment":"", "kind":"value", "name":"server", "type":0, "value":"127.127.1.2 options_clock"], $["comment":"", "kind":"value", "name":"fudge", "type":0, "value":"127.127.1.2fudge_clock"], $["comment":"", "kind":"value", "name":"server", "type":0, "value":"ntp2 options2"], $["comment":"", "kind":"value", "name":"peer", "type":0, "value":"peer1 options_peer"]]]
Read .sysconfig.ntp.NTPD_RUN_CHROOTED "yes"
Read .sysconfig.ntp.NTPD_INITIAL_NTPDATE "AUTO-2"


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



Remember to have fun...

---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread