Blame SOURCES/smartmontools-6.2-drivedbman.patch

ba800d
diff -up smartmontools-6.2/Makefile.am.drivedbman smartmontools-6.2/Makefile.am
ba800d
--- smartmontools-6.2/Makefile.am.drivedbman	2013-01-26 22:11:02.000000000 +0100
ba800d
+++ smartmontools-6.2/Makefile.am	2016-09-07 17:22:23.382337649 +0200
ba800d
@@ -288,7 +288,8 @@ else
ba800d
 # For systems that adopts traditional manner
ba800d
 man_MANS =        smartd.conf.5 \
ba800d
                   smartctl.8    \
ba800d
-                  smartd.8
ba800d
+                  smartd.8	\
ba800d
+                  update-smart-drivedb.8
ba800d
 endif
ba800d
 
ba800d
 docsdir=$(docdir)
ba800d
@@ -360,6 +361,7 @@ EXTRA_DIST = \
ba800d
         smartd.service.in \
ba800d
         smartd_warning.sh.in \
ba800d
         update-smart-drivedb.in \
ba800d
+        update-smart-drivedb.8.in \
ba800d
         m4/pkg.m4 \
ba800d
         os_darwin/SMART.in \
ba800d
         os_darwin/StartupParameters.plist \
ba800d
@@ -398,6 +400,7 @@ CLEANFILES = \
ba800d
         smartd_warning.sh \
ba800d
         svnversion.h \
ba800d
         update-smart-drivedb \
ba800d
+        update-smart-drivedb.8 \
ba800d
         SMART
ba800d
 
ba800d
 # 'make maintainer-clean' also removes files generated by './autogen.sh'
ba800d
@@ -597,6 +600,9 @@ smartd.8: smartd.8.in Makefile svnversio
ba800d
 smartd.conf.5: smartd.conf.5.in Makefile svnversion.h
ba800d
 	cat $(srcdir)/smartd.conf.5.in | $(MAN_FILTER) > $@
ba800d
 
ba800d
+update-smart-drivedb.8: update-smart-drivedb.8.in Makefile svnversion.h
ba800d
+	cat $(srcdir)/update-smart-drivedb.8.in | $(MAN_FILTER) > $@
ba800d
+
ba800d
 # Commands to convert man pages into .html and .txt
ba800d
 # TODO: configure
ba800d
 MAN2HTML = man2html
ba800d
diff -up smartmontools-6.2/update-smart-drivedb.8.in.drivedbman smartmontools-6.2/update-smart-drivedb.8.in
ba800d
--- smartmontools-6.2/update-smart-drivedb.8.in.drivedbman	2016-09-07 17:20:44.354661063 +0200
ba800d
+++ smartmontools-6.2/update-smart-drivedb.8.in	2016-09-07 17:20:44.354661063 +0200
ba800d
@@ -0,0 +1,114 @@
ba800d
+.ig
ba800d
+Copyright (C) 2013 Hannes von Haugwitz <hannes@vonhaugwitz.com>
ba800d
+Copyright (C) 2014-16 Christian Franke
ba800d
+
ba800d
+$Id: update-smart-drivedb.8.in 4223 2016-02-26 20:18:40Z chrfranke $
ba800d
+
ba800d
+This program is free software; you can redistribute it and/or modify
ba800d
+it under the terms of the GNU General Public License as published by
ba800d
+the Free Software Foundation; either version 2, or (at your option)
ba800d
+any later version.
ba800d
+
ba800d
+You should have received a copy of the GNU General Public License
ba800d
+(for example COPYING); If not, see <http://www.gnu.org/licenses/>.
ba800d
+
ba800d
+..
ba800d
+.TH UPDATE-SMART-DRIVEDB 8 "CURRENT_SVN_DATE" "CURRENT_SVN_VERSION" "SMART Monitoring Tools"
ba800d
+.SH NAME
ba800d
+update-smart-drivedb \- update smartmontools drive database
ba800d
+
ba800d
+.SH "SYNOPSIS"
ba800d
+.B update-smart-drivedb
ba800d
+.RI [ OPTIONS ]
ba800d
+.RI [ DESTFILE ]
ba800d
+
ba800d
+.SH "DESCRIPTION"
ba800d
+.\" %IF NOT OS ALL
ba800d
+.\"! [This man page is generated for the OS_MAN_FILTER version of smartmontools.
ba800d
+.\"! It does not contain info specific to other platforms.]
ba800d
+.\"! .PP
ba800d
+.\" %ENDIF NOT OS ALL
ba800d
+.B update-smart-drivedb
ba800d
+updates
ba800d
+.B /usr/local/share/smartmontools/drivedb.h
ba800d
+or
ba800d
+.I DESTFILE
ba800d
+from smartmontools SVN repository.
ba800d
+
ba800d
+It tries to download first from the current branch and then from
ba800d
+trunk. The tools used for downloading are either
ba800d
+.BR curl (1),
ba800d
+.BR wget (1),
ba800d
+.BR lynx (1),
ba800d
+.\" %IF OS FreeBSD
ba800d
+.BR fetch (1)
ba800d
+[FreeBSD only],
ba800d
+.\" %ENDIF OS FreeBSD
ba800d
+.\" %IF OS OpenBSD
ba800d
+.BR ftp (1)
ba800d
+[OpenBSD only],
ba800d
+.\" %ENDIF OS OpenBSD
ba800d
+or
ba800d
+.BR svn (1).
ba800d
+
ba800d
+The old file is kept if the downloaded file is identical (ignoring
ba800d
+the differences in Id string) otherwise it is moved to
ba800d
+.BR drivedb.h.old .
ba800d
+
ba800d
+.SH "OPTIONS"
ba800d
+.TP
ba800d
+.B \-v
ba800d
+Verbose output.
ba800d
+
ba800d
+.SH "EXAMPLES"
ba800d
+.nf
ba800d
+# update-smart-drivedb
ba800d
+/usr/local/share/smartmontools/drivedb.h updated from branches/RELEASE_6_0_DRIVEDB
ba800d
+.fi
ba800d
+
ba800d
+.SH "EXIT STATUS"
ba800d
+The exit status is 0 if the database has been successfully
ba800d
+updated. If an error occurs the exit status is 1.
ba800d
+
ba800d
+.SH FILES
ba800d
+.TP
ba800d
+.B /usr/local/sbin/update-smart-drivedb
ba800d
+full path of this script.
ba800d
+.TP
ba800d
+.B /usr/local/sbin/smartctl
ba800d
+used to check syntax of new drive database.
ba800d
+.TP
ba800d
+.B /usr/local/share/smartmontools/drivedb.h
ba800d
+current drive database.
ba800d
+.TP
ba800d
+.B /usr/local/share/smartmontools/drivedb.h.old
ba800d
+previous drive database.
ba800d
+.TP
ba800d
+.B /usr/local/share/smartmontools/drivedb.h.error
ba800d
+new drive database if rejected due to syntax errors.
ba800d
+.TP
ba800d
+.B /usr/local/share/smartmontools/drivedb.h.lastcheck
ba800d
+empty file created if downloaded file was identical.
ba800d
+
ba800d
+.SH AUTHORS
ba800d
+\fBChristian Franke\fP.
ba800d
+.br
ba800d
+This manual page was originally written by
ba800d
+.BR "Hannes von Haugwitz <hannes@vonhaugwitz.com>" .
ba800d
+
ba800d
+.SH REPORTING BUGS
ba800d
+To submit a bug report, create a ticket in smartmontools wiki:
ba800d
+.br
ba800d
+<\fBhttp://www.smartmontools.org/\fP>.
ba800d
+.br
ba800d
+Alternatively send the info to the smartmontools support mailing list:
ba800d
+.br
ba800d
+<\fBhttps://lists.sourceforge.net/lists/listinfo/smartmontools-support\fB>.
ba800d
+
ba800d
+.SH SEE ALSO
ba800d
+\fBsmartctl\fP(8), \fBsmartd\fP(8).
ba800d
+
ba800d
+.SH PACKAGE VERSION
ba800d
+CURRENT_SVN_VERSION CURRENT_SVN_DATE CURRENT_SVN_REV
ba800d
+.br
ba800d
+$Id: update-smart-drivedb.8.in 4223 2016-02-26 20:18:40Z chrfranke $