From patchwork Fri Aug 21 19:37:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: smooky X-Patchwork-Id: 3390 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4BYBcs6B1Zz3x16 for ; Fri, 21 Aug 2020 19:37:49 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4BYBcs463rzsF; Fri, 21 Aug 2020 19:37:49 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4BYBcs39Gnz2yHl; Fri, 21 Aug 2020 19:37:49 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4BYBcq639rz2xHV for ; Fri, 21 Aug 2020 19:37:47 +0000 (UTC) Received: from malta2912.startdedicated.de (v16.de [85.93.91.151]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPS id 4BYBcq10jVznK for ; Fri, 21 Aug 2020 19:37:47 +0000 (UTC) Received: from router.home.v16.de (ip1f109aa8.dynamic.kabel-deutschland.de [31.16.154.168]) (Authenticated sender: smooky.v16) by malta2912.startdedicated.de (Postfix) with ESMTPA id 77413EC0E70; Fri, 21 Aug 2020 21:37:45 +0200 (CEST) From: smooky@v16.de To: development@lists.ipfire.org Subject: [PATCH] lshw-B.02.19.2 Date: Fri, 21 Aug 2020 21:37:44 +0200 Message-Id: <20200821193744.5799-1-smooky@v16.de> X-Mailer: git-send-email 2.12.2 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.ipfire.org; s=202003rsa; t=1598038667; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=Sf+WIMOZdQsW4g6r/sWidnBvBrHmbTsiMkZuVuaJgSw=; b=f2YX4a7PuqfIl2/6ciZSWfvFRuMVHvuuZF01l61Gala4cTiTEJRuuwl19WdzGt5syUBEUn 7h5kQIpmBrnvqoXHlDb8c2YZCiJAaUr84V9bWNS21GZSFhSU7W2BEsoroZHe26DBD3zWOX MKmHpqfLIe4jSy9ruxGSufMV7GvNnIX+XunObNoR1PocpLUV7D56V6jbKxy/76h2xWOwcU 0inQ9Auqk1ctcQ6eUg/BMRT2DZ/PFD21Usa/QIVK8fD73aFiFGL4F1tLgEwL0MTwVimD2d oGdS4piZa+1FCRPBO1FEn3QE+BnPTEBk+WiIqY3cd/mOPH9dfvuEIxsu9B7GDQ== ARC-Seal: i=1; s=202003rsa; d=lists.ipfire.org; t=1598038667; a=rsa-sha256; cv=none; b=DlanxvngGSSPrUIYoXT0fGE2FgxKsOdQ+z1fhFw9y+SuUzoKLlvMGPEb0UiZ/hoOlcenPt mRv2tVNe9AS+JprCm29PRePBw+1NG+NI2qT+OzvLwf7i1GpL3/IV6qUf1Ty8/AEHRfNVvP Q8RM8itj8jwkOps1DWLTZjJ7MeJ0P//QejQK8aoIJEh8TF/YEy7aFQoPYzQ6jTsJ1IeOCh hTHMv8y3G4YTNV14DB0Hd+qVEQpSPwNT+o9lbc9SkVHe3Umbfgah/vKNZhHMQCuuAN2PkX OXcRHJVxjC3BaFixSLvNjrOfbsADGXdGAE7D1yQzRJNfoxa73iBmlRUEKr9EjQ== ARC-Authentication-Results: i=1; mail01.ipfire.org; dkim=none; dmarc=none; spf=none (mail01.ipfire.org: domain of smooky@v16.de has no SPF policy when checking 85.93.91.151) smtp.mailfrom=smooky@v16.de Authentication-Results: mail01.ipfire.org; dkim=none; dmarc=none; spf=none (mail01.ipfire.org: domain of smooky@v16.de has no SPF policy when checking 85.93.91.151) smtp.mailfrom=smooky@v16.de X-Rspamd-Queue-Id: 4BYBcq10jVznK X-Spamd-Result: default: False [-2.06 / 11.00]; RCVD_TLS_LAST(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; IP_REPUTATION_HAM(-0.00)[asn: 8972(0.00), country: DE(-0.00), ip: 85.93.91.151(0.00)]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[v16.de]; ARC_SIGNED(0.00)[i=1]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_NO_DN(0.00)[]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM(-0.96)[-0.955]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8972, ipnet:85.93.91.0/24, country:DE]; RCVD_COUNT_TWO(0.00)[2]; BAYES_HAM(-3.00)[99.99%]; RECEIVED_SPAMHAUS_PBL(0.00)[31.16.154.168:received] X-Rspamd-Server: mail01.haj.ipfire.org X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marcel Follert Errors-To: development-bounces@lists.ipfire.org Sender: "Development" >>> https://ezix.org/project/wiki/HardwareLiSter <<< lshw (Hardware Lister) is 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. Signed-off-by: Marcel Follert (Smooky) Reviewed-by: Michael Tremer --- config/rootfiles/packages/lshw | 10 +++++ lfs/lshw | 84 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 94 insertions(+) create mode 100644 config/rootfiles/packages/lshw create mode 100644 lfs/lshw diff --git a/config/rootfiles/packages/lshw b/config/rootfiles/packages/lshw new file mode 100644 index 000000000..3987b2f25 --- /dev/null +++ b/config/rootfiles/packages/lshw @@ -0,0 +1,10 @@ +usr/sbin/lshw +#usr/share/locale/fr/LC_MESSAGES/lshw.mo +#usr/share/lshw +#usr/share/lshw/manuf.txt +#usr/share/lshw/oui.txt +#usr/share/lshw/pci.ids +#usr/share/lshw/pnp.ids +#usr/share/lshw/pnpid.txt +#usr/share/lshw/usb.ids +#usr/share/man/man1/lshw.1 diff --git a/lfs/lshw b/lfs/lshw new file mode 100644 index 000000000..1e22bed05 --- /dev/null +++ b/lfs/lshw @@ -0,0 +1,84 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007-2020 IPFire Team # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# 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 . # +# # +############################################################################### + + +############################################################################### +# Definitions +############################################################################### + +include Config + +VER = B.02.19.2 + +THISAPP = lshw-$(VER) +DL_FILE = $(THISAPP).tar.gz +DL_FROM = $(URL_IPFIRE) +DIR_APP = $(DIR_SRC)/$(THISAPP) +TARGET = $(DIR_INFO)/$(THISAPP) +PROG = lshw +PAK_VER = 1 + +DEPS = + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +$(DL_FILE) = $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_MD5 = 8c70d46e906688309095c73ecb9396e3 + +install : $(TARGET) + +check : $(patsubst %,$(DIR_CHK)/%,$(objects)) + +download :$(patsubst %,$(DIR_DL)/%,$(objects)) + +md5 : $(subst %,%_MD5,$(objects)) + +dist: + @$(PAK) + +############################################################################### +# Downloading, checking, md5sum +############################################################################### + +$(patsubst %,$(DIR_CHK)/%,$(objects)) : + @$(CHECK) + +$(patsubst %,$(DIR_DL)/%,$(objects)) : + @$(LOAD) + +$(subst %,%_MD5,$(objects)) : + @$(MD5) + +############################################################################### +# Installation Details +############################################################################### + +$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) + @$(PREBUILD) + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar xzf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE) + cd $(DIR_APP) && make install + @rm -rf $(DIR_APP) + @$(POSTBUILD)