rpms/smartmontools/devel smartmontools-5.38-lowcap.patch, 1.7, 1.8 smartmontools.spec, 1.63, 1.64
Michal Hlavinka
mhlavink at fedoraproject.org
Mon Oct 12 15:07:07 UTC 2009
- Previous message: rpms/mod_fcgid/devel mod_fcgid-2.3.4-fixconf-shellbang.patch, NONE, 1.1 .cvsignore, 1.5, 1.6 fastcgi.te, 1.7, 1.8 fcgid.conf, 1.4, 1.5 mod_fcgid-2.1-README.RPM, 1.2, 1.3 mod_fcgid-2.1-README.SELinux, 1.5, 1.6 mod_fcgid.spec, 1.21, 1.22 sources, 1.6, 1.7 configuration.htm, 1.3, NONE doc.htm, 1.3, NONE
- Next message: rpms/icecream/devel icecream-fix-createenv-when-ldconfig-fails.patch, NONE, 1.1 icecream.spec, 1.24, 1.25 icecream-0.9.3-fix-gcc44-ftbfs.patch, 1.1, NONE icecream-0.9.3-fix-perms-of-cache.patch, 1.1, NONE icecream-0.9.3-tighten-security.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: mhlavink
Update of /cvs/extras/rpms/smartmontools/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv2000
Modified Files:
smartmontools-5.38-lowcap.patch smartmontools.spec
Log Message:
* Mon Oct 12 2009 Michal Hlavinka <mhlavink at redhat.com> - 1:5.38-21
- warn about disabled mail only if capabilities are enabled
smartmontools-5.38-lowcap.patch:
Makefile.am | 2 -
configure.in | 34 +++++++++++++++++++++++++++++++++
smartd.8.in | 6 +++++
smartd.cpp | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
4 files changed, 99 insertions(+), 3 deletions(-)
Index: smartmontools-5.38-lowcap.patch
===================================================================
RCS file: /cvs/extras/rpms/smartmontools/devel/smartmontools-5.38-lowcap.patch,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -p -r1.7 -r1.8
--- smartmontools-5.38-lowcap.patch 9 Oct 2009 09:02:24 -0000 1.7
+++ smartmontools-5.38-lowcap.patch 12 Oct 2009 15:07:07 -0000 1.8
@@ -1,6 +1,6 @@
diff -up smartmontools-5.38/configure.in.lowcap smartmontools-5.38/configure.in
---- smartmontools-5.38/configure.in.lowcap 2009-10-09 10:19:22.395700024 +0200
-+++ smartmontools-5.38/configure.in 2009-10-09 10:19:22.431698988 +0200
+--- 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
AC_DEFINE(WITH_SELINUX, [1], [Define to 1 if SELinux support is enabled])
fi
@@ -44,7 +44,7 @@ diff -up smartmontools-5.38/configure.in
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-09 10:19:22.434699065 +0200
++++ smartmontools-5.38/Makefile.am 2009-10-12 17:00:53.896678618 +0200
@@ -35,7 +35,7 @@ smartd_SOURCES = smartd.cpp \
utility.cpp \
utility.h
@@ -56,7 +56,7 @@ diff -up smartmontools-5.38/Makefile.am.
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-09 10:19:22.439699030 +0200
++++ 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:
to perform quick and simple checks without a configuration file.
@@ -71,8 +71,8 @@ diff -up smartmontools-5.38/smartd.8.in.
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-09 10:19:22.312699527 +0200
-+++ smartmontools-5.38/smartd.cpp 2009-10-09 10:43:45.294698988 +0200
+--- 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
#include <io.h> // setmode()
#endif // __CYGWIN__
@@ -119,7 +119,7 @@ diff -up smartmontools-5.38/smartd.cpp.l
+#ifdef HAVE_LIBCAP_NG
+ PrintOut(LOG_INFO," -C, --usecapabilities\n");
+ PrintOut(LOG_INFO," Use possix capabilities (EXPERIMENTAL).\n"
-+ " Warning: Mail notification does not work when used.\n");
++ " Warning: Mail notification does not work when used.\n\n");
+#endif
#ifdef _WIN32
PrintOut(LOG_INFO," --service\n");
@@ -183,20 +183,23 @@ diff -up smartmontools-5.38/smartd.cpp.l
// the main loop of the code
while (1){
-@@ -4482,7 +4527,15 @@ static int smartd_main(int argc, char **
+@@ -4482,7 +4527,18 @@ static int smartd_main(int argc, char **
PrintTestSchedule(ATAandSCSIdevlist);
EXIT(0);
}
-
++
+#ifdef HAVE_LIBCAP_NG
-+ for(int i=numdevata+numdevscsi; i>1; i--) {
-+ if (ATAandSCSIdevlist[i-1]->mailwarn) {
-+ PrintOut(LOG_WARNING,"Mail can't be enabled together with --usecapabilities. All mail will be suppressed.\n");
-+ break;
-+ }
++ 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");
++ break;
++ }
++ }
+ }
-+
+#endif
++
// reset signal
caughtsigHUP=0;
}
Index: smartmontools.spec
===================================================================
RCS file: /cvs/extras/rpms/smartmontools/devel/smartmontools.spec,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -p -r1.63 -r1.64
--- smartmontools.spec 9 Oct 2009 18:09:53 -0000 1.63
+++ smartmontools.spec 12 Oct 2009 15:07:07 -0000 1.64
@@ -1,7 +1,7 @@
Summary: Tools for monitoring SMART capable hard disks
Name: smartmontools
Version: 5.38
-Release: 20%{?dist}
+Release: 21%{?dist}
Epoch: 1
Group: System Environment/Base
License: GPLv2+
@@ -79,6 +79,9 @@ fi
%config(noreplace) %{_sysconfdir}/sysconfig/smartmontools
%changelog
+* Mon Oct 12 2009 Michal Hlavinka <mhlavink at redhat.com> - 1:5.38-21
+- warn about disabled mail only if capabilities are enabled
+
* Fri Oct 09 2009 Michal Hlavinka <mhlavink at redhat.com> - 1:5.38-20
- fix init script for case when no action was specified
- Previous message: rpms/mod_fcgid/devel mod_fcgid-2.3.4-fixconf-shellbang.patch, NONE, 1.1 .cvsignore, 1.5, 1.6 fastcgi.te, 1.7, 1.8 fcgid.conf, 1.4, 1.5 mod_fcgid-2.1-README.RPM, 1.2, 1.3 mod_fcgid-2.1-README.SELinux, 1.5, 1.6 mod_fcgid.spec, 1.21, 1.22 sources, 1.6, 1.7 configuration.htm, 1.3, NONE doc.htm, 1.3, NONE
- Next message: rpms/icecream/devel icecream-fix-createenv-when-ldconfig-fails.patch, NONE, 1.1 icecream.spec, 1.24, 1.25 icecream-0.9.3-fix-gcc44-ftbfs.patch, 1.1, NONE icecream-0.9.3-fix-perms-of-cache.patch, 1.1, NONE icecream-0.9.3-tighten-security.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list