rpms/smartmontools/F-12 .cvsignore, 1.5, 1.6 smartmontools-5.38-lowcap.patch, 1.6, 1.7 smartmontools.spec, 1.68, 1.69 sources, 1.5, 1.6 smartmontools-5.37-addrinfo.patch, 1.2, NONE smartmontools-5.38-cloexec.patch, 1.2, NONE smartmontools-5.38-perc.patch, 1.1, NONE smartmontools-5.38-selinux.patch, 1.1, NONE
Michal Hlavinka
mhlavink at fedoraproject.org
Thu Dec 10 09:11:57 UTC 2009
- Previous message (by thread): rpms/system-config-language/F-12 system-config-language.spec, 1.59, 1.60
- Next message (by thread): rpms/netpbm/devel netpbm-pamtosvg.patch, NONE, 1.1 .cvsignore, 1.60, 1.61 netpbm-time.patch, 1.1, 1.2 netpbm.spec, 1.149, 1.150 sources, 1.64, 1.65
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: mhlavink
Update of /cvs/extras/rpms/smartmontools/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv455
Modified Files:
.cvsignore smartmontools-5.38-lowcap.patch smartmontools.spec
sources
Removed Files:
smartmontools-5.37-addrinfo.patch
smartmontools-5.38-cloexec.patch smartmontools-5.38-perc.patch
smartmontools-5.38-selinux.patch
Log Message:
* Tue Nov 24 2009 Michal Hlavinka <mhlavink at redhat.com> - 1:5.39-1
- update to 5.39
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/smartmontools/F-12/.cvsignore,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -r1.5 -r1.6
--- .cvsignore 10 Mar 2008 12:37:22 -0000 1.5
+++ .cvsignore 10 Dec 2009 09:11:57 -0000 1.6
@@ -1 +1 @@
-smartmontools-5.38.tar.gz
+smartmontools-5.39.tar.gz
smartmontools-5.38-lowcap.patch:
Makefile.am | 2 -
configure.in | 34 +++++++++++++++++++++++++++++++++
smartd.8.in | 6 +++++
smartd.cpp | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++----
4 files changed, 97 insertions(+), 5 deletions(-)
Index: smartmontools-5.38-lowcap.patch
===================================================================
RCS file: /cvs/extras/rpms/smartmontools/F-12/smartmontools-5.38-lowcap.patch,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -p -r1.6 -r1.7
--- smartmontools-5.38-lowcap.patch 12 Oct 2009 15:17:53 -0000 1.6
+++ smartmontools-5.38-lowcap.patch 10 Dec 2009 09:11:57 -0000 1.7
@@ -1,7 +1,7 @@
-diff -up smartmontools-5.38/configure.in.lowcap smartmontools-5.38/configure.in
---- smartmontools-5.38/configure.in.lowcap 2009-10-12 17:00:53.889673785 +0200
-+++ smartmontools-5.38/configure.in 2009-10-12 17:00:53.896678618 +0200
-@@ -143,6 +143,40 @@ if test "$with_selinux" = "yes"; then
+diff -up smartmontools-5.39/configure.in.lowcap smartmontools-5.39/configure.in
+--- smartmontools-5.39/configure.in.lowcap 2009-11-19 10:54:53.000000000 +0100
++++ smartmontools-5.39/configure.in 2009-11-19 11:20:54.645701384 +0100
+@@ -219,6 +219,40 @@ if test "$with_selinux" = "yes"; then
AC_DEFINE(WITH_SELINUX, [1], [Define to 1 if SELinux support is enabled])
fi
@@ -42,10 +42,10 @@ diff -up smartmontools-5.38/configure.in
if test "$prefix" = "NONE"; then
dnl no prefix and no mandir, so use ${prefix}/share/man as default
if test "$mandir" = '${prefix}/man'; then
-diff -up smartmontools-5.38/Makefile.am.lowcap smartmontools-5.38/Makefile.am
---- smartmontools-5.38/Makefile.am.lowcap 2007-04-01 18:49:44.000000000 +0200
-+++ smartmontools-5.38/Makefile.am 2009-10-12 17:00:53.896678618 +0200
-@@ -35,7 +35,7 @@ smartd_SOURCES = smartd.cpp \
+diff -up smartmontools-5.39/Makefile.am.lowcap smartmontools-5.39/Makefile.am
+--- smartmontools-5.39/Makefile.am.lowcap 2009-11-19 10:54:53.000000000 +0100
++++ smartmontools-5.39/Makefile.am 2009-11-19 11:20:54.646634706 +0100
+@@ -45,7 +45,7 @@ smartd_SOURCES = smartd.cpp \
utility.cpp \
utility.h
@@ -54,10 +54,10 @@ diff -up smartmontools-5.38/Makefile.am.
smartd_DEPENDENCIES = @os_deps@
EXTRA_smartd_SOURCES = os_darwin.cpp \
-diff -up smartmontools-5.38/smartd.8.in.lowcap smartmontools-5.38/smartd.8.in
---- smartmontools-5.38/smartd.8.in.lowcap 2008-03-04 23:09:47.000000000 +0100
-+++ smartmontools-5.38/smartd.8.in 2009-10-12 17:00:53.902672971 +0200
-@@ -145,6 +145,12 @@ input. This is useful for commands like:
+diff -up smartmontools-5.39/smartd.8.in.lowcap smartmontools-5.39/smartd.8.in
+--- smartmontools-5.39/smartd.8.in.lowcap 2009-11-19 10:54:53.000000000 +0100
++++ smartmontools-5.39/smartd.8.in 2009-11-19 11:20:54.651596342 +0100
+@@ -175,6 +175,12 @@ input. This is useful for commands like:
to perform quick and simple checks without a configuration file.
.TP
@@ -70,10 +70,10 @@ diff -up smartmontools-5.38/smartd.8.in.
.B \-d, \-\-debug
Runs \fBsmartd\fP in "debug" mode. In this mode, it displays status
information to STDOUT rather than logging it to SYSLOG and does not
-diff -up smartmontools-5.38/smartd.cpp.lowcap smartmontools-5.38/smartd.cpp
---- smartmontools-5.38/smartd.cpp.lowcap 2009-10-12 17:00:53.883672847 +0200
-+++ smartmontools-5.38/smartd.cpp 2009-10-12 17:04:18.600547796 +0200
-@@ -74,6 +74,10 @@ extern "C" int __stdcall FreeConsole(voi
+diff -up smartmontools-5.39/smartd.cpp.lowcap smartmontools-5.39/smartd.cpp
+--- smartmontools-5.39/smartd.cpp.lowcap 2009-11-19 10:54:53.000000000 +0100
++++ smartmontools-5.39/smartd.cpp 2009-11-19 11:36:07.123632685 +0100
+@@ -77,6 +77,10 @@ extern "C" int __stdcall FreeConsole(voi
#include <io.h> // setmode()
#endif // __CYGWIN__
@@ -84,7 +84,7 @@ diff -up smartmontools-5.38/smartd.cpp.l
// locally included files
#include "int64.h"
#include "atacmds.h"
-@@ -179,6 +183,11 @@ static int facility=LOG_DAEMON;
+@@ -190,6 +194,11 @@ static int facility=LOG_DAEMON;
static bool do_fork=true;
#endif
@@ -96,7 +96,17 @@ diff -up smartmontools-5.38/smartd.cpp.l
// used for control of printing, passing arguments to atacmds.c
smartmonctrl *con=NULL;
-@@ -613,6 +622,15 @@ void MailWarning(cfgfile *cfg, int which
+@@ -875,8 +884,7 @@ static void MailWarning(const dev_config
+ const char *unknown="[Unknown]";
+
+ // See if user wants us to send mail
+- if (cfg.emailaddress.empty() && cfg.emailcmdline.empty())
+- return;
++
+
+ std::string address = cfg.emailaddress;
+ const char * executable = cfg.emailcmdline.c_str();
+@@ -917,6 +925,15 @@ static void MailWarning(const dev_config
if (epoch<(mail->lastsent+days))
return;
}
@@ -112,49 +122,39 @@ diff -up smartmontools-5.38/smartd.cpp.l
// record the time of this mail message, and the first mail message
if (!mail->logged)
-@@ -1239,6 +1257,11 @@ void Usage (void){
- PrintOut(LOG_INFO," Quit on one of: %s\n\n", GetValidArgList('q'));
- PrintOut(LOG_INFO," -r, --report=TYPE\n");
- PrintOut(LOG_INFO," Report transactions for one of: %s\n\n", GetValidArgList('r'));
+@@ -1464,6 +1481,11 @@ void Usage (void){
+ PrintOut(LOG_INFO,"\n");
+ PrintOut(LOG_INFO," -c NAME|-, --configfile=NAME|-\n");
+ PrintOut(LOG_INFO," Read configuration file NAME or stdin [default is %s]\n\n", configfile);
+#ifdef HAVE_LIBCAP_NG
-+ PrintOut(LOG_INFO," -C, --usecapabilities\n");
++ PrintOut(LOG_INFO," -C, --capabilities\n");
+ PrintOut(LOG_INFO," Use possix capabilities (EXPERIMENTAL).\n"
+ " Warning: Mail notification does not work when used.\n\n");
+#endif
- #ifdef _WIN32
- PrintOut(LOG_INFO," --service\n");
- PrintOut(LOG_INFO," Running as windows service (see man page), install with:\n");
-@@ -1260,6 +1283,9 @@ void Usage (void){
- PrintOut(LOG_INFO," -p NAME Write PID file NAME\n");
- PrintOut(LOG_INFO," -q WHEN Quit on one of: %s\n", GetValidArgList('q'));
- PrintOut(LOG_INFO," -r TYPE Report transactions for one of: %s\n", GetValidArgList('r'));
-+#ifdef HAVE_LIBCAP_NG
-+ PrintOut(LOG_INFO," -C Use possix capabilities (EXPERIMENTAL)\n");
-+#endif
- PrintOut(LOG_INFO," -V Print License, Copyright, and version information\n");
- #endif
- }
-@@ -3866,7 +3892,7 @@ void ParseOpts(int argc, char **argv){
+ PrintOut(LOG_INFO," -d, --debug\n");
+ PrintOut(LOG_INFO," Start smartd in debug mode\n\n");
+ PrintOut(LOG_INFO," -D, --showdirectives\n");
+@@ -3701,7 +3723,7 @@ void ParseOpts(int argc, char **argv){
char *tailptr;
long lchecktime;
// Please update GetValidArgList() if you edit shortopts
-- const char *shortopts = "c:l:q:dDni:p:r:Vh?";
-+ const char *shortopts = "c:l:q:dDni:p:r:VCh?";
- #ifdef HAVE_GETOPT_LONG
+- const char *shortopts = "c:l:q:dDni:p:r:s:A:B:Vh?";
++ const char *shortopts = "c:l:q:dDni:p:r:s:A:B:VCh?";
char *arg;
// Please update GetValidArgList() if you edit longopts
-@@ -3890,6 +3916,9 @@ void ParseOpts(int argc, char **argv){
+ struct option longopts[] = {
+@@ -3727,6 +3749,9 @@ void ParseOpts(int argc, char **argv){
{ "copyright", no_argument, 0, 'V' },
{ "help", no_argument, 0, 'h' },
{ "usage", no_argument, 0, 'h' },
+#ifdef HAVE_LIBCAP_NG
-+ { "usecapabilities",no_argument, 0, 'C' },
++ { "capabilities", no_argument, 0, 'C' },
+#endif
{ 0, 0, 0, 0 }
};
- #endif
-@@ -4030,6 +4059,12 @@ void ParseOpts(int argc, char **argv){
- PrintCopyleft();
+
+@@ -3885,6 +3910,12 @@ void ParseOpts(int argc, char **argv){
+ PrintOut(LOG_INFO, "%s", format_version_info("smartd", true /*full*/).c_str());
EXIT(0);
break;
+#ifdef HAVE_LIBCAP_NG
@@ -166,11 +166,10 @@ diff -up smartmontools-5.38/smartd.cpp.l
case 'h':
// help: print summary of command-line options
debugmode=1;
-@@ -4408,6 +4443,16 @@ static int smartd_main(int argc, char **
-
- // don't exit on bad checksums
- con->checksumfail=0;
-+
+@@ -4224,6 +4255,16 @@ int main_worker(int argc, char **argv)
+
+ bool write_states_always = true;
+
+#ifdef HAVE_LIBCAP_NG
+ // Drop capabilities
+ if (enable_capabilities) {
@@ -180,20 +179,21 @@ diff -up smartmontools-5.38/smartd.cpp.l
+ capng_apply(CAPNG_SELECT_BOTH);
+ }
+#endif
-
++
// the main loop of the code
- while (1){
-@@ -4482,7 +4527,18 @@ static int smartd_main(int argc, char **
- PrintTestSchedule(ATAandSCSIdevlist);
+ for (;;) {
+
+@@ -4318,7 +4359,18 @@ int main_worker(int argc, char **argv)
+ PrintTestSchedule(configs, states, devices);
EXIT(0);
}
-
+
+#ifdef HAVE_LIBCAP_NG
+ if (enable_capabilities) {
-+ for(int i=0; i<numdevata+numdevscsi; i++) {
-+ if (ATAandSCSIdevlist[i]->mailwarn) {
-+ PrintOut(LOG_WARNING,"Mail can't be enabled together with --usecapabilities. All mail will be suppressed.\n");
++ for (unsigned i = 0; i < configs.size(); i++) {
++ if (configs.at(i).emailaddress.empty()) {
++ PrintOut(LOG_WARNING,"Mail can't be enabled together with --capabilities. All mail will be suppressed.\n");
+ break;
+ }
+ }
@@ -202,4 +202,4 @@ diff -up smartmontools-5.38/smartd.cpp.l
+
// reset signal
caughtsigHUP=0;
- }
+
Index: smartmontools.spec
===================================================================
RCS file: /cvs/extras/rpms/smartmontools/F-12/smartmontools.spec,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -p -r1.68 -r1.69
--- smartmontools.spec 25 Nov 2009 16:14:00 -0000 1.68
+++ smartmontools.spec 10 Dec 2009 09:11:57 -0000 1.69
@@ -1,7 +1,7 @@
Summary: Tools for monitoring SMART capable hard disks
Name: smartmontools
-Version: 5.38
-Release: 23%{?dist}
+Version: 5.39
+Release: 1%{?dist}
Epoch: 1
Group: System Environment/Base
License: GPLv2+
@@ -10,26 +10,11 @@ Source0: http://prdownloads.sourceforge.
Source1: smartd.initd
Source2: smartmontools.sysconf
-#exists upstream, required for <= 5.38
-Patch1: smartmontools-5.38-cloexec.patch
-
-#exists upstream, required for <= 5.38
-Patch2: smartmontools-5.37-addrinfo.patch
-
-#this was fixed upstream, required for <= 5.38
-Patch3: smartmontools-5.38-perc.patch
-
-#exists upstream, required for <= 5.38
-Patch4: smartmontools-5.38-selinux.patch
-
#fedora/rhel specific
-Patch5: smartmontools-5.38-defaultconf.patch
-
-#libcap-ng new feature
-Patch6: smartmontools-5.38-lowcap.patch
+Patch1: smartmontools-5.38-defaultconf.patch
-#taken from upstream, fixes building with autoconf 2.64, required for <= 5.38
-Patch7: smartmontools-5.38-ac264.patch
+#libcap-ng new feature, testing for now
+Patch2: smartmontools-5.38-lowcap.patch
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
Requires: fileutils mailx chkconfig initscripts
@@ -46,13 +31,8 @@ failure.
%prep
%setup -q
-%patch1 -p1 -b .cloexec
-%patch2 -p1 -b .addrinfo
-%patch3 -p1 -b .perc
-%patch4 -p1 -b .selinux
-%patch5 -p1 -b .defaultconf
-%patch6 -p1 -b .lowcap
-%patch7 -p1 -b .ac264
+%patch1 -p1 -b .defaultconf
+%patch2 -p1 -b .lowcap
# fix encoding
for fe in AUTHORS CHANGELOG
@@ -106,6 +86,9 @@ fi
%config(noreplace) %{_sysconfdir}/sysconfig/smartmontools
%changelog
+* Tue Nov 24 2009 Michal Hlavinka <mhlavink at redhat.com> - 1:5.39-1
+- update to 5.39
+
* Tue Nov 24 2009 Michal Hlavinka <mhlavink at redhat.com> - 1:5.38-23
- fix building with autoconf 2.64
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/smartmontools/F-12/sources,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -r1.5 -r1.6
--- sources 10 Mar 2008 12:37:22 -0000 1.5
+++ sources 10 Dec 2009 09:11:57 -0000 1.6
@@ -1 +1 @@
-a282846532ecbd6b4a28072373b3a70b smartmontools-5.38.tar.gz
+63c1b5373a9ef91e9c9becb16e147571 smartmontools-5.39.tar.gz
--- smartmontools-5.37-addrinfo.patch DELETED ---
--- smartmontools-5.38-cloexec.patch DELETED ---
--- smartmontools-5.38-perc.patch DELETED ---
--- smartmontools-5.38-selinux.patch DELETED ---
- Previous message (by thread): rpms/system-config-language/F-12 system-config-language.spec, 1.59, 1.60
- Next message (by thread): rpms/netpbm/devel netpbm-pamtosvg.patch, NONE, 1.1 .cvsignore, 1.60, 1.61 netpbm-time.patch, 1.1, 1.2 netpbm.spec, 1.149, 1.150 sources, 1.64, 1.65
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list