hw-probe: update to 1.5
This commit is contained in:
parent
c736168f34
commit
73d1ad8050
@ -1,9 +1,9 @@
|
|||||||
TERMUX_PKG_HOMEPAGE=https://github.com/linuxhw/hw-probe
|
TERMUX_PKG_HOMEPAGE=https://github.com/linuxhw/hw-probe
|
||||||
TERMUX_PKG_DESCRIPTION="Tool to probe for hardware and check its operability"
|
TERMUX_PKG_DESCRIPTION="Tool to probe for hardware and check its operability"
|
||||||
TERMUX_PKG_LICENSE="GPL-2.0"
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||||
TERMUX_PKG_VERSION=1.4
|
TERMUX_PKG_VERSION=1.5
|
||||||
TERMUX_PKG_SRCURL=https://github.com/linuxhw/hw-probe/archive/$TERMUX_PKG_VERSION.tar.gz
|
TERMUX_PKG_SRCURL=https://github.com/linuxhw/hw-probe/archive/$TERMUX_PKG_VERSION.tar.gz
|
||||||
TERMUX_PKG_SHA256=90f3ea83bf641348b209e4a2a910f65d836ae7828c0be0f660236ea413bc46bb
|
TERMUX_PKG_SHA256=8bb7d6ff272c1412e26fcfd86e9df5c3e34e1584552404b930c281b8498b25ea
|
||||||
TERMUX_PKG_DEPENDS="curl, hwinfo, net-tools, perl"
|
TERMUX_PKG_DEPENDS="curl, hwinfo, net-tools, perl"
|
||||||
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
||||||
TERMUX_PKG_BUILD_IN_SRC=true
|
TERMUX_PKG_BUILD_IN_SRC=true
|
||||||
|
@ -1,17 +1,16 @@
|
|||||||
diff -uNr hw-probe-1.4/hw-probe.pl hw-probe-1.4.mod/hw-probe.pl
|
--- ./hw-probe.pl.orig 2020-01-15 12:58:41.000000000 +0100
|
||||||
--- hw-probe-1.4/hw-probe.pl 2018-04-14 17:15:35.000000000 +0300
|
+++ ./hw-probe.pl 2020-02-14 21:30:39.736517524 +0100
|
||||||
+++ hw-probe-1.4.mod/hw-probe.pl 2019-06-26 13:16:14.050656056 +0300
|
@@ -193,7 +193,7 @@
|
||||||
@@ -81,7 +81,7 @@
|
}
|
||||||
my $URL = "https://linux-hardware.org";
|
}
|
||||||
my $GITHUB = "https://github.com/linuxhw/hw-probe";
|
|
||||||
|
|
||||||
-my $PROBE_DIR = "/root/HW_PROBE";
|
-my $PROBE_DIR = "/root/HW_PROBE";
|
||||||
+my $PROBE_DIR = "@TERMUX_HOME@/HW_PROBE";
|
+my $PROBE_DIR = "@TERMUX_HOME@/HW_PROBE";
|
||||||
my $DATA_DIR = $PROBE_DIR."/LATEST/hw.info";
|
|
||||||
my $LOG_DIR = $DATA_DIR."/logs";
|
if($Opt{"Snap"}) {
|
||||||
my $TEST_DIR = $DATA_DIR."/tests";
|
$PROBE_DIR = $ENV{"SNAP_USER_COMMON"}."/HW_PROBE";
|
||||||
@@ -1285,11 +1285,11 @@
|
@@ -2624,11 +2624,11 @@
|
||||||
$Path = $PnpIDs;
|
$Path = $Opt{"PnpIDs"};
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
- $Path = "/usr/share/hwdata/pnp.ids"; # ROSA Fresh, RELS
|
- $Path = "/usr/share/hwdata/pnp.ids"; # ROSA Fresh, RELS
|
||||||
@ -24,61 +23,52 @@ diff -uNr hw-probe-1.4/hw-probe.pl hw-probe-1.4.mod/hw-probe.pl
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(not -e $Path) {
|
if(not -e $Path) {
|
||||||
@@ -1325,7 +1325,7 @@
|
@@ -2664,7 +2664,7 @@
|
||||||
|
|
||||||
sub readVendorIds()
|
sub readVendorIds()
|
||||||
{
|
{
|
||||||
- my $Path = "/usr/share/hwdata/pci.ids";
|
- my $Path = "/usr/share/hwdata/pci.ids";
|
||||||
+ my $Path = "@TERMUX_PREFIX@/share/hwdata/pci.ids";
|
+ my $Path = "@TERMUX_PREFIX@/share/hwdata/pci.ids";
|
||||||
|
|
||||||
if($PciIDs) {
|
if($Opt{"PciIDs"}) {
|
||||||
$Path = $PciIDs;
|
$Path = $Opt{"PciIDs"};
|
||||||
@@ -4232,7 +4232,7 @@
|
@@ -6492,7 +6492,7 @@
|
||||||
writeLog($LOG_DIR."/dmesg", $Dmesg);
|
else
|
||||||
|
|
||||||
listProbe("logs", "xorg.log");
|
|
||||||
- my $XLog = readFile("/var/log/Xorg.0.log");
|
|
||||||
+ my $XLog = readFile("@TERMUX_PREFIX@/var/log/Xorg.0.log");
|
|
||||||
$XLog = hideTags($XLog, "Serial#");
|
|
||||||
if(my $HostName = $ENV{"HOSTNAME"}) {
|
|
||||||
$XLog=~s/ $HostName / NODE /g;
|
|
||||||
@@ -5817,7 +5817,7 @@
|
|
||||||
}
|
|
||||||
|
|
||||||
listProbe("logs", "xorg.log.1");
|
|
||||||
- my $XLog_Old = readFile("/var/log/Xorg.0.log.old");
|
|
||||||
+ my $XLog_Old = readFile("@TERMUX_PREFIX@/var/log/Xorg.0.log.old");
|
|
||||||
$XLog_Old = hideTags($XLog_Old, "Serial#");
|
|
||||||
if(my $HostName = $ENV{"HOSTNAME"}) {
|
|
||||||
$XLog_Old=~s/ $HostName / NODE /g;
|
|
||||||
@@ -5862,7 +5862,7 @@
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
- if(-f "/var/log/boot.log")
|
|
||||||
+ if(-f "/log/boot.log")
|
|
||||||
{
|
{
|
||||||
listProbe("logs", "boot.log");
|
listProbe("logs", "xorg.log");
|
||||||
my $BootLog = clearLog(readFile("/var/log/boot.log"));
|
- $XLog = readFile("/var/log/Xorg.0.log");
|
||||||
@@ -6533,7 +6533,7 @@
|
+ $XLog = readFile("@TERMUX_PREFIX@/var/log/Xorg.0.log");
|
||||||
|
|
||||||
|
if(not $XLog)
|
||||||
{
|
{
|
||||||
if($Admin)
|
@@ -10394,7 +10394,7 @@
|
||||||
|
if(enabledLog("xorg.log.1"))
|
||||||
|
{
|
||||||
|
listProbe("logs", "xorg.log.1");
|
||||||
|
- my $XLog_Old = readFile("/var/log/Xorg.0.log.old");
|
||||||
|
+ my $XLog_Old = readFile("@TERMUX_PREFIX@/var/log/Xorg.0.log.old");
|
||||||
|
|
||||||
|
if(not $XLog_Old)
|
||||||
|
{
|
||||||
|
@@ -11233,7 +11233,7 @@
|
||||||
|
{
|
||||||
|
my $MAX_P_LEN = 1000;
|
||||||
|
|
||||||
|
- my $ELog = "/var/log/cups/error_log";
|
||||||
|
+ my $ELog = "@TERMUX_PREFIX@/var/log/cups/error_log";
|
||||||
|
if(enabledLog("cups_error_log") and -e $ELog)
|
||||||
{
|
{
|
||||||
- my $ELog = "/var/log/cups/error_log";
|
listProbe("logs", "cups_error_log");
|
||||||
+ my $ELog = "@TERMUX_PREFIX@/var/log/cups/error_log";
|
@@ -11244,7 +11244,7 @@
|
||||||
if(-e $ELog)
|
writeLog($LOG_DIR."/cups_error_log", $CupsError);
|
||||||
{
|
}
|
||||||
listProbe("logs", "cups_error_log");
|
|
||||||
@@ -6541,7 +6541,7 @@
|
- my $ALog = "/var/log/cups/access_log";
|
||||||
writeLog($LOG_DIR."/cups_error_log", $CupsError);
|
+ my $ALog = "@TERMUX_PREFIX@/var/log/cups/access_log";
|
||||||
}
|
if(enabledLog("cups_access_log") and -e $ALog)
|
||||||
|
{
|
||||||
- my $ALog = "/var/log/cups/access_log";
|
listProbe("logs", "cups_access_log");
|
||||||
+ my $ALog = "@TERMUX_PREFIX@/var/log/cups/access_log";
|
@@ -12246,7 +12246,7 @@
|
||||||
if(-e $ALog)
|
|
||||||
{
|
|
||||||
listProbe("logs", "cups_access_log");
|
|
||||||
@@ -7169,7 +7169,7 @@
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub readSdioIds_Sys() {
|
sub readSdioIds_Sys() {
|
||||||
|
Loading…
Reference in New Issue
Block a user