[packages/needrestart] make default config safer (list, not restart)
glen
glen at pld-linux.org
Tue Apr 14 22:35:46 CEST 2015
commit 22554e480879849a21118db5e7af989e2f790919
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Apr 14 23:34:55 2015 +0300
make default config safer (list, not restart)
config.patch | 15 +++++++++++++++
needrestart.spec | 4 +++-
2 files changed, 18 insertions(+), 1 deletion(-)
---
diff --git a/needrestart.spec b/needrestart.spec
index 8fee7c4..e191fe2 100644
--- a/needrestart.spec
+++ b/needrestart.spec
@@ -7,6 +7,7 @@ License: GPL v2
Group: Applications
Source0: https://github.com/liske/needrestart/archive/v%{version}/%{name}-%{version}.tar.gz
# Source0-md5: 21d04f18accdd1fc538b436e2c8dac0c
+Patch0: config.patch
URL: https://fiasko-nw.net/~thomas/tag/needrestart.html
BuildRequires: rpm-perlprov >= 4.1-13
Requires: coreutils
@@ -27,8 +28,9 @@ Features:
- fully integrated into apt/dpkg using hooks
%prep
-%setup -q -c
+%setup -qc
mv %{name}-*/* .
+%patch0 -p1
%{__rm} perl/lib/NeedRestart/UI/Debconf.pm
diff --git a/config.patch b/config.patch
new file mode 100644
index 0000000..b6f7fd5
--- /dev/null
+++ b/config.patch
@@ -0,0 +1,15 @@
+--- needrestart-2.0/ex/needrestart.conf 2015-04-14 22:56:40.000000000 +0300
++++ needrestart-2.0/ex/needrestart.conf 2014-12-03 00:00:40.000000000 +0200
+@@ -29,10 +29,10 @@
+
+ # Disable sending notifications to user sessions running obsolete binaries
+ # using scripts from $nrconf{notify_d}.
+-#$nrconf{sendnotify} = 0;
++$nrconf{sendnotify} = 0;
+
+ # Restart services (l)ist only, (i)nteractive or (a)utomatically.
+-#$nrconf{restart} = 'i';
++$nrconf{restart} = 'l';
+
+ # Use prefered UI package.
+ #$nrconf{ui} = 'NeedRestart::UI::stdio';
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/needrestart.git/commitdiff/22554e480879849a21118db5e7af989e2f790919
More information about the pld-cvs-commit
mailing list