--- lshw-02.16.orig/debian/lshw-gtk.manpages +++ lshw-02.16/debian/lshw-gtk.manpages @@ -0,0 +1 @@ +debian/patches/lshw-gtk.1 --- lshw-02.16.orig/debian/control +++ lshw-02.16/debian/control @@ -0,0 +1,32 @@ +Source: lshw +Section: utils +Priority: optional +Maintainer: Ghe Rivero +Build-Depends: debhelper (>> 6.0.0), libgtk2.0-dev, quilt, libsqlite3-dev +Standards-Version: 3.9.1 + +Package: lshw +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Recommends: pciutils, usbutils +Description: information about hardware configuration + A small tool to provide detailed information on the hardware + configuration of the machine. It can report exact memory + configuration, firmware version, mainboard configuration, CPU version + and speed, cache configuration, bus speed, etc. on DMI-capable x86 + systems, on some PowerPC machines (PowerMac G4 is known to work) and AMD64. + . + Information can be output in plain text, HTML or XML. + +Package: lshw-gtk +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Recommends: pciutils, usbutils +Description: graphical information about hardware configuration + A small tool to provide detailed information on the hardware + configuration of the machine. It can report exact memory + configuration, firmware version, mainboard configuration, CPU version + and speed, cache configuration, bus speed, etc. on DMI-capable x86 + systems, on some PowerPC machines (PowerMac G4 is known to work) and AMD64. + . + This package provides lshw-gtk (the GTK+ version) --- lshw-02.16.orig/debian/watch +++ lshw-02.16/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://ezix.org/software/files/ lshw-B.([\d.]*).tar.gz debian uupdate \ No newline at end of file --- lshw-02.16.orig/debian/changelog +++ lshw-02.16/debian/changelog @@ -0,0 +1,251 @@ +lshw (02.16-1) unstable; urgency=low + + * New upstream release + + -- Ghe Rivero Sat, 30 Jun 2012 10:15:18 +0200 + +lshw (02.15-2) unstable; urgency=low + + * Relaxed depends on pciutils and usbutils. Closes: #540119 + + -- Ghe Rivero Sun, 18 Dec 2011 13:26:10 +0100 + +lshw (02.15-1) unstable; urgency=low + + * [bbfc08f] Imported Upstream version 02.15 + * [927e643] Updated debian/watch file + * [7ce089a] Clean some patches + * [2ef1ea7] Added libsqlite3-dev as build-depend + * [ea1f7f5] Bumped policy version + * [2254715] New upstream release fixed FTBFS gcc4.5 (Closes: #565031) + * [abac6bb] Added Spanish translation to .desktop. + Thanks to Javier Fernández-Sanguino Peña (JFS) (Closes: #537904) + * [ef94e6e] Added gksu launcher to .desktop. + Thanks to Javier Fernández-Sanguino Peña (JFS) (Closes: #537903) + * [ed92c99] Lintian clean again + * [5e64767] Fixed manpage + + -- Ghe Rivero Thu, 17 Feb 2011 10:10:08 +0100 + +lshw (02.14-1) unstable; urgency=low + + * New upstream release + * Some lintian clean + * Standars Version 3.8.2 + + -- Ghe Rivero Sat, 25 Jul 2009 15:30:52 +0200 + +lshw (02.13-2) unstable; urgency=low + + * Added patch sparc: FTBFS in sparc arch. (Closes: #480628) + + -- Ghe Rivero Sun, 11 May 2008 16:09:55 +0200 + +lshw (02.13-1) unstable; urgency=low + + * New upstream release + - Fixe lshw: no output for memory (Closes: #456896) + * Migrated dpatch to quilt + * Clean lintian (no more copyright-without-copyright-notice) + + -- Ghe Rivero Sat, 10 May 2008 15:36:31 +0200 + +lshw (02.12.01-4) unstable; urgency=low + + * DudesConf2 release + * Added patch 09-sysfs-hang + * Added patch 10-privacy + + -- Ghe Rivero Sat, 03 May 2008 12:37:32 +0200 + +lshw (02.12.01-3) unstable; urgency=low + + * Now really updated Debian-Policy Standards-Version to 3.7.3 + * watch file working again. (Closes: #453535) + * lintian cleans: + - debian-rules-ignores-make-clean-error + - debian-rules-sets-DH_COMPAT + - dpatch-missing-description + + -- Ghe Rivero Sat, 2 Feb 2008 18:04:41 +0100 + +lshw (02.12.01-2) unstable; urgency=low + + * More fixes for gcc4.3. Closes: #462000 + * Updated Debian-Policy Standards-Version to 3.7.3 + + -- Ghe Rivero Wed, 23 Jan 2008 14:20:46 +0100 + +lshw (02.12.01-1) unstable; urgency=low + + * New upstream release + * More fixes for gcc4.3 (Ubuntu Patch). Closes: #441569 + * Some Lintian cleans: + Remove homepage from page description + * Static man-page (no build-depends on docbook-utils) + * Moved icon menu to /usr/share/pixmaps + * Added /usr/share/pixmpas and /usr/share/applications to lshw-gtk.dir + + -- Ghe Rivero Wed, 26 Dec 2007 13:22:07 +0100 + +lshw (02.11.01-2) unstable; urgency=low + + * s/gtk-lshw/lshw-gtk/g Closes: #443771 + * Some lintian cleans (new menu Applications section) + + -- Ghe Rivero Mon, 8 Oct 2007 17:29:45 +0200 + +lshw (02.11.01-1) unstable; urgency=low + + * New upstream release + * Fixed ftbfs with g++-4.3/gcc-snapshot (07-gcc43.dpath). Closes: #441569 + * Explain why lshw -X fail in non X environment. Closes: #434644 + + -- Ghe Rivero Wed, 12 Sep 2007 09:54:48 +0200 + +lshw (02.10-4) unstable; urgency=low + + * Added Upstream Homepage to package description. Closes: #426698 + * Updated Debian-Policy Standards-Version to 3.7.2 + + -- Ghe Rivero Wed, 30 May 2007 13:02:26 +0200 + +lshw (02.10-3) unstable; urgency=low + + * New URL at debian/copyright. Closes: #405452 + + -- Ghe Rivero Mon, 28 May 2007 18:09:22 +0200 + +lshw (02.10-2) unstable; urgency=low + + * New upstream release. Closes: #413800 + * New Maintainer mail address in control file + + -- Ghe Rivero Fri, 25 May 2007 11:02:42 +0200 + +lshw (02.10-1) unstable; urgency=low + + * New upstream release. Closes: #405452 + * Remove lshw-common package. manuf.txt and oui.txt aren't used at all, + and we now depend on pciutils and usbutils for pci.ids and usb.ids + respectively (ubuntu patch) + * New URL at debian/copyright. Closes: #405452 + * Fix FTBFS with GCC 4.3: missing #includes. Closes: #417381 + + -- Ghe Rivero Thu, 03 May 2007 20:02:07 +0200 + +lshw (02.08.01-1) unstable; urgency=low + + * New upstream release. Closes: #360182 + * Added AMD64 to the known platforms that works properly. Closes: #349619 + + -- Ghe Rivero Thu, 20 Jul 2006 00:35:07 +0200 + +lshw (02.06-3) unstable; urgency=low + + * "See you in GUA, Debconf-es2" Release + * Change CXX flags on alpha, so no more segfaults. + Closes: #243752 and similar not reported to BTS. + * Small fix on code for alpha (dpatch 06-alpha) + * gxx transition + * Dedicated to Endesa to switch off the electricity from my university + all the weekend :/ + * Updated DH_COMPAT=4 + * Removed ${shlibs:Depends} variable from lshw-common + + -- Ghe Rivero Wed, 21 Dec 2005 16:58:49 +0100 + +lshw (02.06-2) unstable; urgency=low + + * Updated rules files. Copy logy.xpm instead of move it. + + -- Ghe Rivero Mon, 17 Oct 2005 21:48:29 +0200 + +lshw (02.06-1) unstable; urgency=low + + * New upstream release + + -- Ghe Rivero Sun, 16 Oct 2005 23:59:50 +0200 + +lshw (02.05.01-3) unstable; urgency=low + + * Removed spurious files from source. + * Make works with DEB_BUILD_OPTIONS. + * Now can be compiled twice or more. + + -- Ghe Rivero Sun, 16 Oct 2005 23:11:27 +0200 + +lshw (02.05.01-2) unstable; urgency=low + + * New Free Software Foundation (FSF) address: + Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, + Boston, MA 02110-1301, USA. + + -- Ghe Rivero Tue, 27 Sep 2005 22:10:16 +0200 + +lshw (02.05.01-1) unstable; urgency=low + + * New upstream release + * Added manpage for lshw-gtk (lintian/linda clean) + * Upgraded to Debian Policy 3.6.2 + + -- Ghe Rivero Thu, 21 Jul 2005 23:42:52 +0200 + +lshw (02.04-1) unstable; urgency=low + + * New upstream release + * lshw-common is now arch independent, closes: #308473 + * Added watch file + * Binaries moved to /usr/bin, + Added menu entry for lshw-gtk, closes: #303393 + + -- Ghe Rivero Sun, 17 Jul 2005 13:29:09 +0200 + +lshw (02.03-2) unstable; urgency=low + + * Build fix on AMD64, closes: #298029 + * Build fix on no network machines, Depends on hwdata, closes: #300788 + * Build Depends on dpatch + + -- Ghe Rivero Wed, 23 Mar 2005 00:16:06 +0100 + +lshw (02.03-1) unstable; urgency=low + + * New upstream release + * Recommends pciutils and hwdata, closes: #191506 + + -- Ghe Rivero Sun, 6 Feb 2005 23:09:00 +0100 + +lshw (02.00-1) unstable; urgency=low + + * New upstream release, closes: #233038 + * Updated standards version from 3.5.10 to 3.6.1 + * New binary package: lshw-gtk, a GUI frontend + * New package: lshw-common, hw info files + + -- Ghe Rivero Thu, 6 Jan 2005 23:01:14 +0100 + +lshw (01.03-1) unstable; urgency=low + + * New upstream release. + This release include SCSI support, closes: #182543. + Includes alpha support, closes: #183502. + It also fix html output, closes: #182826. + * Removed the manpage from debian dir because it is there in upstream + sources. This also means that the build dependency on perl is changed + to docbook-utils. + * Updated standards version from 3.5.8 to 3.5.10. + + -- Ola Lundqvist Sat, 30 Aug 2003 12:56:50 +0200 + +lshw (0.06-2) unstable; urgency=low + + * Fixed description, closes: #183321. + + -- Ola Lundqvist Thu, 17 Apr 2003 22:36:19 +0200 + +lshw (0.06-1) unstable; urgency=low + + * Initial release, closes: #181106. + + -- Ola Lundqvist Sat, 15 Feb 2003 13:23:56 +0100 --- lshw-02.16.orig/debian/compat +++ lshw-02.16/debian/compat @@ -0,0 +1 @@ +6 \ No newline at end of file --- lshw-02.16.orig/debian/lshw-gtk.menu +++ lshw-02.16/debian/lshw-gtk.menu @@ -0,0 +1 @@ +?package(lshw-gtk):needs="x11" section="Applications/System/Monitoring" title="lshw-gtk" command="lshw-gtk" icon="/usr/share/pixmaps/lshw-gtk.xpm" --- lshw-02.16.orig/debian/lshw-gtk.dirs +++ lshw-02.16/debian/lshw-gtk.dirs @@ -0,0 +1,3 @@ +usr/bin +usr/share/applications +usr/share/pixmaps \ No newline at end of file --- lshw-02.16.orig/debian/lshw-common.dirs +++ lshw-02.16/debian/lshw-common.dirs @@ -0,0 +1 @@ +usr/share/lshw --- lshw-02.16.orig/debian/rules +++ lshw-02.16/debian/rules @@ -0,0 +1,122 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatibility version to use. +#export DH_COMPAT=4 + +include /usr/share/quilt/quilt.make + +CXX_DEB_FLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + export CXX_DEB_FLAGS += -O0 +else + export CXX_DEB_FLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + export INSTALL_PROGRAM += -s +endif + +ifeq ($(DEB_BUILD_GNU_TYPE),alpha-linux-gnu) + export CXX_DEB_FLAGS = -Wall -g +endif + + +configure: configure-stamp +configure-stamp: + dh_testdir + #Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp patch + dh_testdir + + # Add here commands to compile the package. + $(MAKE) -C src core + $(MAKE) -C src gui + #/usr/bin/docbook-to-man debian/lshw.sgml > lshw.1 + touch build-stamp + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + [ ! -f Makefile ] || $(MAKE) -C src clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/lshw. + $(MAKE) install DESTDIR=$(CURDIR)/debian/lshw + $(MAKE) install-gui DESTDIR=$(CURDIR)/debian/lshw-gtk + + # data files supplied by pciutils and usbutils + rm -rf $(CURDIR)/debian/lshw/usr/share/lshw + #pod2man --lax $(CURDIR)/debian/patches/lshw-gtk.pod > $(CURDIR)/debian/patches/lshw-gtk.1 + cp $(CURDIR)/debian/patches/lshw-gtk.desktop $(CURDIR)/debian/lshw-gtk/usr/share/applications/lshw-gtk.desktop + cp $(CURDIR)/debian/patches/logo.xpm $(CURDIR)/debian/lshw-gtk/usr/share/pixmaps/lshw-gtk.xpm + chmod 644 $(CURDIR)/debian/lshw/usr/share/locale/fr/LC_MESSAGES/lshw.mo + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdocs + dh_installexamples + dh_installmenu + dh_installcron + dh_installman + dh_installinfo + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs + dh_installexamples + dh_installmenu + dh_installcron + dh_installman + dh_installinfo + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure patch unpatch --- lshw-02.16.orig/debian/copyright +++ lshw-02.16/debian/copyright @@ -0,0 +1,26 @@ +This package was debianized by Ola Lundqvist on +Sat, 15 Feb 2003 13:23:56 +0100. + +It was downloaded from: + http://ezix.org/project/wiki/HardwareLiSter + +Upstream Author: + Lyonel Vincent + +Copyright: 2003-2008 Lyonel Vincent + + This 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, or (at your option) any later + version. + + This 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 with + your Debian GNU/Linux system, in /usr/share/common-licenses/GPL, or with + the lshw source package as the file COPYING. If not, write to the Free + Software Foundation, Inc.,51 Franklin St, Fifth Floor, Boston, + MA 02110-1301, USA. --- lshw-02.16.orig/debian/lshw.dirs +++ lshw-02.16/debian/lshw.dirs @@ -0,0 +1 @@ +usr/bin --- lshw-02.16.orig/debian/README.source +++ lshw-02.16/debian/README.source @@ -0,0 +1,3 @@ +Refer to /usr/share/doc/quilt/README.source + + -- Ghe Rivero , Thu, 17 Feb 2011 09:14:52 +0100 --- lshw-02.16.orig/debian/patches/sparc.patch +++ lshw-02.16/debian/patches/sparc.patch @@ -0,0 +1,12 @@ +Include library to compile properly under sparc platformIndex: lshw-02.14/src/core/abi.cc +=================================================================== +--- a/src/core/abi.cc ++++ b/src/core/abi.cc +@@ -11,6 +11,7 @@ + #include + #include + #include ++#include + + __ID("@(#) $Id: mem.cc 1352 2006-05-27 23:54:13Z ezix $"); + --- lshw-02.16.orig/debian/patches/logo.xpm +++ lshw-02.16/debian/patches/logo.xpm @@ -0,0 +1,239 @@ +/* XPM */ +static char * logo_xpm[] = { +"32 32 204 2", +" c None", +". c #000000", +"+ c #160F00", +"@ c #624400", +"# c #9D6E00", +"$ c #C68A00", +"% c #DC9900", +"& c #E09C00", +"* c #D19200", +"= c #B17C00", +"- c #7E5800", +"; c #362600", +"> c #010100", +", c #2E2000", +"' c #AA7700", +") c #FAAF00", +"! c #FFB200", +"~ c #D89700", +"{ c #654600", +"] c #040300", +"^ c #0A0700", +"/ c #916500", +"( c #FCB000", +"_ c #D29300", +": c #332300", +"< c #1B1300", +"[ c #CE9000", +"} c #F2AE12", +"| c #DFA92C", +"1 c #F8B00A", +"2 c #F8AD00", +"3 c #5E4200", +"4 c #1A1200", +"5 c #DC9A00", +"6 c #E1AA2A", +"7 c #B29C6A", +"8 c #D0A540", +"9 c #948155", +"0 c #C88E0A", +"a c #FEB100", +"b c #664700", +"c c #080600", +"d c #CC8F00", +"e c #FEB201", +"f c #AE9B70", +"g c #FBB105", +"h c #EBA400", +"i c #EAA70B", +"j c #453000", +"k c #8C6200", +"l c #F4AF0F", +"m c #BD9F5C", +"n c #E7A100", +"o c #120D00", +"p c #291C00", +"q c #FBAF00", +"r c #F9B009", +"s c #B89E62", +"t c #D4970A", +"u c #916600", +"v c #A27100", +"w c #AC9B73", +"x c #906E1D", +"y c #D0A440", +"z c #F7AD00", +"A c #171000", +"B c #0F0B00", +"C c #F7AC00", +"D c #A09783", +"E c #AF9C6F", +"F c #745100", +"G c #563C00", +"H c #EDAD19", +"I c #BB9F5E", +"J c #CFA542", +"K c #FFB201", +"L c #FDB103", +"M c #C38800", +"N c #B59D66", +"O c #EDAD18", +"P c #C5A250", +"Q c #CBA348", +"R c #D9A734", +"S c #E7AB21", +"T c #B39D69", +"U c #DDA830", +"V c #060400", +"W c #B88100", +"X c #FCB104", +"Y c #D7A738", +"Z c #F7B00B", +"` c #B99E60", +" . c #D5A63A", +".. c #D3A63D", +"+. c #CAA34A", +"@. c #CEA443", +"#. c #F1AE14", +"$. c #261B00", +"%. c #CD8F00", +"&. c #CA8D00", +"*. c #AB9666", +"=. c #DEA92E", +"-. c #F9B008", +";. c #AF9C6E", +">. c #E8AC1F", +",. c #3B2900", +"'. c #D09100", +"). c #A17100", +"!. c #483D25", +"~. c #928056", +"{. c #C28E16", +"]. c #7F5900", +"^. c #1E1500", +"/. c #CF9205", +"(. c #B99E61", +"_. c #E5AB24", +":. c #3E2B00", +"<. c #C08600", +"[. c #755201", +"}. c #838383", +"|. c #828282", +"1. c #888786", +"2. c #463610", +"3. c #4F3700", +"4. c #956800", +"5. c #F1A800", +"6. c #765200", +"7. c #503800", +"8. c #ECA400", +"9. c #7A5501", +"0. c #967527", +"a. c #9F6F00", +"b. c #4D4940", +"c. c #8B8B8B", +"d. c #696969", +"e. c #78653A", +"f. c #B57F00", +"g. c #634500", +"h. c #9A6B00", +"i. c #604300", +"j. c #BF8500", +"k. c #251A00", +"l. c #F2A900", +"m. c #0E0A00", +"n. c #6A4A00", +"o. c #BE8400", +"p. c #433D30", +"q. c #636363", +"r. c #4B3910", +"s. c #402D00", +"t. c #030200", +"u. c #513900", +"v. c #1F1500", +"w. c #C28800", +"x. c #D79600", +"y. c #221800", +"z. c #FEB200", +"A. c #EDA500", +"B. c #090600", +"C. c #302200", +"D. c #8F6400", +"E. c #C18700", +"F. c #8E6300", +"G. c #5F4300", +"H. c #986A00", +"I. c #785300", +"J. c #463100", +"K. c #312200", +"L. c #4D3600", +"M. c #412E00", +"N. c #4E3600", +"O. c #BA8200", +"P. c #BD8400", +"Q. c #845C00", +"R. c #644600", +"S. c #DA9800", +"T. c #261A00", +"U. c #2F2100", +"V. c #211700", +"W. c #EFA700", +"X. c #F5AB00", +"Y. c #765300", +"Z. c #9B6C00", +"`. c #342500", +" + c #7D5700", +".+ c #F9AE00", +"++ c #EEA600", +"@+ c #704E00", +"#+ c #513800", +"$+ c #020100", +"%+ c #4C3500", +"&+ c #A97600", +"*+ c #795500", +"=+ c #B37D00", +"-+ c #2B1E00", +";+ c #0B0800", +">+ c #5F4200", +",+ c #AF7A00", +"'+ c #CB8E00", +")+ c #281C00", +"!+ c #150E00", +"~+ c #2A1E00", +"{+ c #201600", +"]+ c #050400", +" ", +" . . . . . . . ", +" . + @ # $ % & * = - ; > . ", +" . , ' ) ! ! ! ! ! ! ! ! ! ~ { ] ", +" ^ / ( ! ! ! ! ! ! ! ! ! ! ! ! ! _ : . ", +" < [ ! ! ! ! ! ! ! ! ! ! ! } | 1 ! ! 2 3 . ", +" 4 5 ! ! ! ! ! ! ! ! ! ! ! 6 7 8 9 0 ! ! a b . ", +" c d ! ! ! ! ! ! ! ! ! ! ! e f g ! h i ! ! ! ( j . ", +" . k ! ! ! ! ! ! ! ! ! ! ! ! l m ! ! ! ! ! ! ! ! n o ", +" p q ! ! ! ! ! ! ! ! ! ! ! ! r s ! ! ! ! ! ! t ! ! u . ", +" . v ! ! ! ! ! ! ! ! ! ! ! ! ! ! w ! ! ! ! ! ! x y ! z A ", +" B C ! ! ! ! ! ! ! ! ! ! ! ! ! ! D 1 ! ! ! ! ! ! E ! ! F . ", +" G ! ! ! ! ! ! ! ! ! ! ! ! ! ! H I J K ! ! ! ! L f ! ! M . ", +" . / ! ! ! ! ! ! ! ! ! ! ! ! ! e N O l P Q R S 6 T U ! ! 2 V ", +" . W ! ! ! ! ! ! ! ! ! ! ! ! X I Y Z ` I ...+.@.#.! ! ! ! $. ", +" . %.! ! ! ! ! ! ! ! ! ! ! &.*.=.-.;.>.! ! ! ! ! ! ! ! ! ! ,. ", +" . '.).!.~.{.! ! ! ! ! q ].^./.! (._.! ! ! ! ! ! ! ! ! ! ! :. ", +" . <.[.}.|.1.2.3.4.5.! 6.7.8.! 9.0.! ! ! ! ! ! ! ! ! ! ! ! , ", +" . a.5 b.c.d.e.f.g.4 h.].i.! j.k.l.! ! ! ! ! ! ! ! ! ! ! a m. ", +" . n.! o.p.q.r.! ! 5 s.; t.u.v.w.! ! ! ! ! ! ! ! ! ! ! ! x.. ", +" y.z.! A.a._ ! ! ! _ B.C.D.E.! ! ! ! ! ! ! ! ! ! ! ! ! F.. ", +" . M ! ! ! ! ! ! ! G.H.I.J.( ! ! ! ! ! ! ! ! ! ! ! ! ! K. ", +" L.! ! ! ! ! ! ! M.$ a N.F.! ! ! ! ! ! ! ! ! ! ! ! O.. ", +" . P.! ! ! ! ! ! Q.R.! S.T.! ! ! ! ! ! ! ! ! ! ! q U. ", +" V.W.! ! ! ! ! X.K.Y.Z.`.! ! ! ! ! ! ! ! ! ! ! +. ", +" . J..+! ! ! ! ! ++@+#+'.! ! ! ! ! ! ! ! ! ! ' $+ ", +" . %+X.! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! &+V ", +" . C.x.! ! ! ! ! ! ! ! ! ! ! ! ! ! .+*+$+ ", +" c *+A.! ! ! ! ! ! ! ! ! ! a =+-+. ", +" . ;+>+,+h ! ! ! ! .+'+Q.)+. ", +" . . . !+~+, {+]+. . ", +" "}; --- lshw-02.16.orig/debian/patches/privacy.patch +++ lshw-02.16/debian/patches/privacy.patch @@ -0,0 +1,13 @@ +Doesn't look for new version on inte to avoid privacy issuesIndex: lshw-02.14/src/core/version.cc +=================================================================== +--- a/src/core/version.cc ++++ b/src/core/version.cc +@@ -112,6 +112,8 @@ + { + static char *latest = NULL; + ++ return NULL; ++ + if(!latest) + latest = txtquery(PACKAGE, "ezix.org", NULL); + --- lshw-02.16.orig/debian/patches/sysfs-hang.patch +++ lshw-02.16/debian/patches/sysfs-hang.patch @@ -0,0 +1,32 @@ +Index: lshw-02.12.01/src/core/pci.cc +=================================================================== +--- lshw-02.12.01.orig/src/core/pci.cc 2008-05-04 00:24:49.000000000 +0200 ++++ lshw-02.12.01/src/core/pci.cc 2008-05-04 00:24:49.000000000 +0200 +@@ -68,6 +68,7 @@ + #define PCI_CAP_LIST_NEXT 1 /* Next capability in the list */ + #define PCI_CAP_FLAGS 2 /* Capability defined flags (16 bits) */ + #define PCI_CAP_SIZEOF 4 ++#define PCI_FIND_CAP_TTL 48 + + #define PCI_SID_ESR 2 /* Expansion Slot Register */ + #define PCI_SID_ESR_NSLOTS 0x1f /* Number of expansion slots available */ +@@ -666,8 +667,9 @@ + { + unsigned int where = get_conf_byte(d, PCI_CAPABILITY_LIST) & ~3; + string buffer; ++ unsigned int ttl = PCI_FIND_CAP_TTL; + +- while(where) ++ while(where && ttl--) + { + unsigned int id, next, cap; + +@@ -675,7 +677,7 @@ + next = get_conf_byte(d, where + PCI_CAP_LIST_NEXT) & ~3; + cap = get_conf_word(d, where + PCI_CAP_FLAGS); + +- if(!id) ++ if(!id || id == 0xff) + return false; + + switch(id) --- lshw-02.16.orig/debian/patches/gcc45.gcc +++ lshw-02.16/debian/patches/gcc45.gcc @@ -0,0 +1,197 @@ +Include headers to build under gcc-4.3Index: lshw-02.14/src/core/cdrom.cc +=================================================================== +--- a/src/core/cdrom.cc ++++ b/src/core/cdrom.cc +@@ -25,6 +25,7 @@ + #include + #include + #include ++#include + + __ID("@(#) $Id: cdrom.cc 2433 2012-01-10 22:01:30Z lyonel $"); + +--- a/src/core/cpuid.cc ++++ b/src/core/cpuid.cc +@@ -7,6 +7,7 @@ + #include + #include + #include ++#include + + __ID("@(#) $Id: cpuid.cc 2433 2012-01-10 22:01:30Z lyonel $"); + +--- a/src/core/cpuinfo.cc ++++ b/src/core/cpuinfo.cc +@@ -5,6 +5,7 @@ + #include + #include + #include ++#include + #include + #include + #include +--- a/src/core/fb.cc ++++ b/src/core/fb.cc +@@ -14,6 +14,7 @@ + #include + #include + #include ++#include + + __ID("@(#) $Id: fb.cc 2433 2012-01-10 22:01:30Z lyonel $"); + +--- a/src/core/hw.cc ++++ b/src/core/hw.cc +@@ -19,6 +19,9 @@ + #include + #include + #include ++#include ++#include ++#include + + using namespace hw; + +--- a/src/core/ideraid.cc ++++ b/src/core/ideraid.cc +@@ -20,6 +20,7 @@ + #include + #include + #include ++#include + #include + #include + #include +--- a/src/core/mounts.cc ++++ b/src/core/mounts.cc +@@ -14,7 +14,7 @@ + #include + #include + #include +- ++#include + + __ID("@(#) $Id: mounts.cc 2433 2012-01-10 22:01:30Z lyonel $"); + +--- a/src/core/osutils.cc ++++ b/src/core/osutils.cc +@@ -3,6 +3,7 @@ + #include + #include + #include ++#include + #include + #include + #include +--- a/src/core/partitions.cc ++++ b/src/core/partitions.cc +@@ -21,6 +21,8 @@ + #include "volumes.h" + #include "osutils.h" + #include ++#include ++#include + #include + #include + #include +--- a/src/core/pci.cc ++++ b/src/core/pci.cc +@@ -12,6 +12,8 @@ + #include + #include + #include ++#include ++#include + + __ID("@(#) $Id: pci.cc 2433 2012-01-10 22:01:30Z lyonel $"); + +--- a/src/core/pcmcia-legacy.cc ++++ b/src/core/pcmcia-legacy.cc +@@ -9,6 +9,7 @@ + #include + #include + #include ++#include + + __ID("@(#) $Id: pcmcia-legacy.cc 2433 2012-01-10 22:01:30Z lyonel $"); + +--- a/src/core/pcmcia.cc ++++ b/src/core/pcmcia.cc +@@ -6,6 +6,8 @@ + #include + #include + #include ++#include ++#include + #include + #include + #include +--- a/src/core/smp.cc ++++ b/src/core/smp.cc +@@ -11,6 +11,7 @@ + #include + #include + #include ++#include + + #include "osutils.h" + +--- a/src/core/spd.cc ++++ b/src/core/spd.cc +@@ -9,6 +9,7 @@ + #include + #include + #include ++#include + + __ID("@(#) $Id: spd.cc 2433 2012-01-10 22:01:30Z lyonel $"); + +--- a/src/core/usb.cc ++++ b/src/core/usb.cc +@@ -14,6 +14,7 @@ + #include "heuristics.h" + #include "options.h" + #include ++#include + #include + #include + #include +@@ -24,6 +25,7 @@ + #include + #include + #include ++#include + + #define PROCBUSUSBDEVICES "/proc/bus/usb/devices" + #define SYSBUSUSBDEVICES "/sys/bus/usb/devices" +--- a/src/core/volumes.cc ++++ b/src/core/volumes.cc +@@ -20,6 +20,7 @@ + #include + #include + #include ++#include + + __ID("@(#) $Id: volumes.cc 2433 2012-01-10 22:01:30Z lyonel $"); + +--- a/src/gui/engine.cc ++++ b/src/gui/engine.cc +@@ -6,6 +6,8 @@ + #include "osutils.h" + #include "options.h" + ++#include ++#include + #include + #include + #include +--- a/src/gui/print-gui.cc ++++ b/src/gui/print-gui.cc +@@ -10,6 +10,7 @@ + #include "version.h" + #include "osutils.h" + #include "stock.h" ++#include + #include + #include + #include --- lshw-02.16.orig/debian/patches/spelling-error.patch +++ lshw-02.16/debian/patches/spelling-error.patch @@ -0,0 +1,11 @@ +--- a/src/core/network.cc ++++ b/src/core/network.cc +@@ -414,7 +414,7 @@ + if(ecmd.supported & SUPPORTED_BNC) + interface.addCapability("bnc", _("BNC")); + if(ecmd.supported & SUPPORTED_MII) +- interface.addCapability("mii", _("Media Independant Interface")); ++ interface.addCapability("mii", _("Media Independent Interface")); + if(ecmd.supported & SUPPORTED_FIBRE) + interface.addCapability("fibre",_( "optical fibre")); + if(ecmd.supported & SUPPORTED_10baseT_Half) --- lshw-02.16.orig/debian/patches/lshw-gtk.desktop +++ lshw-02.16/debian/patches/lshw-gtk.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Type=Application +Name=Hardware Lister +Name[es]=Listar equipamiento +Comment=Provides information on hardware +Comment[ca]=Proveeix informació sobre el maquinari +Comment[es]=Ofrece información sobre el equipamiento instalado +Icon=lshw-gtk +Exec=su-to-root -X -c lshw-gtk +Terminal=false +Categories=Settings;HardwareSettings; --- lshw-02.16.orig/debian/patches/series +++ lshw-02.16/debian/patches/series @@ -0,0 +1,12 @@ +wget.patch +bin.patch +lshw-gtk.patch +lshw-common.patch +cflags.patch +#alpha.patch +gcc45.gcc +lshw-X.patch +privacy.patch +sparc.patch +spelling-error.patch +fix-manpage.patch --- lshw-02.16.orig/debian/patches/lshw-gtk.1 +++ lshw-02.16/debian/patches/lshw-gtk.1 @@ -0,0 +1,160 @@ +.\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.32 +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sh \" Subsection heading +.br +.if t .Sp +.ne 5 +.PP +\fB\\$1\fR +.PP +.. +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +'br\} +.\" +.\" If the F register is turned on, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.if \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. nr % 0 +. rr F +.\} +.\" +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.hy 0 +.if n .na +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear. Run. Save yourself. No user-serviceable parts. +. \" fudge factors for nroff and troff +.if n \{\ +. ds #H 0 +. ds #V .8m +. ds #F .3m +. ds #[ \f1 +. ds #] \fP +.\} +.if t \{\ +. ds #H ((1u-(\\\\n(.fu%2u))*.13m) +. ds #V .6m +. ds #F 0 +. ds #[ \& +. ds #] \& +.\} +. \" simple accents for nroff and troff +.if n \{\ +. ds ' \& +. ds ` \& +. ds ^ \& +. ds , \& +. ds ~ ~ +. ds / +.\} +.if t \{\ +. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +. \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +. \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +. \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +. ds : e +. ds 8 ss +. ds o a +. ds d- d\h'-1'\(ga +. ds D- D\h'-1'\(hy +. ds th \o'bp' +. ds Th \o'LP' +. ds ae ae +. ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "LSHW-GTK 1" +.TH LSHW-GTK 1 "2007-12-05" "perl v5.8.8" "User Contributed Perl Documentation" +.SH "NAME" +lshw\-gtk \- list hardware (GTK version) +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +lshw is a small tool to extract detailed information on the hardware +configuration of the machine. It can report exact memory +configuration, firmware version, mainboard configuration, +\&\s-1CPU\s0 version +and speed, cache configuration, bus speed, etc. on +DMI-capable x86 or \s-1IA\-64\s0 +systems and on some PowerPC +machines (PowerMac G4 is known to work). +.PP +It currently supports \s-1DMI\s0 (x86 and \s-1IA\-64\s0 only), OpenFirmware device tree (PowerPC only), +\&\s-1PCI/AGP\s0, \s-1CPUID\s0 (x86), \s-1IDE/ATA/ATAPI\s0, \s-1PCMCIA\s0 (only tested on x86), \s-1SCSI\s0 and \s-1USB\s0. +.SH "NOTES" +.IX Header "NOTES" +lshw-gtk must be run as super user or it will only report +.SH "COPYING" +.IX Header "COPYING" +lshw is distributed under the \s-1GNU\s0 \s-1GENERAL\s0 \s-1PUBLIC\s0 \s-1LICENSE\s0 (\s-1GPL\s0) version 2. +.SH "AUTOR" +.IX Header "AUTOR" +lshw is maintained by Lyonel Vincent +. +.SH "OTHER INFO" +.IX Header "OTHER INFO" +The webpage for lshw is at http://ezix.org/software/lshw.html --- lshw-02.16.orig/debian/patches/lshw-gtk.pod +++ lshw-02.16/debian/patches/lshw-gtk.pod @@ -0,0 +1,36 @@ +=head1 NAME + +lshw-gtk - list hardware (GTK version) + +=head1 DESCRIPTION + +lshw is a small tool to extract detailed information on the hardware +configuration of the machine. It can report exact memory +configuration, firmware version, mainboard configuration, +CPU version +and speed, cache configuration, bus speed, etc. on +DMI-capable x86 or IA-64 +systems and on some PowerPC +machines (PowerMac G4 is known to work). + +It currently supports DMI (x86 and IA-64 only), OpenFirmware device tree (PowerPC only), +PCI/AGP, CPUID (x86), IDE/ATA/ATAPI, PCMCIA (only tested on x86), SCSI and USB. + +=head1 NOTES + +lshw-gtk must be run as super user or it will only report + +=head1 COPYING + +lshw is distributed under the GNU GENERAL PUBLIC LICENSE (GPL) version 2. + +=head1 AUTOR + +lshw is maintained by Lyonel Vincent +. + +=head1 OTHER INFO + +The webpage for lshw is at http://ezix.org/software/lshw.html + +=cut --- lshw-02.16.orig/debian/patches/wget.patch +++ lshw-02.16/debian/patches/wget.patch @@ -0,0 +1,26 @@ +Avoid downloading of files from inet at build time +This is provided by hwdata packageIndex: lshw-02.14/src/Makefile +=================================================================== +--- a/src/Makefile ++++ b/src/Makefile +@@ -82,16 +82,16 @@ + docbook2man $< + + pci.ids: +- wget http://pciids.sourceforge.net/pci.ids ++ #wget http://pciids.sourceforge.net/pci.ids + + usb.ids: +- wget http://www.linux-usb.org/usb.ids ++ #wget http://www.linux-usb.org/usb.ids + + oui.txt: +- wget http://standards.ieee.org/regauth/oui/oui.txt ++ #wget http://standards.ieee.org/regauth/oui/oui.txt + + manuf.txt: +- wget -O $@ http://anonsvn.wireshark.org/wireshark/trunk/manuf ++ #wget -O $@ http://anonsvn.wireshark.org/wireshark/trunk/manuf + + install: all + $(INSTALL) -d -m 0755 $(DESTDIR)/$(SBINDIR) --- lshw-02.16.orig/debian/patches/lshw-gtk.patch +++ lshw-02.16/debian/patches/lshw-gtk.patch @@ -0,0 +1,15 @@ +Modified install directoriesIndex: lshw-02.14/src/Makefile +=================================================================== +--- a/src/Makefile ++++ b/src/Makefile +@@ -104,8 +104,8 @@ + + install-gui: gui + $(INSTALL) -d -m 0755 $(DESTDIR)/$(SBINDIR) +- $(INSTALL) -m 0755 gui/gtk-$(PACKAGENAME) $(DESTDIR)/$(SBINDIR) +- $(INSTALL) -d -m 0755 $(DESTDIR)/$(DATADIR)/$(PACKAGENAME)/artwork ++ $(INSTALL) -m 0755 gui/gtk-$(PACKAGENAME) $(DESTDIR)/$(SBINDIR)/$(PACKAGENAME)-gtk ++ $(INSTALL) -d -m 0754 $(DESTDIR)/$(DATADIR)/$(PACKAGENAME)/artwork + $(INSTALL) -d -m 0755 $(DESTDIR)/$(DATADIR)/$(PACKAGENAME)/ui + $(INSTALL) -m 0644 gui/*.ui $(DESTDIR)/$(DATADIR)/$(PACKAGENAME)/ui + $(INSTALL) -m 0644 gui/artwork/*.svg $(DESTDIR)/$(DATADIR)/$(PACKAGENAME)/artwork --- lshw-02.16.orig/debian/patches/lshw-common.patch +++ lshw-02.16/debian/patches/lshw-common.patch @@ -0,0 +1,22 @@ +Added paths to look for device idsIndex: lshw-02.14/src/core/pci.cc +=================================================================== +--- a/src/core/pci.cc ++++ b/src/core/pci.cc +@@ -18,6 +18,7 @@ + #define PROC_BUS_PCI "/proc/bus/pci" + #define SYS_BUS_PCI "/sys/bus/pci" + #define PCIID_PATH DATADIR"/pci.ids:/usr/share/lshw/pci.ids:/usr/local/share/pci.ids:/usr/share/pci.ids:/etc/pci.ids:/usr/share/hwdata/pci.ids:/usr/share/misc/pci.ids" ++#define PCIID_PATH DATADIR"/pci.ids:/usr/share/lshw-common/pci.ids:/usr/local/share/pci.ids:/usr/share/pci.ids:/etc/pci.ids:/usr/share/hwdata/pci.ids:/usr/share/misc/pci.ids" + + #define PCI_CLASS_REVISION 0x08 /* High 24 bits are class, low 8 revision */ + #define PCI_VENDOR_ID 0x00 /* 16 bits */ +--- a/src/core/usb.cc ++++ b/src/core/usb.cc +@@ -28,6 +28,7 @@ + #define PROCBUSUSBDEVICES "/proc/bus/usb/devices" + #define SYSBUSUSBDEVICES "/sys/bus/usb/devices" + #define USBID_PATH DATADIR"/usb.ids:/usr/share/lshw/usb.ids:/usr/local/share/usb.ids:/usr/share/usb.ids:/etc/usb.ids:/usr/share/hwdata/usb.ids:/usr/share/misc/usb.ids" ++#define USBID_PATH DATADIR"/usb.ids:/usr/share/lshw-common/usb.ids:/usr/local/share/usb.ids:/usr/share/usb.ids:/etc/usb.ids:/usr/share/hwdata/usb.ids:/usr/share/misc/usb.ids" + + #define USB_CLASS_PER_INTERFACE 0 /* for DeviceClass */ + #define USB_CLASS_AUDIO 1 --- lshw-02.16.orig/debian/patches/alpha.patch +++ lshw-02.16/debian/patches/alpha.patch @@ -0,0 +1,14 @@ +diff -urNad lshw-02.06~/src/core/pcmcia.cc lshw-02.06/src/core/pcmcia.cc +--- lshw-02.06~/src/core/pcmcia.cc 2005-10-13 23:33:55.000000000 +0200 ++++ lshw-02.06/src/core/pcmcia.cc 2005-10-18 10:32:20.000000000 +0200 +@@ -1007,8 +1007,8 @@ + { + if (stab[i][0] == 'S') + { +- unsigned int pos = stab[i].find(':'); +- ++ string::size_type pos = stab[i].find(':'); ++ + socketname = ""; + carddescription = ""; + --- lshw-02.16.orig/debian/patches/lshw-X.patch +++ lshw-02.16/debian/patches/lshw-X.patch @@ -0,0 +1,62 @@ +Sanitize error when trying to run GUI without XIndex: lshw-02.14/src/gui/integration/console.apps +=================================================================== +--- a/src/gui/integration/console.apps ++++ b/src/gui/integration/console.apps +@@ -1,3 +1,3 @@ + USER=root +-PROGRAM=/usr/sbin/gtk-lshw ++PROGRAM=/usr/sbin/lshw-gtk + SESSION=true +--- a/src/gui/integration/gtk-lshw.desktop ++++ b/src/gui/integration/gtk-lshw.desktop +@@ -3,7 +3,7 @@ + Comment=HardWare LiSter + Categories=Application;System;X-Red-Hat-Base;X-Fedora; + Icon=/usr/share/lshw/artwork/logo.svg +-Exec=/usr/bin/gtk-lshw ++Exec=/usr/bin/lshw-gtk + Type=Application + Terminal=false + Encoding=UTF-8 +--- a/src/lshw.cc ++++ b/src/lshw.cc +@@ -11,6 +11,7 @@ + #include + #include + #include ++#include + + #ifndef NONLS + #include +@@ -30,8 +31,8 @@ + fprintf(stderr, _("\t-xml output hardware tree as XML\n")); + fprintf(stderr, _("\t-short output hardware paths\n")); + fprintf(stderr, _("\t-businfo output bus information\n")); +- if(getenv("DISPLAY") && exists(SBINDIR"/gtk-lshw")) +- fprintf(stderr, _("\t-X use graphical interface\n")); ++ if(getenv("DISPLAY") && exists(SBINDIR"/lshw-gtk")) ++ fprintf(stderr, _("\t-X use graphical interface\n")); + fprintf(stderr, _("\noptions can be\n")); + #ifdef SQLITE + fprintf(stderr, _("\t-dump OUTFILE save hardware tree to a file\n")); +@@ -211,7 +212,19 @@ + exit(1); + } + +- if(enabled("output:X")) execl(SBINDIR"/gtk-lshw", SBINDIR"/gtk-lshw", NULL); ++/* if(enabled("output:X")) execl(SBINDIR"/gtk-lshw", SBINDIR"/gtk-lshw", NULL); */ ++ ++ if(enabled("output:X")) { ++ execl(SBINDIR"/lshw-gtk", SBINDIR"/lshw-gtk", NULL); ++ // Execl only returns if an error has occurred. ++ if ( errno == ENOENT ) { ++ fprintf(stderr, "ERROR: Sorry, cannot run the X11/GTK interface because %s/lshw-gtk\n is not available.\n", SBINDIR); ++ fprintf(stderr, "HINT: Install the lshw-gtk package in Debian.\n"); ++ } else { ++ fprintf(stderr, "ERROR: There was an error when trying to execute %s/lshw-gtk: %s\n", SBINDIR, strerror(errno)); ++ fprintf(stderr, "Will just print the information on screen\n"); ++ } ++ } + + if (geteuid() != 0) + { --- lshw-02.16.orig/debian/patches/cflags.patch +++ lshw-02.16/debian/patches/cflags.patch @@ -0,0 +1,46 @@ +Change of Makefile +* Don't include debug info +* Compile using CXX_DEB_FLAGSIndex: lshw-02.14/src/Makefile +=================================================================== +--- a/src/gui/Makefile ++++ b/src/gui/Makefile +@@ -8,7 +8,8 @@ + DEFINES=-DPREFIX=\"$(PREFIX)\" -DSBINDIR=\"$(SBINDIR)\" -DMANDIR=\"$(MANDIR)\" -DDATADIR=\"$(DATADIR)\" + GTKINCLUDES=$(shell pkg-config gtk+-2.0 --cflags) + INCLUDES=-I../core $(GTKINCLUDES) +-CXXFLAGS=-g -Wall $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS) ++#CXXFLAGS=-g -Wall $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS) ++CXXFLAGS=$(CXX_DEB_FLAGS) $(INCLUDES) $(DEFINES) + CFLAGS=$(CXXFLAGS) $(DEFINES) + GTKLIBS=$(shell pkg-config gtk+-2.0 gmodule-2.0 --libs) + LIBS=-L../core -llshw -lresolv -lsqlite3 $(GTKLIBS) +--- a/src/Makefile ++++ b/src/Makefile +@@ -21,11 +21,13 @@ + CXX?=c++ + INCLUDES=-I./core/ + DEFINES=-DPREFIX=\"$(PREFIX)\" -DSBINDIR=\"$(SBINDIR)\" -DMANDIR=\"$(MANDIR)\" -DDATADIR=\"$(DATADIR)\" +-CXXFLAGS=-g -Wall -g $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS) ++#CXXFLAGS=-g -Wall -g $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS) ++CXXFLAGS=$(CXX_DEB_FLAGS) $(INCLUDES) $(DEFINES) + ifeq ($(SQLITE), 1) + CXXFLAGS+= -DSQLITE $(shell pkg-config --cflags sqlite3) + endif +-LDFLAGS=-L./core/ -g ++#LDFLAGS=-L./core/ -g ++LDFLAGS=-L./core/ + ifneq ($(shell $(LD) --help 2| grep -- --as-needed), ) + LDFLAGS+= -Wl,--as-needed + endif +--- a/src/core/Makefile ++++ b/src/core/Makefile +@@ -3,7 +3,8 @@ + CXX=c++ + INCLUDES= + DEFINES=-DPREFIX=\"$(PREFIX)\" -DSBINDIR=\"$(SBINDIR)\" -DMANDIR=\"$(MANDIR)\" -DDATADIR=\"$(DATADIR)\" +-CXXFLAGS?=-g -Wall $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS) ++#CXXFLAGS?=-g -Wall $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS) ++CXXFLAGS?=$(CXX_DEB_FLAGS) $(INCLUDES) $(DEFINES) + LDFLAGS= + LDSTATIC= + LIBS= --- lshw-02.16.orig/debian/patches/fix-manpage.patch +++ lshw-02.16/debian/patches/fix-manpage.patch @@ -0,0 +1,8 @@ +--- a/src/lshw.1 ++++ b/src/lshw.1 +@@ -1,4 +1,4 @@ +-.\\" auto-generated by docbook2man-spec $Revision: 1.2 $ ++.\" auto-generated by docbook2man-spec $Revision: 1.2 $ + .TH "LSHW" "1" "30 May 2010" "$Rev: 2179 $" "" + .SH NAME + lshw \- list hardware --- lshw-02.16.orig/debian/patches/bin.patch +++ lshw-02.16/debian/patches/bin.patch @@ -0,0 +1,14 @@ +Move binaries to /bin instead of /sbin +It can be executed by normal users without privilegesIndex: lshw-02.14/src/Makefile +=================================================================== +--- a/src/Makefile ++++ b/src/Makefile +@@ -6,7 +6,7 @@ + + DESTDIR?=/ + PREFIX?=/usr +-SBINDIR=$(PREFIX)/sbin ++SBINDIR=$(PREFIX)/bin + MANDIR=$(PREFIX)/share/man + DATADIR=$(PREFIX)/share + INSTALL?=install -p