--- rhn-client-tools-1.8.9.orig/debian/changelog +++ rhn-client-tools-1.8.9/debian/changelog @@ -0,0 +1,18 @@ +rhn-client-tools (1.8.9-3) unstable; urgency=low + + * [79e26720] Depend on hal instead of python-gudev on !linux-any. + + -- Bernd Zeimetz Fri, 28 Sep 2012 23:25:55 +0200 + +rhn-client-tools (1.8.9-2) unstable; urgency=low + + * [c611b6e2] Remove the dependency on !linux arches on python-ethtool. + * [bf0389ab] Add README.source. + + -- Bernd Zeimetz Thu, 13 Sep 2012 00:55:56 +0200 + +rhn-client-tools (1.8.9-1) unstable; urgency=low + + * Initial Debian release + + -- Miroslav Suchý Sat, 16 Jun 2012 14:26:12 +0200 --- rhn-client-tools-1.8.9.orig/debian/rules +++ rhn-client-tools-1.8.9/debian/rules @@ -0,0 +1,30 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +PACKAGENAME=$(strip $(shell dh_listpackages | head -1)) + +params=-f Makefile.rhn-client-tools PLATFORM=deb PREFIX=$(CURDIR)/debian/$(PACKAGENAME) + +override_dh_auto_clean: + $(MAKE) $(params) clean +override_dh_auto_build: + dh_auto_build -- $(params) +override_dh_auto_install: + $(MAKE) $(params) install + rm -rf $(CURDIR)/debian/$(PACKAGENAME)/usr/share/firstboot + rm -rf $(CURDIR)/debian/$(PACKAGENAME)/usr/share/setuptool + rm -rf $(CURDIR)/debian/$(PACKAGENAME)/etc/security + rm -rf $(CURDIR)/debian/$(PACKAGENAME)/etc/pam.d + rm -rf $(CURDIR)/debian/$(PACKAGENAME)/etc/rpm + rm -rf $(CURDIR)/debian/$(PACKAGENAME)/etc/security + rmdir $(CURDIR)/debian/$(PACKAGENAME)/etc/yum.repos.d + +override_dh_auto_test: + $(MAKE) $(params) test + +%: + dh $@ --with python2,quilt + --- rhn-client-tools-1.8.9.orig/debian/control +++ rhn-client-tools-1.8.9/debian/control @@ -0,0 +1,22 @@ +Source: rhn-client-tools +Section: python +Priority: extra +Maintainer: Miroslav Suchý +Uploaders: Bernd Zeimetz +Build-Depends: python (>= 2.6.6-3~), debhelper (>= 7.0.50~), intltool, quilt (>= 0.48-3~) +Standards-Version: 3.9.3 +Homepage: https://fedorahosted.org/spacewalk +Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/spacewalk/rhn-client-tools.git +Vcs-Git: git://anonscm.debian.org/collab-maint/spacewalk/rhn-clint-tools.git + +Package: rhn-client-tools +Architecture: any +Depends: ${python:Depends}, ${misc:Depends}, python-rhn (>= 2.5.40), + python-ethtool [linux-any], python-dbus, python-apt (>= 0.7.100), python-newt, + python-dmidecode, lsb-release, gnupg, python-gudev [linux-any], hal [!linux-any], debconf, python-openssl +Recommends: apt-spacewalk +Suggests: python-gnome2, python-gtk2, python-glade2 +Description: Red Hat Network Client Tools + programs and libraries to allow your system to receive + software updates from Red Hat Network or Spacewalk. + --- rhn-client-tools-1.8.9.orig/debian/docs +++ rhn-client-tools-1.8.9/debian/docs @@ -0,0 +1,3 @@ +doc/mirrors.txt +doc/repackage_policy.txt +doc/up2date_design.txt --- rhn-client-tools-1.8.9.orig/debian/copyright +++ rhn-client-tools-1.8.9/debian/copyright @@ -0,0 +1,61 @@ +rhn-client-tools was downloaded from +https://fedorahosted.org/releases/s/p/spacewalk/ + + +Current Authors +--------------- + +James Bowes +James Slagle +Pradeep Kilambi + +Past Authors +------------ + +Daniel Benamy +Preston Brown +Brent Fox +Cristian Gafton +Adrian Likins + + +Copyright +---------- + Copyright (c) 1999-2012 Red Hat, Inc. + + 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; version 2 of the License. + . + 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, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + . + See /usr/share/common-licenses/GPL-2, or + for the terms of the latest version + of the GNU General Public License. + + Red Hat trademarks are not licensed under GPLv2. No permission is + granted to use or replicate Red Hat trademarks that are incorporated + in this software or its documentation. + + + + Miroslav Suchý inspected the source - there is + nothing left where Red Hat trademarks apply to. + + An exception for linking GPLed code with OpenSSL was added by upstream: + https://fedorahosted.org/spacewalk/changeset/9b930abf494222ccf4c086bb354db73950c15217 + + +The Debian packaging is + Copyright 2010-2012 by Red Hat Inc. + Copyright 2012 Bernd Zeimetz + Copyright 2012 Šimon Lukašík +and licensed under the same license as rhnlib, see above + --- rhn-client-tools-1.8.9.orig/debian/watch +++ rhn-client-tools-1.8.9/debian/watch @@ -0,0 +1,2 @@ +version=3 +https://fedorahosted.org/releases/s/p/spacewalk/rhn-client-tools-(.*)\.tar\.gz --- rhn-client-tools-1.8.9.orig/debian/links +++ rhn-client-tools-1.8.9/debian/links @@ -0,0 +1 @@ +etc/sysconfig/rhn etc/rhn --- rhn-client-tools-1.8.9.orig/debian/README.source +++ rhn-client-tools-1.8.9/debian/README.source @@ -0,0 +1,2 @@ +This Debian package uses quilt(1) for patch management. +Please see /usr/share/doc/quilt/README.source for more information. --- rhn-client-tools-1.8.9.orig/debian/compat +++ rhn-client-tools-1.8.9/debian/compat @@ -0,0 +1 @@ +7 --- rhn-client-tools-1.8.9.orig/debian/source/format +++ rhn-client-tools-1.8.9/debian/source/format @@ -0,0 +1 @@ +1.0 --- rhn-client-tools-1.8.9.orig/debian/patches/0001-workaround-missing-python-ethtool.patch +++ rhn-client-tools-1.8.9/debian/patches/0001-workaround-missing-python-ethtool.patch @@ -0,0 +1,42 @@ +From 8baef61c8b6b9564e7e936f52575d5eb75b5ee38 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Miroslav=20Such=C3=BD?= +Date: Thu, 30 Aug 2012 10:53:01 +0200 +Subject: [PATCH] workaround missing python-ethtool + +On Debian/kfreebsd is not available python-ethtoool. It is because it requires libnl, +which is Linux specific. +So if python-ethtools is not present, do not fail and just print warning, +that hardware information about network interfaces are not present. +And read_network_interfaces() will return empty dictionary. +--- + .../rhel/rhn-client-tools/src/up2date_client/hardware.py | 12 +++++++++++- + 1 file changed, 11 insertions(+), 1 deletion(-) + +--- a/src/up2date_client/hardware.py ++++ b/src/up2date_client/hardware.py +@@ -22,7 +22,13 @@ import os + import sys + import config + +-import ethtool ++try: ++ import ethtool ++ ethtool_present = True ++except ImportError: ++ sys.stderr.write("Warning: information about network interfaces could not be retrieved on this platform.\n") ++ ethtool_present = False ++ + import gettext + t = gettext.translation('rhn-client-tools', fallback=True) + _ = t.ugettext +@@ -524,6 +530,10 @@ def read_network_interfaces(): + intDict = {} + intDict['class'] = "NETINTERFACES" + ++ if not ethtool_present: ++ # ethtool is not available on non-linux platforms (as kfreebsd), skip it ++ return intDict ++ + interfaces = list(set(ethtool.get_devices() + ethtool.get_active_devices())) + for interface in interfaces: + try: --- rhn-client-tools-1.8.9.orig/debian/patches/series +++ rhn-client-tools-1.8.9/debian/patches/series @@ -0,0 +1 @@ +0001-workaround-missing-python-ethtool.patch