]> git.pld-linux.org Git - packages/needrestart.git/commitdiff
make default config safer (list, not restart)
authorElan Ruusamäe <glen@delfi.ee>
Tue, 14 Apr 2015 20:34:55 +0000 (23:34 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 14 Apr 2015 20:34:55 +0000 (23:34 +0300)
config.patch [new file with mode: 0644]
needrestart.spec

diff --git a/config.patch b/config.patch
new file mode 100644 (file)
index 0000000..b6f7fd5
--- /dev/null
@@ -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';
index 8fee7c462782706f7d4c4787be848bd0cd386b53..e191fe2fc232b1e3d3dc4bf464630f037717f18c 100644 (file)
@@ -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
 
This page took 0.089202 seconds and 4 git commands to generate.