debian/0000755000000000000000000000000011571347703007176 5ustar debian/source/0000755000000000000000000000000011430740621010464 5ustar debian/source/format0000644000000000000000000000001411430740621011672 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000211430740621010362 0ustar 7 debian/patches/0000755000000000000000000000000011430740621010613 5ustar debian/patches/05_gksu.patch0000644000000000000000000000120611430740621013110 0ustar Description: Launch through gksu, we do not use the Fedora console.app system Author: Martin Pitt Index: system-config-date/system-config-date.desktop.in =================================================================== --- system-config-date.orig/system-config-date.desktop.in 2010-08-12 11:19:02.000000030 +0200 +++ system-config-date/system-config-date.desktop.in 2010-08-12 11:18:42.910000010 +0200 @@ -3,6 +3,6 @@ _Comment=Change system date and time Categories=System;Settings; Icon=system-config-date -Exec=/usr/bin/system-config-date +Exec=gksu /usr/bin/system-config-date Type=Application Terminal=false debian/patches/series0000644000000000000000000000015011430740621012024 0ustar 01_disable_iburst.patch 02_use-etc-timezone.patch 03_no-slip.patch 04_fix-makefiles.patch 05_gksu.patch debian/patches/04_fix-makefiles.patch0000644000000000000000000000220311430740621014660 0ustar Description: Properly clean up, and avoid refreshing po files during build. Author: Martin Pitt Index: system-config-date/Makefile =================================================================== --- system-config-date.orig/Makefile 2010-08-09 12:18:48.000000000 +0200 +++ system-config-date/Makefile 2010-08-12 10:51:36.499783018 +0200 @@ -88,7 +88,8 @@ done && test -z "$$fail" clean: console-clean py-clean - rm -fv $(PKGNAME).desktop + make -C po clean + rm -fv $(PKGNAME).desktop $(PKGNAME).desktop.in.h rm -fv *~ rm -fv *.pyc rm -fv src/ntp.conf.template Index: system-config-date/po/Makefile =================================================================== --- system-config-date.orig/po/Makefile 2010-08-09 12:18:48.000000000 +0200 +++ system-config-date/po/Makefile 2010-08-12 10:51:20.269783013 +0200 @@ -54,7 +54,7 @@ $(XGETTEXT) -j --keyword --keyword=_ --keyword=N_ --language=C $(CSRC) @$(call po_diff_and_mv_or_rm,$(POTFILE),$(NLSPACKAGE).po) -update-po: Makefile $(POTFILE) refresh-po +update-po: Makefile $(POTFILE) refresh-po: Makefile @$(po_diff_and_mv_or_rm_func); \ debian/patches/03_no-slip.patch0000644000000000000000000000233111430740621013516 0ustar Description: We do not have the python "slip" module packaged, replace it with inline implementations Author: Martin Pitt Index: system-config-date/src/scdate/core/dateBackend.py =================================================================== --- system-config-date.orig/src/scdate/core/dateBackend.py 2010-08-12 10:36:12.019783016 +0200 +++ system-config-date/src/scdate/core/dateBackend.py 2010-08-12 10:37:04.479783013 +0200 @@ -30,7 +30,11 @@ import time import shlex -from slip.util.files import overwrite_safely +def overwrite_safely(file, contents): + f = open(file + ".new", "w") + f.write(contents) + f.close() + os.rename(file + ".new", file) class dateBackend(object): Index: system-config-date/src/scdate/core/timezoneBackend.py =================================================================== --- system-config-date.orig/src/scdate/core/timezoneBackend.py 2010-08-12 10:36:12.049783013 +0200 +++ system-config-date/src/scdate/core/timezoneBackend.py 2010-08-12 10:36:19.669783014 +0200 @@ -28,7 +28,7 @@ import os import time import errno -from slip.util.files import linkorcopyfile +from shutil import copy as linkorcopyfile def bool(val): if val: return "true" debian/patches/02_use-etc-timezone.patch0000644000000000000000000000506111430740621015334 0ustar Description: We use /etc/timezone in Debian/Ubuntu, not /etc/sysconfig/clock Author: Martin Pitt Index: system-config-date/src/scdate/core/timezoneBackend.py =================================================================== --- system-config-date.orig/src/scdate/core/timezoneBackend.py 2010-08-12 10:34:18.119783018 +0200 +++ system-config-date/src/scdate/core/timezoneBackend.py 2010-08-12 10:34:20.619783014 +0200 @@ -51,13 +51,11 @@ #If it does, copy the new time zone file into the chroot jail linkorcopyfile (fromFile, "/var/spool/postfix/etc/localtime") - #Write info to the /etc/sysconfig/clock file - f = open("/etc/sysconfig/clock", "w") - f.write ("# The time zone of the system is defined by the contents of /etc/localtime.\n") - f.write ("# This file is only for evaluation by system-config-date, do not rely on its\n") - f.write ("# contents elsewhere.\n") - f.write('ZONE="%s"\n' % timezone) + #Write info to the /etc/timezone file + f = open("/etc/timezone.new", "w") + f.write ("%s\n" % timezone) f.close() + os.rename("/etc/timezone.new", "/etc/timezone") if self._adjtimeHasUTCInfo: f = open("/etc/adjtime", "r") @@ -81,37 +79,15 @@ self.utc = asUtc def __init__(self): - self.tz = "America/New_York" + self.tz = "UTC" self.utc = "false" - path = '/etc/sysconfig/clock' lines = [] self._canHwClock = None self._adjtimeHasUTCInfo = None - if os.access(path, os.R_OK): - fd = open(path, 'r') - lines = fd.readlines() - fd.close() - else: - #There's no /etc/sysconfig/clock file, so make one - fd = open(path, 'w') - fd.close - pass - - try: - for line in lines: - line = line.strip () - if len (line) and line[0] == '#': - continue - try: - tokens = line.split ("=") - if tokens[0] == "ZONE": - self.tz = tokens[1].replace ('"', '') - self.tz = self.tz.replace ('_', ' ') - except: - pass - except: - pass + if os.access("/etc/timezone", os.R_OK): + self.tz = open("/etc/timezone").readline().strip() + if os.access("/etc/adjtime", os.R_OK): fd = open("/etc/adjtime", 'r') lines = fd.readlines() debian/patches/01_disable_iburst.patch0000644000000000000000000000254011430740621015130 0ustar Description: Disable iburst configuration, not ported to Ubuntu yet Author: Martin Pitt Index: system-config-date/src/date_gui.py =================================================================== --- system-config-date.orig/src/date_gui.py 2010-08-12 10:32:17.649783012 +0200 +++ system-config-date/src/date_gui.py 2010-08-12 10:32:31.019783018 +0200 @@ -172,9 +172,9 @@ self.ntpLocalTimeSourceButton.set_active (self.ntpLocalTimeSource) - self.ntpIburst = scdMainWindow.dateBackend.getIburst () + #self.ntpIburst = scdMainWindow.dateBackend.getIburst () - self.ntpIburstButton.set_active (self.ntpIburst) + #self.ntpIburstButton.set_active (self.ntpIburst) self.ntpListStore.clear () for ntpServer in self.ntpServers: Index: system-config-date/src/scdate/core/dateBackend.py =================================================================== --- system-config-date.orig/src/scdate/core/dateBackend.py 2010-08-12 10:32:26.229783012 +0200 +++ system-config-date/src/scdate/core/dateBackend.py 2010-08-12 10:32:31.019783018 +0200 @@ -140,6 +140,8 @@ self.ntpFile = ntpFileList + return 0 # disable iburst stuff for Ubuntu + # Add or remove iburst to NTPSERVERARGS in /etc/sysconfig/network try: f = open("/etc/sysconfig/network", "r") debian/rules0000755000000000000000000000070511430740621010246 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/makefile.mk DEB_MAKE_INSTALL_TARGET := install DESTDIR=$(DEB_DESTDIR) binary-post-install/system-config-date:: dh_pysupport # remove PAM and console.apps stuff, we just use gksu rm -r debian/${cdbs_curpkg}/etc rm debian/${cdbs_curpkg}/usr/bin/system-config-date install -m 755 -D system-config-date debian/${cdbs_curpkg}/usr/bin/system-config-date debian/control0000644000000000000000000000112211571347644010601 0ustar Source: system-config-date Section: gnome Priority: optional Maintainer: Ubuntu Developers Build-Depends: debhelper (>= 7), cdbs, desktop-file-utils, gettext, intltool, python, python-support Standards-Version: 3.9.1 Homepage: http://git.fedorahosted.org/git/?p=system-config-date.git Package: system-config-date Architecture: all Depends: ${misc:Depends}, ${python:Depends}, python-gtk2, python-gnome2, gksu Description: graphical interface for changing system time and date This also allows you to configure NTP and selecting your timezone. debian/changelog0000644000000000000000000000103511571347703011047 0ustar system-config-date (1.9.60-0ubuntu2) oneiric; urgency=low * debian/control: python-gnomecanvas was merged into python-gnome2, update dependency. -- Martin Pitt Wed, 01 Jun 2011 07:35:41 +0200 system-config-date (1.9.60-0ubuntu1) maverick; urgency=low * Initial release. This provides a very lightweight alternative to gnome-system-tools for systems without Perl. Added some patches to port Fedoraisms to Debian/Ubuntu. -- Martin Pitt Thu, 12 Aug 2010 11:39:34 +0200 debian/copyright0000644000000000000000000000137311430740621011123 0ustar Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=196 Upstream-Name: system-config-date Upstream-Maintainer: Nils Philippsen Upstream-Source: http://git.fedorahosted.org/git/?p=system-config-date.git Files: * Copyright: Copyright © 2001 - 2003, 2005 - 2007 , 2009 Red Hat, Inc. Copyright: Copyright © 2001-2003 Brent Fox License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . The full text of the GPL is distributed as in /usr/share/common-licenses/GPL-2 on Debian systems.