--- landscape-client-1.5.4.orig/debian/landscape-sysinfo.wrapper +++ landscape-client-1.5.4/debian/landscape-sysinfo.wrapper @@ -0,0 +1,11 @@ +#!/bin/sh +if [ $(echo "`cut -f1 -d ' ' /proc/loadavg` < 1.0" | bc) -eq 1 ]; then + echo + echo -n " System information as of " + /bin/date + echo + /usr/bin/landscape-sysinfo +else + echo + echo " System information disabled due to load higher than 1" +fi --- landscape-client-1.5.4.orig/debian/landscape-client.templates +++ landscape-client-1.5.4/debian/landscape-client.templates @@ -0,0 +1,26 @@ +Template: landscape-client/computer_title +Type: string +_Description: Computer Title: + Descriptive text to identify this computer uniquely in the + Landscape user interface. + +Template: landscape-client/account_name +Type: string +_Description: Account Name: + Short lowercase identifier of the Landscape account this computer + will be assigned. + +Template: landscape-client/registration_password +Type: password +_Description: Registration Password: + Client registration password for the given Landscape account. Only + needed if the given account is requesting a client registration + password. + +Template: landscape-client/register_system +Type: boolean +Default: false +_Description: Register this system with the Landscape server? + Register this system with a preexisting Landscape account. Please + go to http://landscape.canonical.com if you need a Landscape account. + --- landscape-client-1.5.4.orig/debian/landscape-common.config +++ landscape-client-1.5.4/debian/landscape-common.config @@ -0,0 +1,10 @@ +#!/bin/sh + +PACKAGE=landscape-common + +set -e +. /usr/share/debconf/confmodule + +# Ask questions. +db_input medium $PACKAGE/sysinfo || true +db_go --- landscape-client-1.5.4.orig/debian/rules +++ landscape-client-1.5.4/debian/rules @@ -0,0 +1,126 @@ +#!/usr/bin/make -f + +dist_release := $(shell lsb_release -cs) +ifneq ($(dist_release),dapper) + use_pycentral = yes +endif + +-include /usr/share/python/python.mk +ifeq (,$(py_sitename)) + py_sitename = site-packages + py_libdir = /usr/lib/python$(subst python,,$(1))/site-packages + py_sitename_sh = $(py_sitename) + py_libdir_sh = $(py_libdir) +endif + +package = landscape-client +root_dir = debian/tmp/ + +revision = $(shell dpkg-parsechangelog | grep ^Version | cut -f 2 -d " "| cut -f 2 -d "-") + +landscape_common_substvars = debian/landscape-common.substvars +landscape_client_substvars = debian/landscape-client.substvars + +build: build-stamp +build-stamp: + dh_testdir + sed -i -e "s/^DEBIAN_REVISION = \"\"/DEBIAN_REVISION = \"-$(revision)\"/g" landscape/__init__.py + python setup.py build + make -C smart-update + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + rm -rf build + make -C smart-update clean + dh_clean + debconf-updatepo + sed -i -e "s/^DEBIAN_REVISION = .*/DEBIAN_REVISION = \"\"/g" landscape/__init__.py + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs \ + etc/landscape \ + var/lib/landscape \ + var/log/landscape \ + usr/share/landscape + + python setup.py install --root $(root_dir) $(py_setup_install_args) + + install -D -o root -g root -m 755 debian/landscape-sysinfo.wrapper $(root_dir)/usr/share/landscape/landscape-sysinfo.wrapper + install -D -o root -g root -m 644 debian/cloud-default.conf $(root_dir)/usr/share/landscape/cloud-default.conf + install -D -o root -g root -m 755 smart-update/smart-update $(root_dir)/usr/lib/landscape/smart-update + install -D -o root -g root -m 644 dbus/landscape.conf $(root_dir)/etc/dbus-1/system.d/landscape.conf + +binary-indep: +# do nothing +# +binary-arch: build install + # That's not present in Ubuntu releases we still support, so + # we're just installing the lintian overrides file by hand + # for now. + #dh_lintian + dh_testdir + dh_testroot + dh_installdocs + dh_installman -p landscape-client man/landscape-client.1 man/landscape-config.1 man/landscape-message.1 + dh_installchangelogs + dh_install --sourcedir debian/tmp/ + dh_installinit -- start 45 2 3 4 5 . stop 15 1 . + dh_installlogrotate + dh_installdebconf + dh_compress + dh_fixperms + +ifneq (,$(findstring $(dist_release),"dapper")) + # We need python2.4-pysqlite2 and a non-buggy libcurl3-gnutls on dapper + echo "extra:Depends=python2.4-pysqlite2, libcurl3-gnutls (>= 7.15.1-1ubuntu3), python-smartpm (>= 1.1.1~bzr20081010-0ubuntu1.6.06.0), python2.4-dbus" >> $(landscape_common_substvars) + echo "extra:Depends=python2.4-pycurl" >> $(landscape_client_substvars) +endif +ifneq (,$(findstring $(dist_release),"hardy")) + # We want the smart 1.1.1 from the Landscape repository on hardy + echo "extra:Depends=python-smartpm (>= 1.1.1~bzr20081010-0ubuntu1.8.04.1), python2.4-dbus" >> $(landscape_common_substvars) + echo "extra:Depends=python2.4-pycurl" >> $(landscape_client_substvars) +endif +ifneq (,$(findstring $(dist_release),"intrepid")) + # We want the SRU-ed smart 1.1.1 on intrepid + echo "extra:Depends=update-motd, python-smartpm (>= 1.1.1~bzr20081010-0ubuntu1.8.10.0), python2.5-dbus" >> $(landscape_common_substvars) + echo "extra:Depends=python2.5-pycurl" >> $(landscape_client_substvars) +endif +ifneq (,$(findstring $(dist_release),"jaunty")) + # We want update-motd on jaunty, and the SRU-ed smart 1.2 + echo "extra:Depends=update-motd, python-smartpm (>= 1.2-0ubuntu1.9.04.1), python2.6-dbus" >> $(landscape_common_substvars) + echo "extra:Depends=python2.6-pycurl" >> $(landscape_client_substvars) +endif +ifneq (,$(findstring $(dist_release),"karmic lucid maverick")) + # We want libpam-modules in karmic, and smart 1.2 + echo "extra:Depends=libpam-modules (>= 1.0.1-9ubuntu3), python-smartpm (>= 1.2-4), python2.6-dbus" >> $(landscape_common_substvars) + echo "extra:Depends=python2.6-pycurl" >> $(landscape_client_substvars) +endif +ifneq (,$(findstring $(dist_release),"lucid maverick")) + # The python-image-store-proxy package is needed for the eucalyptus plugin + echo "extra:Suggests=python-image-store-proxy" >> $(landscape_common_substvars) +endif + +ifeq ($(use_pycentral),yes) + ifneq (,$(py_setup_install_args)) + DH_PYCENTRAL=include-links dh_pycentral + else + DH_PYCENTRAL=nomove dh_pycentral + endif +else + dh_python +endif + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + + +binary: binary-arch binary-indep + +.PHONY: binary binary-arch binary-indep clean --- landscape-client-1.5.4.orig/debian/landscape-common.dirs +++ landscape-client-1.5.4/debian/landscape-common.dirs @@ -0,0 +1 @@ +etc/update-motd.d --- landscape-client-1.5.4.orig/debian/changelog +++ landscape-client-1.5.4/debian/changelog @@ -0,0 +1,936 @@ +landscape-client (1.5.4-0ubuntu0.9.04.0) jaunty-proposed; urgency=low + + * New upstream version (LP: #610744): + + - The Eucalyptus management plugin reports the output of the + 'euca-describe-availability-zones verbose' command, which includes + information about the available instance types and the maximum + number of each instance type that the cloud can support (LP: #599338) + + - Check if the package directory exists before trying to check the + package changer lock in the dbus-proxy. This fixes a bug when upgrading + a dbus-landscape which never registered (LP: #603514). + + - Allow an LDS server to bootstrap new cloud instances with its own CA, + which is picked up by the client, written to a file on the instance, and + used in subsequent exchanges with the server (LP: #605079). + + - Skip loopback interface when reporting device info (LP: #608314) + + - Disable landscape-sysinfo when load is more than 1 (LP: #608278) + + -- Free Ekanayaka Wed, 28 Jul 2010 08:14:02 +0200 + +landscape-client (1.5.2.1-0ubuntu0.9.04.0) jaunty-proposed; urgency=low + + * Filter duplicate network interfaces in get_active_interfaces (LP: #597000) + + -- Free Ekanayaka Mon, 28 Jun 2010 18:07:18 +0200 + +landscape-client (1.5.2-0ubuntu0.9.04.0) jaunty-proposed; urgency=low + + * New upstream version (LP: #594594): + - A new includes information about active network devices and their + IP address in sysinfo output (LP: #272344). + - A new plugin collects information about network traffic (#LP :284662). + - Report information about which packages requested a reboot (LP: #538253). + - Fix breakage on Lucid AMIs having no ramdisk (LP: #574810). + - Migrate the inter-process communication system from DBus to Twisted AMP. + + -- Free Ekanayaka Wed, 16 Jun 2010 12:03:50 +0200 + +landscape-client (1.5.0.1-0ubuntu0.9.04.0) jaunty-proposed; urgency=low + + * New upstream version + - Fix smart-update failing its very first run (LP: #562496) + - Depend on pythonX.Y-dbus and pythonX.Y-pycurl (LP: #563063) + - Make only one request at a time to retrieve EC2 instances (LP: #567515) + + * New upstream version (LP: #557244) + - Fix package-changer running before smart-update has completed (LP: #542215) + - Report the version of Eucalyptus used to generate topology data (LP: #554007) + - Enable the Eucalyptus plugin by default, if supported (LP: #546531) + - Use a whitelist of allowed filesystem types to instead of a blacklist (LP: #351927) + - Report the update-manager logs to the server (LP: #503384) + - Turn off Curl's DNS caching for requests. (LP: #522668) + + -- Free Ekanayaka Wed, 21 Apr 2010 12:31:28 +0200 + +landscape-client (1.4.4-0ubuntu0.9.04) jaunty-proposed; urgency=low + + * New upstream release (LP: #519200): + - Add a message for creating package locks (LP: #514334) + - Add support for auto-approved change-packages messages (LP: #517175) + - Add support for installing server-generated debian packages (LP: #509752) + - Add support for reporting Eucalyptus topology information (LP: #518501) + - Fix timeout while inserting large free-space message (LP: #218388) + - Fix wrong log path in motd (LP: #517454) + - Fix race condition in process excecution (LP: #517453) + + -- Free Ekanayaka Wed, 10 Feb 2010 18:41:52 +0100 + +landscape-client (1.4.0-0ubuntu0.9.04.0) jaunty-proposed; urgency=low + + * New upstream release (LP: #497351) + + * Bug fixes: + - Fix landscape daemons fail to start when too many groups are + available (LP: #456124) + - Fix landscape programs wake up far too much. (LP: #340843) + - Fix Package manager fails with 'no such table: task' (LP #465846) + - Fix test suite leaving temporary files around (LP #476418) + - Fix the 1hr long wait for user data to be uploaded following a + resynchronisation (LP #369000) + + * Add support for Ubuntu release upgrades: + - Add helper function to fetch many files at once (LP: #450629) + - Handle release-upgrade messages in the packagemanager + plugin (LP: #455217) + - Add a release-upgrader task handler (LP: #462543) + - Support upgrade-tool environment variables (LP: #463321) + + * Add initial support for Smart package locking: + - Detect and report changes about Smart package locks (#488108) + + * Packaging fixes: + - Turn unnecessary Pre-Depends on python-gobject into a regular Depends + - If it's empty, remove /etc/landscape upon purge + + -- Free Ekanayaka Wed, 16 Dec 2009 10:50:05 +0100 + +landscape-client (1.3.2.3-0ubuntu0.9.04.1) jaunty-proposed; urgency=low + + * Fix crash in landscape-sysinfo due to an import error during system wide + upgrades (LP: #349996) + + -- Free Ekanayaka Tue, 03 Nov 2009 11:44:39 +0100 + +landscape-client (1.3.2.3-0ubuntu0.9.04.0) jaunty-proposed; urgency=low + + * New upstream release (LP: #347983): + - Don't clear the hash_id_requests table upon resynchronize (LP #417122) + - Include the README file in landscape-client (LP: #396260) + - Fix client capturing stderr from run_command when constructing + hash-id-databases url (LP: #397480) + - Use substvars to conditionally depend on update-motd or + libpam-modules (LP: #393454) + - Fix reporting wrong version to the server (LP: #391225) + - The init script does not wait for the network to be available + before checking for EC2 user data (LP: #383336) + - When the broker is restarted by the watchdog, the state of the client + is inconsistent (LP: #380633) + - Package stays unknown forever in the client with hash-id-databases + support (LP: #381356) + - Standard error not captured when calling smart-update (LP: #387441) + - Changer calls reporter without switching groups, just user (LP: #388092) + - Run smart update in the package-reporter instead of having a cronjob (LP: #362355) + - Package changer does not inherit proxy settings (LP: #381241) + - The ./test script doesn't work in landscape-client (LP: #381613) + - The source package should build on all supported releases (LP: #385098) + - Strip smart update's output (LP: #387331) + - The fetch() timeout isn't based on activity (#389224) + - Client can use a UUID of "None" when fetching the hash-id-database (LP: #381291) + - Registration should use the fqdn rather than just the hostname (LP: #385730) + + -- Free Ekanayaka Mon, 21 Sep 2009 17:59:31 +0200 + +landscape-client (1.0.29.1-0ubuntu0.9.04.0) jaunty; urgency=low + + * Apply a fix for segfault bug involving curl timeouts. (LP: #360510) + + -- Christopher Armstrong Mon, 13 Apr 2009 14:33:31 -0400 + +landscape-client (1.0.29-0ubuntu0.9.04.0) jaunty; urgency=low + + * New upstream bugfix release (LP: #358744) + - Add a timeout to HTTP operations to avoid hanging (LP: #349737) + - Clean up environment variables on startup to avoid propagating + variables that will corrupt package installation (LP: #348681) + - Clean up FDs on startup for the same reason (LP: #352458) + - Catch and handle certain errors from smart (such as invalid package + data) to avoid "stuck" Landscape activities (LP: #268745) + - Don't print warnings meant for developers to the console (LP: #336669) + + -- Christopher Armstrong Thu, 09 Apr 2009 17:09:50 -0400 + +landscape-client (1.0.28-0ubuntu1.9.04.0) jaunty; urgency=low + + * Fix minor packaging issues in last release (LP: #343954) + - Version number in landscape.VERSION is now correct + - Fixed package version number to maintain convention + * The following changes are in the 1.0.28 release: + - Invalidate package cache when server UUID changes (LP: #339948) + - Improve the "cloud mode" introduced in 1.0.26 to send more + disambiguation data (LP: #343942) and allow the EC2 user data to specify + the exchange and ping URLs (LP: #343947) + - Allow importing of initial configurations (along with public SSL + certificates) when running landscape-config (LP: #341705) + - Support a non-root mode which allows running the client without the + management functionality (LP: #82159) + - Automatic cloud registration when there's no user-data to specify an OTP + now works (LP: #344323) + + -- Christopher Armstrong Thu, 19 Mar 2009 09:52:03 -0400 + +landscape-client (1.0.28-0ubuntu1) jaunty; urgency=low + + * New upstream release. (LP: #343954) + + -- Martin Pitt Wed, 18 Mar 2009 20:42:05 +0100 + +landscape-client (1.0.26.1-0ubuntu0.9.04) jaunty; urgency=low + + * Build for python2.6, include the symlinks in the package. + + -- Matthias Klose Wed, 25 Feb 2009 12:03:23 +0000 + +landscape-client (1.0.26-0ubuntu0.9.04) jaunty; urgency=low + + * New upstream release (LP: #328151) + + -- Christopher Armstrong Wed, 11 Feb 2009 17:00:54 +0000 + +landscape-client (1.0.25-0ubuntu0.9.04) jaunty; urgency=low + + * New upstream release supporting custom graphs (LP: #306360) + - Multiple custom graphs can be used at the same time (LP: #307314) + - PATH is now set for scripts in script execution (LP: #257018) + * debian/landscape-common.postinst: Only chown parts of /var/lib/landscape + because we now store files in it that should maintain their ownership + (LP: #307321). + * debian/landscape-client.postinst: Work around chfn/system user problem + by not specifying a --gecos (LP: #238755) + * debian/landscape-client.logrotate: logrotate no longer reports spurious + errors when the client isn't running (LP: #271767) + + -- Christopher Armstrong Thu, 11 Dec 2008 17:11:08 -0800 + +landscape-client (1.0.23-0ubuntu0.8.10.1) intrepid; urgency=low + + * debian/control: Update Replaces to < 1.0.23-0ubuntu0.8.10 to correctly + replace newer unsplit versions of the landscape package (LP: #285030). + + -- Christopher Armstrong Fri, 17 Oct 2008 12:42:23 -0400 + +landscape-client (1.0.23-0ubuntu0.8.10) intrepid; urgency=low + + * New upstream release. (LP: #277658): + Changes since 1.0.21.1: + - Don't print duplicate warnings when / is nearing capacity in sysinfo + (LP: #260230). + - Slight change to link text in landscape-sysinfo. + - Don't crash badly when programs are run as the incorrect user + (LP: #268879). + * debian/changelog: New debian-version scheme including Ubuntu version. The + same upstream version is available for all supported releases. + (LP: #277682). + * debian/landscape-client.postrm: Delete log and data files upon purge + (LP: #121182). + * debian/landscape-common.postrm: Delete the sysinfo logs upon purge. + + -- Christopher Armstrong Thu, 09 Oct 2008 11:40:51 -0400 + +landscape-client (1.0.21.1-0ubuntu2) intrepid; urgency=low + + * debian/control: fix bzr url + * debian/landscape-sysinfo.wrapper: print a timestamp before the sysinfo + data to ensure appropriate context (LP: #270862) + + -- Dustin Kirkland Tue, 30 Sep 2008 17:13:18 -0500 + +landscape-client (1.0.21.1-0ubuntu1) intrepid; urgency=low + + * New upstream version: + * Add ok-no-register option to landscape-config script to not fail if + dbus isn't started or landscape-client isn't running. + * lower timeout related to package management in landscape. + * debian/control: Depend on cron. + * debian/landscape-client.postinst: use ok-no-register option so that the + postinst script doesn't fail when run from the installer. (LP: #274573). + + -- Mathias Gug Thu, 25 Sep 2008 17:54:00 -0400 + +landscape-client (1.0.21-0ubuntu2) intrepid; urgency=low + + * debian/rules: Install an hourly cron job to update smart package data. + Thanks to Christopher Armstrong (LP: #268765). + * debian/control: + - Move ${misc:Depends} to Depends. + - Add VCS-* headers. + * debian/landscape-client.postrm: + - remove /etc/default/landscape-client when the package is purged. + + -- Mathias Gug Tue, 23 Sep 2008 18:19:26 -0400 + +landscape-client (1.0.21-0ubuntu1) intrepid; urgency=low + + [ Christopher Armstrong ] + * New upstream release (LP: #271886): + - Bug fix release: + - Avoid the PotentialZombieWarning on landscape-client startup. + (LP: #257346) + - When run as root, read sysinfo configuration from /etc and and write + logs to /var/log instead of /root. (LP: #268560) + - Avoid ZeroDivisionErrors when /home is an autofs. (LP: #269634) + - Don't corrupt a pid file when trying to start the client when it's + already running. (LP: #269634) + - Remove the pid file when shutting down the client. (LP: #257081) + + [ Mathias Gug ] + * debian/landscape-client.init: specify the pid file and use --startas + instead of --exec when starting landscape-client so that the init script + doesn't fail if landscape-client is already running. + + -- Mathias Gug Fri, 19 Sep 2008 17:28:08 -0400 + +landscape-client (1.0.18-0ubuntu4) intrepid; urgency=low + + [ Christopher Armstrong ] + * debian/landscape-common.postinst: Don't blow up when the landscape-sysinfo + symlinks already exist (LP: #270131) + + [ Mathias Gug ] + * debian/landscape-common.postinst, debian/landscape-common.prerm: don't + call update-motd init script as it's no longer available in the + update-motd package. Call directly /usr/sbin/update-motd instead. + (LP: #271854) + + -- Mathias Gug Thu, 18 Sep 2008 16:47:08 -0400 + +landscape-client (1.0.18-0ubuntu3) intrepid; urgency=low + + * debian/control: Add Replaces for landscape-common since + landscape-sysinfo has been moved from -client to -common. + + -- Mathias Gug Tue, 16 Sep 2008 17:16:50 -0400 + +landscape-client (1.0.18-0ubuntu2) intrepid; urgency=low + + [ Mathias Gug ] + * Split the package into two packages: + - landscape-common: has the python libraries and the landscape-sysinfo + command. A landscape account is not required to use this package. + - landscape-client: has all the binaries required to run the + landscape-client. Requires a landscape account. + - debian/control: + + move some dependencies to landscape-client so that + landscape-common doesn't install unecessary packages in the + default -server install. + + move python-gobject to a Pre-Depends so that landscape-config can + register the system during the postinst (LP: #268838). + * debian/control: + - depend on python-smartpm instead of smartpm-core. + * debian/landscape-client.postrm: delete /etc/landscape/client.conf when + the package is purged. + * debian/landscape-client.postinst: remove sysinfo_in_motd debconf question + as it wasn't used. + + [ Christopher Armstrong ] + * Fixes for (LP: #268352). + - scripts/landscape-sysinfo.wrapper: New script to run landscape-sysinfo + with leading whitespace. + - debian/rules: Install wrapper into /usr/share/landscape. + - debian/landscape-client.postinst: Link wrapper into place. + + -- Mathias Gug Mon, 15 Sep 2008 17:21:53 -0400 + +landscape-client (1.0.18-0ubuntu1) intrepid; urgency=low + + * New upstream release + + -- Rick Clark Mon, 08 Sep 2008 16:35:57 -0500 + +landscape-client (1.0.17-0ubuntu1) intrepid; urgency=low + + [ Dustin Kirkland and Rick Clark ] + * debian/compat: updated to 6. + * debian/config: initial debconf config. + * debian/control: reformatted depends and changed smartpm-core version; + changed Standards-Version to 3.8.0; added adduser to depends as needed by + postinst and postrm; updates smartpm-core dep to >1.0; moved most build + deps to Build-Depends-Indep; add po-debconf build dependency; added + debconf hooks for installing landscape-sysinfo as an update-motd or + profile.d script. + * debian/copyright: updated copyright date; removed incorrect symlink to + GPL-3; added Dustin and Rick to the packaging credits. + * debian/landscape-client.init: removed S from stop; rewritten to be more + lsb/Debian compliant; added status action; fixed whitespacing + inconsistency; use $NAME whenever possible; comment why we're not using + status_of_proc(). + * debian/landscape-client.lintian-overrides: added with two overrides + * debian/landscape-client.overrides: removed. + * debian/landscape-client.prerm: initial creation, remove landscape-sysinfo + update-motd or profile.d script, if any exists. + * debian/landscape-client.postinst: fixed deprecated chmod call; changed + home dir of landscape user; removed uneeded update-rc.d; added code to + handle debconf; created a function for retrieving values from ini config; + /usr/share/debconf/comfmodule to top of postinst; add db_stop back in. + * debian/landscape-client.postrm: added debhelper tag. + * debian/rules: added po debconf bits for translation; depend on update-motd. + * debian/pycompat: initial creation. + * debian/po/POTFILES.in, debian/po/templates.pot: initial creation. + * man/txt2man, man/*.txt: removed; manpages should *really* be in native + format. + * man/landscape-client.1, man/landscape-config.1, man/landscape-message.1: + manpages in roff format, initially created by txt2man, some minor tweaks + to the title and such. + + [ Gustavo Niemeyer ] + * New Upstream release + * Fix copyright dates in debian/copyright + * fix the chown call to use a colon + * Fixed missing $PACKAGES variable in postinst + * Implemented support for configuration the computer title via debconf + + [ Kees Cook ] + * removed unused debian/autoppa-switch. + * fixed debian/landscape-client.init to run log_end_msg in the right place. + * debian/landscape-client.postrm: rewrote to allow debhelper to do its + job, fixed deluser call. + * debian/landscape-client.postinst: rewrote to allow debhelper to do its + job, fixed use of adduser. + * debian/rules: use "install" instead of "cp", dropped lintian overrides. + * debian/changelog: drop redundant changelog entries. + + [ Rick Clark ] + * removed .override file + * removed .autoppa files + + -- Dustin Kirkland Thu, 04 Sep 2008 13:28:14 -0500 + +landscape-client (1.0.16-intrepid1-landscape1) intrepid; urgency=low + + * landscape-config can now be run in a non-interactive mode + + -- Andreas Hasenack Fri, 8 Aug 2008 14:34:43 +0000 + +landscape-client (1.0.15-intrepid1-landscape1) intrepid; urgency=low + + * introduce a basic landscape-sysinfo tool + * properly report a script execution error if its exit status is not + zero + + -- Andreas Hasenack Thu, 7 Aug 2008 18:33:41 +0000 + +landscape-client (1.0.14-intrepid1-landscape1) intrepid; urgency=low + + * fixed some dbus errors in some of the supported distributions + * added restart/shutdown plugin + * scripts can now have accented characters in them + + -- Andreas Hasenack Thu, 24 Jul 2008 13:06:34 +0000 + +landscape-client (1.0.13-hardy1-landscape1) hardy; urgency=low + + * the timestamp in the error message from processkiller.py is now + formatted properly + * the process list sent to the server was only being updated for new + processes, and not when existing processes changed + * in script execution, a timeout error is now reported with a proper + error message instead of just a generic failure in the script + + -- Andreas Hasenack Thu, 10 Jul 2008 14:24:15 +0000 + +landscape-client (1.0.12-hardy1-landscape1) hardy; urgency=low + + * the sleep average value of a process is no longer provided by recent + kernels. The client now computes and sends the CPU usage instead. + * initial directory for script execution is now the target user's home + directory and, if that is unavailable, /. Previously it was /root. + * new user creation was ignoring some extra fields such as Location and + phone numbers + * the machine uptime was incorrectly reported after a logrotate run and if + there was no reboot afterwards. This affected the process listing page in + the web interface, where processes would show up as having been started + around 1970. + + -- Andreas Hasenack Thu, 26 Jun 2008 16:17:59 +0000 + +landscape-client (1.0.11-hardy1-landscape1) hardy; urgency=low + + * fixed a regression where an important fix was missing from the + new staging branch + + -- Andreas Hasenack Fri, 13 Jun 2008 14:45:08 +0000 + +landscape-client (1.0.10-hardy1-landscape1) hardy; urgency=low + + * Change the utilisation of the csv module to be compatible with + python 2.4 as used in Dapper. + + -- Andreas Hasenack Thu, 12 Jun 2008 17:58:05 +0000 + +landscape-client (1.0.9-hardy1-landscape1) hardy; urgency=low + + * restrict users and groups list to local ones only, i.e., /etc/passwd + and /etc/group + * fixed some tests that were failing in locales other than english + + -- Andreas Hasenack Wed, 11 Jun 2008 15:16:12 +0000 + +landscape-client (1.0.4-hardy1-landscape1) hardy; urgency=low + + * fixed permissions and ownership of some files and directories which could + prevent package data from being uploaded to the Landscape server + * fixed a problem where the root user password could not be changed + * the watchdog.log log file is now also rotated + + -- Andreas Hasenack Wed, 16 Apr 2008 17:21:20 +0000 + +landscape-client (1.0-hardy1-landscape4) hardy; urgency=low + + * Memory consumption has is improved. The client's functionality is + now broken up into a number of sub-processes. Functionality that + would previously use or leak memory, such as package management, + run in independent processes that exit when they complete so the + OS can reclaim the memory. + * Security is improved with this design. Monitoring plugins run as + the unpriviledged landscape user while management functions run as + root. + * Secure inter-process communication occurs over DBUS. + + -- Michel Pelletier Wed, 27 Feb 2008 22:57:21 +0000 + +landscape-client (0.17.0-hardy1-landscape1) hardy; urgency=low + + * The client now reports the primary group for users. I can also + modify it when requested by the server (#122212). + + -- Jamshed Kakar Wed, 21 Nov 2007 19:14:29 +0000 + +landscape-client (0.16.0-hardy1-landscape1) hardy; urgency=low + + * The client no longer schedules an urgent exchange if it detects + that the server has not processed any messages in its most recent + exchange (#138135). + * The total number of pending messages are sent to the server to + make it possible to generate backlog statistics (#162733). + + -- Jamshed Kakar Wed, 14 Nov 2007 23:09:58 +0000 + +landscape-client (0.15.0-gutsy1-landscape1) gutsy; urgency=low + + * Support for http_proxy and https_proxy variables in the + configuration file and in the interactive setup, as well as + --http-proxy and --https-proxy parameters is available (#151690). + * The client gracefully fails when unknown request-ids for + package-related operations are received (#151085). + * Child devices that have been removed are not reported when one of + their ancestors is also reported for deletion by the hardware + inventory plugin (#136497). + + -- Jamshed Kakar Fri, 26 Oct 2007 23:23:20 +0000 + +landscape-client (0.14.0-gutsy1-landscape1) gutsy; urgency=low + + * Failures that would occur is a user wasn't in the shadow file are + fixed (#102071). + * Whitespace surrounding process command-line names is removed + before they are reported to the server (#149112). + * Test failures, some related to DBUS on gutsy, are fixed. + + -- Jamshed Kakar Thu, 25 Oct 2007 00:03:06 +0000 + +landscape-client (0.13.0-gutsy1-landscape1) gutsy; urgency=low + + * When unknown package IDs are sent by the server message handling + is postponed until the client is aware of the unknown IDs + (#128796). + + -- Jamshed Kakar Wed, 17 Oct 2007 17:36:11 +0000 + +landscape-client (0.12.2-gutsy1-landscape1) gutsy; urgency=low + + * The client now reports it's version correctly. + + -- Jamshed Kakar Thu, 11 Oct 2007 21:32:24 +0000 + +landscape-client (0.12.1-gutsy1-landscape1) gutsy; urgency=low + + * A critical bug that would break configure-landscape is fixed. + + -- Jamshed Kakar Tue, 9 Oct 2007 21:10:02 +0000 + +landscape-client (0.12.0-gutsy1-landscape7) gutsy; urgency=low + + * Fixed typo in version string. + + -- Jamshed Kakar Sat, 6 Oct 2007 00:49:10 +0000 + +landscape-client (0.12.0-gutsy1-landscape6) gutsy; urgency=low + + * Updated Depends to require new smartpm-core 0.52 packages. + + -- Jamshed Kakar Fri, 5 Oct 2007 23:23:17 +0000 + +landscape-client (0.12.0-gutsy1-landscape5) gutsy; urgency=low + + * No upstream changes. New package build. + + -- Jamshed Kakar Thu, 4 Oct 2007 22:35:50 +0000 + +landscape-client (0.12.0-gutsy1-landscape4) gutsy; urgency=low + + * Updated package requires current version of smartpm-core. + + -- Jamshed Kakar Tue, 2 Oct 2007 21:37:56 +0000 + +landscape-client (0.11.0-gutsy1-landscape1) gutsy; urgency=low + + * The full command name for a process, where retrievable, is + reported to the server instead of just the first 16 characters + (#131878). + * The historic process plugin, unused for months, has been removed + (#134122). + * A new landscape-message command-line program is available. It + allows administrators to send messages from a console that end up + in the account history (#125083). + * The landscape-client.log file is now logrotated regularly + (#78494). + + -- Jamshed Kakar Thu, 13 Sep 2007 00:05:43 +0000 + +landscape-client (0.10.15-gutsy1-landscape1) gutsy; urgency=low + + * THIS IS A TEST BUILD! + * The full command name, where retrievable, is reported to the + server instead of just the first 16 characters (#131878). + * The historic process plugin, unused for months, has been removed + (#134122). + * A new landscape-message command-line program is available. It + allows administrators to send messages from a console that end up + in the account history (#125083). + * The landscape-client.log file is now logrotated regularly + (#78494). + + -- Jamshed Kakar Wed, 12 Sep 2007 22:48:19 +0000 + +landscape-client (0.10.12-1ubuntu1) feisty; urgency=low + + * New upstream release. + * Package Depends updated to use new smartpm-0.51-landscape4 + package. This makes the package installable on Ubuntu systems + with only the main repository enabled. + + -- Landscape Team Tue, 7 Aug 2007 16:08:00 -0700 + +landscape-client (0.10.11-1ubuntu1) feisty; urgency=low + + * New upstream release. + * A bug related to package dependency reporting that would cause two + approvals for and upgrade package request has been fixed. + * Errors with the ping server are logged clearly now. + * A crashing postinit-related bug is fixed. + + -- Landscape Team Fri, 3 Aug 2007 19:15:00 -0700 + +landscape-client (0.10.10-1ubuntu1) feisty; urgency=low + + * New upstream release. + * CA certificates are no longer hard-coded. The default set of CAs + in the system are used instead. + * The client connects to the server immediately when it detects + changes in packages and users. This dramatically reduces the + turn-around time of some operations. + * The new user and group change detection reports detailed + information to the server about changes made external to the + client, such as by local users. + * The client reports detailed information about the outcome of user + and group operations. + * The client has support for a new synchronization system. If + either the server or client detect inconsistencies in the data + they have they can request a synchronization to get back in sync. + * The client has support to calculate and report package upgrades. + * The hostname is reported when clients first register with the + server. + * A new configure-landscape script eases registration including + automated and interactive registration modes. + * The client includes VM size and sleep average in active process + data. + + -- Landscape Team Thu, 28 Jun 2007 16:19:00 -0700 + +landscape-client (0.10.9-1ubuntu1) feisty; urgency=low + + * New upstream release. + * Package depends on python-gdbm to install correctly on systems + without it. + + -- Landscape Team Fri, 8 Jun 2007 11:02:00 -0700 + +landscape-client (0.10.8-1ubuntu1) feisty; urgency=low + + * New upstream release. + * The changes that included the new configure-landscape helper + script have been removed. They were not quite ready for release. + * Added python-twisted-web to Debian package Depends to satisfy + dependencies introduced by the new ping plugin. + + -- Landscape Team Thu, 7 Jun 2007 11:03:00 -0700 + +landscape-client (0.10.7-1ubuntu1) feisty; urgency=low + + * New upstream release. + * Package depends on new smartpm-core package which installs + correctly on dapper. + + -- Landscape Team Wed, 6 Jun 2007 10:37:00 -0700 + +landscape-client (0.10.6-1ubuntu1) feisty; urgency=low + + * New upstream release. + * Mispelled smartpm-core version is fixed. + + -- Landscape Team Mon, 1 Jun 2007 10:48:00 -0700 + +landscape-client (0.10.5-1ubuntu1) feisty; urgency=low + + * New upstream release. + * Mismatched operation status codes are fixed. + + -- Landscape Team Thu, 31 May 2007 15:36:00 -0700 + +landscape-client (0.10.4-1ubuntu1) feisty; urgency=low + + * New upstream release. + * Links to a new version of smart with a fixed crontab entry. + + -- Landscape Team Tue, 22 May 2007 23:29:00 -0700 + +landscape-client (0.10.3-1ubuntu1) feisty; urgency=low + + * New upstream release. + * A bug related to bpickle conversions with float-point values is + fixed (#114829). + + -- Landscape Team Mon, 15 May 2007 16:31:00 -0700 + +landscape-client (0.10.2-1ubuntu1) feisty; urgency=low + + * New upstream release. + * New package includes previously missing package management plugin. + + -- Landscape Team Fri, 11 May 2007 10:20:00 -0700 + +landscape-client (0.10.1-1ubuntu1) feisty; urgency=low + + * New upstream release. + * Minor fix in package management plugin timings. + + -- Landscape Team Thu, 10 May 2007 10:00:00 -0700 + +landscape-client (0.10.0-1ubuntu1) feisty; urgency=low + + * New upstream release. + * Basic package management operations are now supported. The client + reports package information to the server and can install and/or + remove packages. + * The client uses the new operations system. Support for the now + unused action info system is gone. + * A minor bpickle bug was fixed. + + -- Jamshed Kakar Mon, 7 May 2007 20:16:00 -0700 + +landscape-client (0.9.6-1ubuntu1) feisty; urgency=low + + * New upstream release. + * Bugs related to the handling of DBus types are fixed on feisty. + + -- Jamshed Kakar Fri, 13 Apr 2007 18:06:10 -0700 + +landscape-client (0.9.5-1ubuntu1) feisty; urgency=low + + * New upstream release. + * Old-school and oddly formatted GECOS fields are handled correctly. + + -- Jamshed Kakar Thu, 30 Mar 2007 16:50:49 -0400 + +landscape-client (0.9.4-1ubuntu1) feisty; urgency=low + + * New upstream release. + * Change architecture to all. + + -- Jamshed Kakar Thu, 30 Mar 2007 12:46:23 -0400 + +landscape-client (0.9.3-1ubuntu1) feisty; urgency=low + + * New upstream release. + * Add override file. + * Bump application and package versions. + + -- Jamshed Kakar Thu, 29 Mar 2007 17:21:50 -0400 + +landscape-client (0.9.2-1ubuntu1) feisty; urgency=low + + * Bump debhelper version. + * Build-Depend on python-dev, lsb-release. + * Pre-Depend on debconf | debconf-2.0. + * Move ${python:Depends} to Depends. + * Make the packaging compatible with dapper and newer distro releases. + + -- Matthias Klose Wed, 28 Mar 2007 21:21:20 +0200 + +landscape-client (0.9.2-1) unstable; urgency=low + + * New upstream release. + * Really fixed package. + + -- Jamshed Kakar Tue, 21 Mar 2007 09:57:00 -0400 + +landscape-client (0.9.1-3) unstable; urgency=low + + * Really fixed package. + + -- Jamshed Kakar Tue, 20 Mar 2007 16:35:00 -0400 + +landscape-client (0.9.1-2) unstable; urgency=low + + * Fixed package. + + -- Jamshed Kakar Tue, 20 Mar 2007 16:25:00 -0400 + +landscape-client (0.9.1-1) unstable; urgency=low + + * New upstream release. + * bpickle encoding format has changed in a non-backwards compatible + way to fix float encoding-related problems. + * API version updated to 2.0. + + -- Jamshed Kakar Tue, 20 Mar 2007 15:06:17 -0400 + +landscape-client (0.9.0-1) unstable; urgency=low + + * New upstream release. + * Group-management related tasks such as add/remove member and + create group are now supported. + * Client reports hardware inventory information to the server. + * Unicode handling with regards to the passwd file is improved. + + -- Jamshed Kakar Fri, 9 Mar 2007 16:04:51 -0800 + +landscape-client (0.8.1-1) unstable; urgency=low + + * New upstream release. + * Account registration log message no longer exposes account + password. + + -- Jamshed Kakar Thu, 18 Jan 2007 23:07:00 -0800 + +landscape-client (0.8.0-1) unstable; urgency=low + + * New upstream release. + * Process monitoring logic stops trying to restart the client if too + many restarts occur during a short period of time. + * Client includes an SSL certificate to verify the server with. + * Package depends on python2.4-pycurl, which is necessary for the + new SSL support. + + -- Jamshed Kakar Thu, 18 Jan 2007 10:48:00 -0800 + +landscape-client (0.7.0-1) unstable; urgency=low + + * New upstream release. + * Client can daemonize itself and perform basic process monitoring. + * Client writes a useful log now. Command-line options have been + added to control log verbosity. + * Package depends on perl-modules, which is necessary for bare-bones + server installs. + + -- Jamshed Kakar Tue, 2 Jan 2007 12:54:00 -0800 + +landscape-client (0.6.1-1) unstable; urgency=low + + * User management plugin handles extra Ubuntu user fields. + + -- Jamshed Kakar Thu, 15 Dec 2006 10:22:00 -0800 + +landscape-client (0.6.0-2) unstable; urgency=low + + * Reverted to deprecated build rule to fix package breakage on + dapper. + + -- Jamshed Kakar Thu, 7 Dec 2006 10:54:00 -0800 + +landscape-client (0.6.0-1) unstable; urgency=low + + * New upstream release. + * The active-process-info plugin provides server-controllable + end/kill actions. + * Messages are no longer delivered twice if a broken message gets + into the message store. + + -- Jamshed Kakar Wed, 6 Dec 2006 14:47:00 -0800 + +landscape-client (0.5.0-1) unstable; urgency=low + + * New upstream release. + * Client-to-server exchanges now happen in a thread to avoid + blocking monitoring plugins. + * Problems that caused slow client registration have been fixed. + * The computer-info plugin now reports information about the + distribution installed on a machine. + + -- Jamshed Kakar Fri, 10 Nov 2006 12:47:00 -0800 + +landscape-client (0.4.0-1) unstable; urgency=low + + * New upstream release. + * Disk, load, memory/swap and temperature data is now reported at + 300s-aligned intervals. + * Improvements to registration system. + * Improvements to plugin infrastructure. + + -- Jamshed Kakar Fri, 13 Oct 2006 09:25:00 -0300 + +landscape-client (0.3.0-1) unstable; urgency=low + + * New upstream release. + * Major reorganization of client code. + + -- Christopher Armstrong Tue, 22 Aug 2006 09:56:00 -0400 + +landscape-client (0.2.5-1) unstable; urgency=low + + * New upstream release. + * Fix a bug in the newly introduced client upgrade machinery. + + -- Christopher Armstrong Wed, 4 Aug 2006 10:45:00 -0500 + +landscape-client (0.2.4-1) unstable; urgency=low + + * New upstream release. + * User management should now be working. + + -- Christopher Armstrong Wed, 3 Aug 2006 15:12:00 -0500 + +landscape-client (0.2.3-1) unstable; urgency=low + + * New upstream release. + * Fixed a bug in the init script preventing landscape-client from + starting after reboots. + + -- Christopher Armstrong Wed, 26 Jul 2006 15:47:00 -0500 + +landscape-client (0.2.2-1) unstable; urgency=low + + * New upstream release. + + -- Christopher Armstrong Thu, 6 Jul 2006 18:38:00 -0500 + +landscape-client (0.2.1-1) unstable; urgency=low + + * Added support for debconf. + + -- Gustavo Niemeyer Wed, 5 Jul 2006 14:13:25 -0300 + +landscape-client (0.2.0-1) unstable; urgency=low + + * Initial (internal) release. + + -- Christopher Armstrong Wed, 28 Jun 2006 14:32:30 -0500 + +landscape-client (0.1) dapper; urgency=low + + * Empty placeholder package + + -- Matt Zimmerman Fri, 26 May 2006 06:37:55 -0700 --- landscape-client-1.5.4.orig/debian/landscape-client.config +++ landscape-client-1.5.4/debian/landscape-client.config @@ -0,0 +1,45 @@ +#!/bin/sh + +PACKAGE=landscape-client + +CONFIGFILE=/etc/landscape/client.conf +set -e +. /usr/share/debconf/confmodule + +# This function also exists in the postinst, please keep them in sync +get_var_from_file() { + var="$1" + file="$2" + val=$(grep "^$var\s*=\s*" "$file" 2>/dev/null | tail -n1 | sed "s/^.*=\s*//") + echo "$val" +} + +# Load config file, if it exists. +if [ -e $CONFIGFILE ]; then + # Config file is "ini" type, not shell, so we cannot source it + COMPUTER_TITLE=$(get_var_from_file "computer_title" "$CONFIGFILE") + ACCOUNT_NAME=$(get_var_from_file "account_name" "$CONFIGFILE") + REGISTRATION_PASSWORD=$(get_var_from_file "registration_password" "$CONFIGFILE") + + # Store values from config file into + # debconf db. + + db_set $PACKAGE/computer_title $COMPUTER_TITLE + db_set $PACKAGE/account_name $ACCOUNT_NAME + db_set $PACKAGE/registration_password $REGISTRATION_PASSWORD + +fi + +# Ask questions. +# Do debconf configuration +db_get $PACKAGE/register_system +if [ "$RET" = true ]; then + priority=high +else + priority=medium +fi +db_input "$priority" $PACKAGE/computer_title || true +db_input "$priority" $PACKAGE/account_name || true +db_input "$priority" $PACKAGE/registration_password || true +db_go || true + --- landscape-client-1.5.4.orig/debian/compat +++ landscape-client-1.5.4/debian/compat @@ -0,0 +1 @@ +5 --- landscape-client-1.5.4.orig/debian/README.source +++ landscape-client-1.5.4/debian/README.source @@ -0,0 +1,15 @@ +When making a revision to this package, please update the *last* digit in the +Debian version number. e.g. + + 1.0.29-0ubuntu0.9.04.0 + +should become + + 1.0.29-0ubuntu0.9.04.1 + +In addition, when you build a package for a new client version, it would be +appreciated if you also updated the UPSTREAM_VERSION variable in +landscape/__init__.py to include the entire new client version number. This +helps us keep track of exact version of clients in use. There's no need to +update the DEBIAN_REVISION variable, as it gets automatically set at build +time. --- landscape-client-1.5.4.orig/debian/pycompat +++ landscape-client-1.5.4/debian/pycompat @@ -0,0 +1 @@ +2 --- landscape-client-1.5.4.orig/debian/landscape-common.templates +++ landscape-client-1.5.4/debian/landscape-common.templates @@ -0,0 +1,20 @@ +Template: landscape-common/sysinfo +Type: select +# Translators beware! the following three strings form a single +# Choices menu. - Every one of these strings has to fit in a standard +# 80 characters console, as the fancy screen setup takes up some space +# try to keep below ~71 characters. +# DO NOT USE commas (,) in Choices translations otherwise +# this will break the choices shown to users +_Choices: Do not display sysinfo on login, Cache sysinfo in /etc/motd, Run sysinfo on every login +Default: Cache sysinfo in /etc/motd +_Description: landscape-sysinfo configuration: + Landscape includes a tool and a set of modules that can display + system status, information, and statistics on login. + . + This information can be gathered periodically (every 10 minutes) + and automatically written to /etc/motd. The data could be a few + minutes out-of-date. + . + Or, this information can be gathered at login. The data will be + more current, but might introduce a small delay at login. --- landscape-client-1.5.4.orig/debian/cloud-default.conf +++ landscape-client-1.5.4/debian/cloud-default.conf @@ -0,0 +1,7 @@ +[client] +cloud = True +url = https://landscape.canonical.com/message-system +data_path = /var/lib/landscape/client +ping_url = http://landscape.canonical.com/ping +include_manager_plugins = ScriptExecution +script_users = ALL --- landscape-client-1.5.4.orig/debian/landscape-client.docs +++ landscape-client-1.5.4/debian/landscape-client.docs @@ -0,0 +1 @@ +README --- landscape-client-1.5.4.orig/debian/landscape-client.install +++ landscape-client-1.5.4/debian/landscape-client.install @@ -0,0 +1,14 @@ +usr/bin/landscape-broker +usr/bin/landscape-client +usr/bin/landscape-config +usr/bin/landscape-manager +usr/bin/landscape-message +usr/bin/landscape-monitor +usr/bin/landscape-package-changer +usr/bin/landscape-package-reporter +usr/bin/landscape-release-upgrader +usr/bin/landscape-is-cloud-managed +usr/bin/landscape-dbus-proxy +usr/share/landscape/cloud-default.conf +etc/dbus-1/system.d/landscape.conf +usr/lib/landscape --- landscape-client-1.5.4.orig/debian/copyright +++ landscape-client-1.5.4/debian/copyright @@ -0,0 +1,36 @@ +This package was debianized by + * Jamshed Kakar on Wed, 28 Jun 2006 + * Rick Clark in Aug 2008 + * Dustin Kirkland in Aug 2008 + + Copyright (C) 2006-2008 Canonical Ltd. + +License: + +Upstream source is located at: https://code.launchpad.net/landscape-client + + +Copyright: + +The packaging of this software and the programs in this package are distributed +under the terms of the GNU General Public License, version 2 as distributed by +the Free Software Foundation. + +License: + Copyright (C) 2006-2008 Canonical Ltd. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License version 2, + 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, see . + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL-2'. + --- landscape-client-1.5.4.orig/debian/control +++ landscape-client-1.5.4/debian/control @@ -0,0 +1,46 @@ +Source: landscape-client +Section: admin +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Landscape Team +Build-Depends: debhelper (>= 5), po-debconf, python-dev, python-central | python-support, lsb-release, gawk, python-twisted-core +Standards-Version: 3.8.0 +XS-Python-Version: >= 2.4, << 2.7 + +Package: landscape-common +Architecture: any +Depends: ${python:Depends}, ${misc:Depends}, ${extra:Depends}, + python-gnupginterface, + python-twisted-core, + python-gobject, + python-apt, + ca-certificates, + perl-modules, + python-gdbm, + lsb-release, + lsb-base, + adduser, + bc +Suggests: ${extra:Suggests} +Replaces: landscape-client (<= 1.0.23-0ubuntu0.8.10) +Description: The Landscape administration system client + Landscape is a web-based tool for managing Ubuntu systems. This + package is necessary if you want your machine to be managed in a + Landscape account. + . + This package provides the core libraries. +XB-Python-Version: ${python:Versions} + +Package: landscape-client +Architecture: any +Depends: ${python:Depends}, ${misc:Depends}, ${extra:Depends}, + python-twisted-web, + landscape-common (>= ${Source-Version}), + hal +Description: The Landscape administration system client + Landscape is a web-based tool for managing Ubuntu systems. This + package is necessary if you want your machine to be managed in a + Landscape account. + . + This package provides the Landscape client and requires a Landscape account. +XB-Python-Version: ${python:Versions} --- landscape-client-1.5.4.orig/debian/landscape-client.prerm +++ landscape-client-1.5.4/debian/landscape-client.prerm @@ -0,0 +1,45 @@ +#!/bin/sh +# prerm script for landscape-client +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|deconfigure) + + # Remove statoverride for smart-update + smart_update=/usr/lib/landscape/smart-update + if dpkg-statoverride --list $smart_update >/dev/null 2>&1; then + dpkg-statoverride --remove $smart_update + fi + + ;; + + failed-upgrade) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- landscape-client-1.5.4.orig/debian/landscape-common.postinst +++ landscape-client-1.5.4/debian/landscape-common.postinst @@ -0,0 +1,104 @@ +#!/bin/sh +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +. /usr/share/debconf/confmodule +trap "db_stop || true" EXIT HUP INT QUIT TERM + +PACKAGE=landscape-common + +# Use the default installed Python. Running just "python" might run +# something from /usr/local/bin, which doesn't necessarily support +# running the landscape client. +PYTHON=/usr/bin/python + +case "$1" in + configure) + + db_get $PACKAGE/sysinfo + # Choices: + # * Do not display sysinfo on login + # * Cache sysinfo in /etc/motd + # * Run sysinfo on every login + SYSINFO="${RET:-Cache sysinfo in /etc/motd}" + WRAPPER=/usr/share/landscape/landscape-sysinfo.wrapper + PROFILE_LOCATION=/etc/profile.d/50-landscape-sysinfo.sh + UPDATE_MOTD_LOCATION=/etc/update-motd.d/50-landscape-sysinfo + if [ "$RET" = "Cache sysinfo in /etc/motd" ]; then + rm -f $PROFILE_LOCATION 2>/dev/null || true + ln -sf $WRAPPER $UPDATE_MOTD_LOCATION + /usr/sbin/update-motd 2>/dev/null || true + elif [ "$RET" = "Run sysinfo on every login" ]; then + rm -f $UPDATE_MOTD_LOCATION 2>/dev/null || true + /usr/sbin/update-motd 2>/dev/null || true + ln -sf $WRAPPER $PROFILE_LOCATION + else + rm -f $UPDATE_MOTD_LOCATION 2>/dev/null || true + /usr/sbin/update-motd 2>/dev/null || true + rm -f $PROFILE_LOCATION || true + fi + + # 0.9.1 introduces non-backwards compatible changes. This detects + # whether or not the data is in the current format. If not, all + # existing data is removed. + DATA_DIR=/var/lib/landscape + + if [ -d $DATA_DIR/data ]; then + rm -rf $DATA_DIR/* + elif [ -f $DATA_DIR/client/data.bpickle ]; then + LAST_BYTE=`sed -n '$,$s/.*\(.\)/\1/p' $DATA_DIR/client/data.bpickle` + if [ "$LAST_BYTE" = e ]; then + rm -rf $DATA_DIR/* + fi + fi + + # Create landscape system user + if ! getent passwd landscape >/dev/null; then + adduser --quiet --system --group --disabled-password \ + --home /var/lib/landscape --no-create-home landscape + fi + + # Create landscape system group (for <= 1.0.29.1-0ubuntu0.9.04.0) + if ! getent group landscape >/dev/null; then + addgroup --quiet --system landscape + fi + + # Ensure primary group is landscape (for <= 1.0.29.1-0ubuntu0.9.04.0) + if ! usermod -g landscape landscape > /dev/null 2>&1; then + echo "ERROR: usermod -g landscape landscape failed." + fi + + # Fix prior ownerships, we exclude the custom-graph-scripts directory + # because there might script-generated files that we want to preserve + # the ownership of. + find /var/lib/landscape/ -wholename /var/lib/landscape/client/custom-graph-scripts -prune -or -exec chown landscape {} \; > /dev/null 2>&1 + chown -R landscape /var/log/landscape + + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- landscape-client-1.5.4.orig/debian/landscape-client.init +++ landscape-client-1.5.4/debian/landscape-client.init @@ -0,0 +1,99 @@ +#!/bin/sh + +### BEGIN INIT INFO +# Provides: landscape-client +# Required-Start: $local_fs $remote_fs hal +# Required-Stop: $local_fs $remote_fs hal +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Landscape client daemons +# Description: The Landscape client daemons are needed so the +# Landscape server can manage a computer. +### END INIT INFO + +LANDSCAPE_DEFAULTS=/etc/default/landscape-client +NAME=landscape-client +DAEMON=/usr/bin/$NAME +PIDDIR=/var/run/landscape +PIDFILE=$PIDDIR/$NAME.pid +RUN=0 # overridden in /etc/default/landscape-client +CLOUD=0 # overridden in /etc/default/landscape-client +DAEMON_GROUP=landscape + +[ -f $DAEMON ] || exit 0 + +. /lib/lsb/init-functions +[ -f $LANDSCAPE_DEFAULTS ] && . $LANDSCAPE_DEFAULTS + +check_config () { + # This $RUN check should match the semantics of + # l.sysvconfig.SysVConfig.is_configured_to_run. + if [ $RUN -eq 0 ]; then + if [ $CLOUD -eq 1 ]; then + if landscape-is-cloud-managed; then + # Install the cloud default configuration file + cp /usr/share/landscape/cloud-default.conf /etc/landscape/client.conf + # Override default file for not going in this conditional again at + # next startup + sed -i "s/^RUN=.*/RUN=1/" $LANDSCAPE_DEFAULTS + if ! grep -q "^RUN=" $LANDSCAPE_DEFAULTS; then + echo "RUN=1" >> $LANDSCAPE_DEFAULTS + fi + else + echo "$NAME is not configured, please run landscape-config." + exit 0 + fi + else + echo "$NAME is not configured, please run landscape-config." + exit 0 + fi + fi +} + +case "$1" in + start) + check_config + log_daemon_msg "Starting the $NAME daemon" + if [ ! -e $PIDDIR ]; then + mkdir $PIDDIR + chown landscape $PIDDIR + fi + FULL_COMMAND="start-stop-daemon --start --quiet --oknodo --startas $DAEMON --pidfile $PIDFILE -g $DAEMON_GROUP -- --daemon --pid-file $PIDFILE" + if [ x"$DAEMON_USER" != x ]; then + sudo -u $DAEMON_USER $FULL_COMMAND + else + $FULL_COMMAND + fi + log_end_msg $? + ;; + + stop) + log_daemon_msg "Stopping $NAME daemon" + start-stop-daemon --retry 30 --stop --quiet --pidfile $PIDFILE + log_end_msg $? + ;; + + status) + # We want to maintain backward compatibility with Dapper, + # so we're not going to use status_of_proc() + pidofproc -p $PIDFILE $DAEMON >/dev/null + status=$? + if [ $status -eq 0 ]; then + log_success_msg "$NAME is running" + else + log_failure_msg "$NAME is not running" + fi + exit $status + ;; + + restart|force-reload) + $0 stop && $0 start + ;; + + *) + echo "Usage: $0 {start|stop|status|restart|force-reload}" + exit 1 + ;; +esac + +exit 0 --- landscape-client-1.5.4.orig/debian/landscape-client.postrm +++ landscape-client-1.5.4/debian/landscape-client.postrm @@ -0,0 +1,50 @@ +#!/bin/sh +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +case "$1" in + purge) + LOG_DIR=/var/log/landscape + DATA_DIR=/var/lib/landscape + + rm -f "/etc/default/landscape-client" + + rm -f "${LOG_DIR}/manager.log"* + rm -f "${LOG_DIR}/monitor.log"* + rm -f "${LOG_DIR}/broker.log"* + rm -f "${LOG_DIR}/watchdog.log"* + rm -f "${LOG_DIR}/package-reporter.log"* + rm -f "${LOG_DIR}/package-changer.log"* + + rm -rf "${DATA_DIR}/client" + rm -rf "${DATA_DIR}/.gnupg" + + ;; + + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- landscape-client-1.5.4.orig/debian/landscape-client.logrotate +++ landscape-client-1.5.4/debian/landscape-client.logrotate @@ -0,0 +1,11 @@ +/var/log/landscape/*.log { + weekly + rotate 4 + missingok + notifempty + compress + nocreate + postrotate + [ -f /var/run/landscape/landscape-client.pid ] && kill -s USR1 `cat /var/run/landscape/landscape-client.pid` > /dev/null 2>&1 || : + endscript +} --- landscape-client-1.5.4.orig/debian/landscape-common.prerm +++ landscape-client-1.5.4/debian/landscape-common.prerm @@ -0,0 +1,41 @@ +#!/bin/sh +# prerm script for landscape-common +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|deconfigure) + rm -f /etc/update-motd.d/50-landscape-sysinfo 2>/dev/null || true + /usr/sbin/update-motd 2>/dev/null || true + rm -f /etc/profile.d/landscape-sysinfo.sh 2>/dev/null || true + ;; + + failed-upgrade) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- landscape-client-1.5.4.orig/debian/landscape-common.install +++ landscape-client-1.5.4/debian/landscape-common.install @@ -0,0 +1,3 @@ +usr/lib/python* +usr/bin/landscape-sysinfo +usr/share/landscape/landscape-sysinfo.wrapper --- landscape-client-1.5.4.orig/debian/landscape-common.postrm +++ landscape-client-1.5.4/debian/landscape-common.postrm @@ -0,0 +1,40 @@ +#!/bin/sh +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +case "$1" in + purge) + LOG_DIR=/var/log/landscape + CONFIG_FILE=/etc/landscape/client.conf + deluser --quiet --system landscape >/dev/null || true + rm -f "${LOG_DIR}/sysinfo.log"* + rm -f "${CONFIG_FILE}" + ;; + + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- landscape-client-1.5.4.orig/debian/landscape-client.postinst +++ landscape-client-1.5.4/debian/landscape-client.postinst @@ -0,0 +1,118 @@ +#!/bin/sh +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +. /usr/share/debconf/confmodule +trap "db_stop || true" EXIT HUP INT QUIT TERM + +PACKAGE=landscape-client + +# Use the default installed Python. Running just "python" might run +# something from /usr/local/bin, which doesn't necessarily support +# running the landscape client. +PYTHON=/usr/bin/python + +case "$1" in + configure) + + CONFIG_FILE=/etc/landscape/client.conf + if [ ! -f $CONFIG_FILE ]; then + # Create new configuration, with private mode + TEMPFILE=$(mktemp -p /etc/landscape) + cat > $TEMPFILE </dev/null 2>&1; then + dpkg-statoverride --update --add root landscape 4754 $smart_update + fi + + # Remove old cron jobs + old_cron_job=/etc/cron.hourly/landscape-client + if [ -e $old_cron_job ]; then + rm $old_cron_job + fi + very_old_cron_job=/etc/cron.hourly/smartpm-core + if [ -e $very_old_cron_job ]; then + rm $very_old_cron_job + fi + + # Check if we're upgrading from a D-Bus version + if ! [ -z $2 ]; then + if dpkg --compare-versions $2 lt 1.5.1; then + # Launch a proxy service that will forward requests over DBus + # from the old package-changer to the new AMP-based broker. This + # is a one-off only needed for the DBus->AMP upgrade + start-stop-daemon -x /usr/bin/landscape-dbus-proxy -b -c landscape -u landscape -S + fi + fi + + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- landscape-client-1.5.4.orig/debian/po/POTFILES.in +++ landscape-client-1.5.4/debian/po/POTFILES.in @@ -0,0 +1,2 @@ +[type: gettext/rfc822deb] landscape-client.templates +[type: gettext/rfc822deb] landscape-common.templates --- landscape-client-1.5.4.orig/debian/po/templates.pot +++ landscape-client-1.5.4/debian/po/templates.pot @@ -0,0 +1,118 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: landscape-client@packages.debian.org\n" +"POT-Creation-Date: 2008-10-03 15:08-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../landscape-client.templates:1001 +msgid "Computer Title:" +msgstr "" + +#. Type: string +#. Description +#: ../landscape-client.templates:1001 +msgid "" +"Descriptive text to identify this computer uniquely in the Landscape user " +"interface." +msgstr "" + +#. Type: string +#. Description +#: ../landscape-client.templates:2001 +msgid "Account Name:" +msgstr "" + +#. Type: string +#. Description +#: ../landscape-client.templates:2001 +msgid "" +"Short lowercase identifier of the Landscape account this computer will be " +"assigned." +msgstr "" + +#. Type: password +#. Description +#: ../landscape-client.templates:3001 +msgid "Registration Password:" +msgstr "" + +#. Type: password +#. Description +#: ../landscape-client.templates:3001 +msgid "" +"Client registration password for the given Landscape account. Only needed " +"if the given account is requesting a client registration password." +msgstr "" + +#. Type: boolean +#. Description +#: ../landscape-client.templates:4001 +msgid "Register this system with the Landscape server?" +msgstr "" + +#. Type: boolean +#. Description +#: ../landscape-client.templates:4001 +msgid "" +"Register this system with a preexisting Landscape account. Please\n" +" go to http://landscape.canonical.com if you need a Landscape account." +msgstr "" + +#. Type: select +#. Choices +#. Translators beware! the following three strings form a single +#. Choices menu. - Every one of these strings has to fit in a standard +#. 80 characters console, as the fancy screen setup takes up some space +#. try to keep below ~71 characters. +#. DO NOT USE commas (,) in Choices translations otherwise +#. this will break the choices shown to users +#: ../landscape-common.templates:1001 +msgid "" +"Do not display sysinfo on login, Cache sysinfo in /etc/motd, Run sysinfo on " +"every login" +msgstr "" + +#. Type: select +#. Description +#: ../landscape-common.templates:1002 +msgid "landscape-sysinfo configuration:" +msgstr "" + +#. Type: select +#. Description +#: ../landscape-common.templates:1002 +msgid "" +"Landscape includes a tool and a set of modules that can display system " +"status, information, and statistics on login." +msgstr "" + +#. Type: select +#. Description +#: ../landscape-common.templates:1002 +msgid "" +"This information can be gathered periodically (every 10 minutes) and " +"automatically written to /etc/motd. The data could be a few minutes out-of-" +"date." +msgstr "" + +#. Type: select +#. Description +#: ../landscape-common.templates:1002 +msgid "" +"Or, this information can be gathered at login. The data will be more " +"current, but might introduce a small delay at login." +msgstr ""