debian/0000755000000000000000000000000012131775646007202 5ustar debian/docs0000644000000000000000000000001612057700606010041 0ustar README NOTICE debian/watch0000644000000000000000000000015712061334174010223 0ustar version=3 https://github.com/Windows-Azure/WALinuxAgent/tags .*/WALinuxAgent-([\d\.]+)\.tar\.gz debian uupdate debian/rules0000755000000000000000000000015512061334174010250 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ --with python2 debian/compat0000644000000000000000000000000212057700606010367 0ustar 8 debian/dirs0000644000000000000000000000002112057700606010046 0ustar /var/lib/waagent debian/postinst0000644000000000000000000000216112131775646011010 0ustar #!/bin/sh # postinst script for waagent # # see: dh_installdeb(1) 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 case "$1" in configure) waagent --setup --force ;; abort-upgrade|abort-remove|abort-deconfigure) if [ -f /etc/init.d/waagent ]; then rm -f /etc/init.d/waagent fi # not sure about remove it or not on failure if [ -f /etc/waagent.conf ]; then rm -f /etc/waagent.conf fi if [ -f /etc/logrotate.d/waagent ]; then rm -f /etc/logrotate.d/waagent fi ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/postrm0000644000000000000000000000062512131000503010421 0ustar #!/bin/sh set -e if [ "$1" = "purge" ] ; then files="/etc/waagent.conf \ /etc/waagent.conf.old \ /etc/init.d/waagent \ /etc/logrotate.d/waagent \ /etc/sudoers.d/waagent \ /var/lib/waagent \ /var/log/waagent.log" for file in $files; do if [ -f $file ]; then rm -f $file elif [ -d $file ]; then rm -rf $file fi done update-rc.d waagent remove >/dev/null fi #DEBHELPER# exit 0 debian/waagent.install0000644000000000000000000000002212057700606012201 0ustar waagent /usr/sbin debian/control0000644000000000000000000000104612116100441010560 0ustar Source: waagent Section: admin Priority: extra Maintainer: Arnaud Patard Build-Depends: debhelper (>= 8.0.0), python-all Standards-Version: 3.9.4 Homepage: https://github.com/Windows-Azure/WALinuxAgent/ Package: waagent Architecture: amd64 Depends: ${misc:Depends}, ${python:Depends}, iptables, openssh-server, openssl, sudo, net-tools, python-pyasn1 Conflicts: network-manager Description: Windows Azure Linux Agent The Windows Azure Linux Agent (waagent) manages VM interaction with the Windows Azure Fabric Controller. debian/copyright0000644000000000000000000000272012061334174011123 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: waagent Source: https://github.com/Windows-Azure/WALinuxAgent/ Files: * Copyright: 2012 Microsoft Corporation License: Apache 2.0 This software is licensed under Apache 2.0 License. For a complete description of the license, see /usr/share/common-licenses/Apache-2.0 . Files: debian/patches/* Copyright: 2012 Arnaud Patard License: Apache 2.0 This software is licensed under Apache 2.0 License. For a complete description of the license, see /usr/share/common-licenses/Apache-2.0 . Files: debian/* Copyright: 2012 Arnaud Patard License: GPL-2+ This package 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. . This package 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 version 2 can be found in "/usr/share/common-licenses/GPL-2". debian/changelog0000644000000000000000000000114212131015371011030 0ustar waagent (1.3.2-1) unstable; urgency=low * New upstream release: - dvd provisionning fixes - improve system commands handling * Add python-pyasn1 requires in order to get working ssh fingerprint support * Kill prerm script * Fix postrm script (Closes: #704741) * Make sure that everything is removed on purge. * Fix fdisk check to make it locale independent -- Arnaud Patard Thu, 07 Mar 2013 14:23:14 +0100 waagent (1.2-1) unstable; urgency=low * Initial import (Closes: #695575) -- Arnaud Patard Mon, 10 Dec 2012 09:22:45 +0100 debian/source/0000755000000000000000000000000012057700606010471 5ustar debian/source/format0000644000000000000000000000001412057700606011677 0ustar 3.0 (quilt) debian/README.source0000644000000000000000000000161212116100771011341 0ustar Note about architecture restriction in debian/control: ------------------------------------------------------ The Azure VM is supporting only Intel x86_64 systems in 64bit mode. I doesn't work on 32bit. This means that only amd64 and kfreebsd-amd64 may have been able to make use of this script. It turns out that the script is using linux specifics and that the kfreebsd kernel doesn't have the needed drivers for Azure[1], so the Architecture: field was limited to 'amd64' and nothing else, to avoid misleading people into thinking it can work on anything else than 'amd64' architecture. See also this thread on debian-cloud ml: https://lists.debian.org/debian-cloud/2012/12/msg00062.html Arnaud Patard [1] Actually, there are some drivers for freebsd as mentionned here: http://buchizo.wordpress.com/2012/09/12/freebsd-on-windows-azure-vms-en/ but they don't compile with debian kfreebsd kernel. debian/patches/0000755000000000000000000000000012131023406010605 5ustar debian/patches/waagent-fdisk-locale.patch0000644000000000000000000000157312131007603015616 0ustar Fix cdrom detection waagent is trying to detect if there's a virtual cdrom by grepping fdisk output, except that the output is different if we're not using en locale. Use LC_ALL=C to make sure we'll have "correct" output Signed-off-by: Arnaud Patard Index: WALinuxAgent-1.2/waagent =================================================================== --- a/waagent 2013-04-07 12:05:55.798156127 +0200 +++ b/waagent 2013-04-07 12:08:15.221762987 +0200 @@ -1842,7 +1842,7 @@ class Agent(Util): if os.path.exists("/dev/sr0"): dvd = "/dev/sr0" modloaded=False - if Run("fdisk -l " + dvd + " | grep Disk",chk_err=False): + if Run("LC_ALL=C fdisk -l " + dvd + " | grep Disk",chk_err=False): # Is it possible to load a module for ata_piix? retcode,krn=RunGetOutput('uname -r') if retcode: debian/patches/series0000644000000000000000000000003312131007632012021 0ustar waagent-fdisk-locale.patch