-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to specify a separate install location for drivedb.h.
This prevents that update-smart-drivedb overwrites the package installed file (Debian Bug 976696, Ubuntu Bug 1893202). configure.ac, Makefile.am: Add '--with-drivedbinstdir' option. update-smart-drivedb.in: Add '--install' option. update-smart-drivedb.8.in: Document new functionality. smartctl.8.in, smartd.8.in: Adjust path names. git-svn-id: https://svn.code.sf.net/p/smartmontools/code/trunk/smartmontools@5318 4ea69e1a-61f1-4043-bf83-b5c94c648137
- Loading branch information
chrfranke
committed
Feb 18, 2022
1 parent
10323b2
commit ff6b7e1
Showing
7 changed files
with
83 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
$Id$ | ||
|
||
2022-02-18 Christian Franke <[email protected]> | ||
|
||
Allow to specify a separate install location for drivedb.h. | ||
This prevents that update-smart-drivedb overwrites the package | ||
installed file (Debian Bug 976696, Ubuntu Bug 1893202). | ||
|
||
configure.ac, Makefile.am: Add '--with-drivedbinstdir' option. | ||
update-smart-drivedb.in: Add '--install' option. | ||
update-smart-drivedb.8.in: Document new functionality. | ||
smartctl.8.in, smartd.8.in: Adjust path names. | ||
|
||
2022-02-16 Douglas Gilbert <[email protected]> | ||
|
||
smartctl.cpp: add new --log=tapedevstat to print out SCSI | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.ig | ||
Copyright (C) 2013 Hannes von Haugwitz <[email protected]> | ||
Copyright (C) 2014-21 Christian Franke | ||
Copyright (C) 2014-22 Christian Franke | ||
SPDX-License-Identifier: GPL-2.0-or-later | ||
|
@@ -41,7 +41,7 @@ update-smart-drivedb \- update smartmontools drive database | |
.\" %ENDIF NOT OS ALL | ||
.B update-smart-drivedb | ||
updates | ||
.B /usr/local/share/smartmontools/drivedb.h | ||
.B /usr/local/var/lib/smartmontools/drivedb.h | ||
or | ||
.I DESTFILE | ||
from branches/RELEASE_6_0_DRIVEDB of smartmontools SVN repository. | ||
|
@@ -84,7 +84,7 @@ The form \*(Aq\-s \-\*(Aq disables the syntax check. | |
The default is | ||
.BR /usr/local/sbin/smartctl . | ||
.TP | ||
.B \-t [/DIR/]TOOL, \-\-tool [/DIR/]TOOL | ||
.B \-t [DIR/]TOOL, \-\-tool [DIR/]TOOL | ||
Use TOOL for download. | ||
TOOL is one of: | ||
.I curl wget lynx | ||
|
@@ -134,6 +134,15 @@ exist unless \*(Aq\-\-no\-verify\*(Aq is also specified. | |
Copy from local FILE. | ||
A valid OpenPGP/GPG signature \*(AqFILE.raw.asc\*(Aq must also exist | ||
unless \*(Aq\-\-no\-verify\*(Aq is also specified. | ||
.\" %IF ENABLE_DB_INSTALL | ||
.TP | ||
.B \-\-install | ||
[NEW EXPERIMENTAL UPDATE-SMART-DRIVEDB FEATURE] | ||
Copy from originally installed drive database file. | ||
This is the same as: | ||
.br | ||
\*(Aq\-\-no\-verify \-\-file /usr/local/share/smartmontools/drivedb.h\*(Aq | ||
.\" %ENDIF ENABLE_DB_INSTALL | ||
.TP | ||
.B \-\-trunk | ||
Download from SVN trunk. | ||
|
@@ -186,14 +195,14 @@ Print help text. | |
Regular update: | ||
.Vb 2 | ||
# update-smart-drivedb | ||
/usr/local/share/smartmontools/drivedb.h 7.2/5225 updated to 7.2/5237 | ||
/usr/local/var/lib/smartmontools/drivedb.h 7.2/5225 updated to 7.2/5237 | ||
.Ve | ||
.PP | ||
Revert to previous version: | ||
.Vb 2 | ||
# update-smart-drivedb --force \e | ||
--file /usr/local/share/smartmontools/drivedb.h.old | ||
/usr/local/share/smartmontools/drivedb.h 7.2/5237 downgraded to 7.2/5225 | ||
--file /usr/local/var/lib/smartmontools/drivedb.h.old | ||
/usr/local/var/lib/smartmontools/drivedb.h 7.2/5237 downgraded to 7.2/5225 | ||
.Ve | ||
.PP | ||
Download the database from SVN trunk to current directory: | ||
|
@@ -214,23 +223,28 @@ full path of this script. | |
.TP | ||
.B /usr/local/sbin/smartctl | ||
used to check syntax of new drive database. | ||
.\" %IF ENABLE_DB_INSTALL | ||
.TP | ||
.B /usr/local/share/smartmontools/drivedb.h | ||
originally installed drive database. | ||
.\" %ENDIF ENABLE_DB_INSTALL | ||
.TP | ||
.B /usr/local/var/lib/smartmontools/drivedb.h | ||
current drive database. | ||
.TP | ||
.B /usr/local/share/smartmontools/drivedb.h.raw | ||
.B /usr/local/var/lib/smartmontools/drivedb.h.raw | ||
current drive database with unexpanded SVN Id string. | ||
.TP | ||
.B /usr/local/share/smartmontools/drivedb.h.raw.asc | ||
.B /usr/local/var/lib/smartmontools/drivedb.h.raw.asc | ||
signature file. | ||
.TP | ||
.B /usr/local/share/smartmontools/drivedb.h.*old* | ||
.B /usr/local/var/lib/smartmontools/drivedb.h.*old* | ||
previous files. | ||
.TP | ||
.B /usr/local/share/smartmontools/drivedb.h.*error* | ||
.B /usr/local/var/lib/smartmontools/drivedb.h.*error* | ||
new files if rejected due to errors. | ||
.TP | ||
.B /usr/local/share/smartmontools/drivedb.h.lastcheck | ||
.B /usr/local/var/lib/smartmontools/drivedb.h.lastcheck | ||
empty file created if downloaded file was identical. | ||
.Sp | ||
.SH AUTHORS | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters