2007-10-14 04:35:25 +02:00
|
|
|
#
|
2008-07-25 01:08:46 +02:00
|
|
|
# spec file for package kdump (Version 0.5.1)
|
2007-10-14 04:35:25 +02:00
|
|
|
#
|
2008-01-10 01:55:43 +01:00
|
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-10-14 04:35:25 +02:00
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-02-21 01:55:05 +01:00
|
|
|
|
2007-10-14 04:35:25 +02:00
|
|
|
Name: kdump
|
|
|
|
License: GPL v2 or later
|
2008-07-25 01:08:46 +02:00
|
|
|
Version: 0.5.1
|
2008-06-23 01:02:01 +02:00
|
|
|
Release: 1
|
2008-07-25 01:08:46 +02:00
|
|
|
Requires: curl openssh makedumpfile
|
2007-10-14 04:35:25 +02:00
|
|
|
Summary: Script for kdump
|
|
|
|
Group: System/Kernel
|
|
|
|
Requires(post): mkinitrd
|
2008-07-25 01:08:46 +02:00
|
|
|
BuildRequires: gcc-c++ libcurl-devel libelf0-devel libssh2-devel zlib-devel
|
|
|
|
BuildRequires: asciidoc cmake libxslt mkinitrd
|
2007-11-12 21:51:51 +01:00
|
|
|
PreReq: %insserv_prereq %fillup_prereq
|
2007-10-14 04:35:25 +02:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
# rename "kdump-helpers" (10.3) -> "kdump" (11.0/SP2)
|
|
|
|
Provides: kdump-helpers = 0.2.4
|
|
|
|
Obsoletes: kdump-helpers <= 0.2.4
|
|
|
|
# update should detect the split-off from kexec-tools
|
|
|
|
Provides: kexec-tools:/etc/init.d/kdump
|
2008-01-10 01:55:43 +01:00
|
|
|
Requires: kexec-tools
|
2007-11-06 22:27:49 +01:00
|
|
|
PreReq: coreutils sed
|
2007-10-14 04:35:25 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
kdump is a package that includes several scripts for kdump, including
|
|
|
|
the init script /etc/init.d/kdump and the configuration file for kdump.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Bernhard Walle <bwalle@suse.de>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup
|
|
|
|
|
|
|
|
%build
|
2008-07-25 01:08:46 +02:00
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} ..
|
|
|
|
make
|
|
|
|
cd -
|
2007-10-14 04:35:25 +02:00
|
|
|
|
|
|
|
%install
|
2008-07-25 01:08:46 +02:00
|
|
|
cd build
|
2007-10-14 04:35:25 +02:00
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
2008-07-25 01:08:46 +02:00
|
|
|
cd -
|
2007-10-14 04:35:25 +02:00
|
|
|
# symlink for init script
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/sbin
|
|
|
|
ln -s /etc/init.d/kdump $RPM_BUILD_ROOT/sbin/rckdump
|
|
|
|
|
|
|
|
%post
|
2008-07-25 01:08:46 +02:00
|
|
|
%{fillup_and_insserv -n kdump kdump}
|
2007-10-14 04:35:25 +02:00
|
|
|
|
|
|
|
%preun
|
2008-07-25 01:08:46 +02:00
|
|
|
echo "Stopping kexec ..."
|
|
|
|
%stop_on_removal kdump
|
2007-10-14 04:35:25 +02:00
|
|
|
|
|
|
|
%postun
|
2008-07-25 01:08:46 +02:00
|
|
|
%restart_on_update kdump
|
|
|
|
%insserv_cleanup
|
2007-10-14 04:35:25 +02:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2008-07-25 01:08:46 +02:00
|
|
|
%doc ChangeLog COPYING README NEWS
|
|
|
|
%{_sbindir}/kdumptool
|
|
|
|
%{_sbindir}/mkdumprd
|
|
|
|
%{_mandir}/man5/kdump.5.gz
|
|
|
|
%{_mandir}/man8/kdumptool.8.gz
|
|
|
|
%{_mandir}/man8/mkdumprd.8.gz
|
2007-10-14 04:35:25 +02:00
|
|
|
/sbin/rckdump
|
2008-07-25 01:08:46 +02:00
|
|
|
%{_sysconfdir}/init.d/kdump
|
2007-10-14 04:35:25 +02:00
|
|
|
/var/adm/fillup-templates/sysconfig.kdump
|
2008-07-25 01:08:46 +02:00
|
|
|
/lib/mkinitrd/scripts/*-kdump.sh
|
2008-05-20 02:49:38 +02:00
|
|
|
%{_sysconfdir}/udev/rules.d/70-kdump.rules
|
2007-12-12 21:11:02 +01:00
|
|
|
|
2007-10-14 04:35:25 +02:00
|
|
|
%changelog
|
2008-07-25 01:08:46 +02:00
|
|
|
* Fri Jul 25 2008 bwalle@suse.de
|
|
|
|
- update to 0.5.1
|
|
|
|
o add 'print_target' sub command
|
|
|
|
o implement SSH public/private key authentication
|
|
|
|
* Thu Jul 24 2008 bwalle@suse.de
|
|
|
|
- update to 0.5.0 (FATE #303043)
|
|
|
|
o initrd-based dumping
|
|
|
|
o basically rewrite
|
2008-06-23 01:02:01 +02:00
|
|
|
* Fri Jun 13 2008 bwalle@suse.de
|
|
|
|
- update to 0.3.4
|
|
|
|
o try also $(uname -i) to find the makedumpfile.config in
|
|
|
|
/usr/src/linux-${version}-obj/${arch}/${flavour}
|
|
|
|
o filter "mem" kernel parameter before loading the kdump kernel
|
|
|
|
(bnc#393324)
|
|
|
|
- delete kdump-clarify-README: merged in new version
|
|
|
|
- delete kdump-default-nmi: merged in new version
|
|
|
|
- delete kdump-reload-memory-hotplug: merged in new version
|
|
|
|
- delete kdump-fix-kernel-detection: merged in new version
|
2008-06-02 10:31:23 +02:00
|
|
|
* Sun Jun 01 2008 bwalle@suse.de
|
|
|
|
- set KDUMP_KERNELVER="" on i386 instead of KDUMP_KERNELVER="kdump"
|
|
|
|
(with "kdump", the kdump kernel cannot be loaded without manually
|
|
|
|
editing the configuration file (bnc#396221)
|
2008-05-26 19:09:59 +02:00
|
|
|
* Mon May 26 2008 bwalle@suse.de
|
|
|
|
- fix load of kdump kernel when KDUMP_KERNELVER="kdump" on ppc64
|
|
|
|
(bnc#394216)
|
2008-05-22 01:02:58 +02:00
|
|
|
* Tue May 20 2008 bwalle@suse.de
|
|
|
|
- fix typo when checking the result of kdump_kernel_loaded
|
2008-05-20 02:49:38 +02:00
|
|
|
* Mon May 19 2008 bwalle@suse.de
|
|
|
|
- implement "try-restart" command and use that implementation also
|
|
|
|
for "condrestart"
|
|
|
|
- add udev rules to reload kdump configuration on memory or CPU
|
|
|
|
hotplug (bnc#389658)
|
|
|
|
- set panic_on_unrecovered_nmi only when it exists
|
2008-05-16 14:28:01 +02:00
|
|
|
* Tue May 13 2008 bwalle@suse.de
|
|
|
|
- set panic_on_unrecovered_nmi as default (bnc#388736)
|
2008-04-20 16:38:21 +02:00
|
|
|
* Fri Apr 18 2008 bwalle@suse.de
|
|
|
|
- clarified README that memory sizes are only recommended values
|
|
|
|
(bnc#380577)
|
2008-02-21 01:55:05 +01:00
|
|
|
* Wed Feb 20 2008 bwalle@suse.de
|
|
|
|
- use "-o NumberOfPasswordPrompts=0 -o CheckHostIP=no -o
|
|
|
|
StrictHostKeyChecking=no" when calling ssh because the user may
|
|
|
|
not be able to confirm the questions (bnc#355973)
|
|
|
|
- require "$network" in init script so than when runlevel 3 is set
|
|
|
|
in /etc/sysconfig/kdump, network is available to the kdump
|
|
|
|
scripts (bnc#293171)
|
|
|
|
- update version to 0.2.3
|
|
|
|
* Sun Jan 13 2008 bwalle@suse.de
|
2008-01-14 10:45:35 +01:00
|
|
|
- don't add initrd blink stuff for openSUSE <= 10.2 because
|
|
|
|
there was no modular initrd script
|
2008-02-21 01:55:05 +01:00
|
|
|
* Tue Jan 08 2008 bwalle@suse.de
|
2008-01-10 01:55:43 +01:00
|
|
|
- log the result of kexec call to avoid the impression that loading
|
|
|
|
kdump kernel succeeded even if kexec terminated non-zero (350289)
|
|
|
|
- don't set kernel.panic_on_oops to 1 if kexec failed (350289)
|
|
|
|
- updated version to 0.3.2
|
|
|
|
- require kexec-tools
|
2008-02-21 01:55:05 +01:00
|
|
|
* Wed Dec 12 2007 bwalle@suse.de
|
2007-12-12 21:11:02 +01:00
|
|
|
- check the disk space afterwards if makedumpfile is used since
|
|
|
|
it's not possible to know the dump image size in advance
|
|
|
|
- updated version to 0.3.1
|
2008-02-21 01:55:05 +01:00
|
|
|
* Mon Nov 12 2007 tiwai@suse.de
|
2007-11-12 21:51:51 +01:00
|
|
|
- fix PreReq for insserv and fillup
|
2008-02-21 01:55:05 +01:00
|
|
|
* Tue Nov 06 2007 bwalle@suse.de
|
2007-11-06 22:27:49 +01:00
|
|
|
- add "coreutils" and "sed" to PreReq to make rpmlint happy
|
2008-02-21 01:55:05 +01:00
|
|
|
* Thu Oct 11 2007 bwalle@suse.de
|
2007-10-14 04:35:25 +02:00
|
|
|
- rename kdump-helpers to kdump
|
|
|
|
- added GDB helpers, init script and sysconfig file
|
|
|
|
(formerly all in the kexec-tools package)
|
|
|
|
- added README (formerly README.SUSE in the kexec-tools package)
|
|
|
|
- fix compile warning in src/read-debuglink.c
|
|
|
|
- log save message to syslog if $KDUMP_VERBOSE & 1 > 0 (#331118)
|
|
|
|
- improve algorithm for finding the kdump kernel
|
|
|
|
- updated version to 0.3.0
|
2008-02-21 01:55:05 +01:00
|
|
|
* Mon Sep 03 2007 bwalle@suse.de
|
2007-10-14 04:35:25 +02:00
|
|
|
- don't use locking for NFS (#307178)
|
2008-02-21 01:55:05 +01:00
|
|
|
* Wed Aug 29 2007 bwalle@suse.de
|
2007-10-14 04:35:25 +02:00
|
|
|
- added Recommends: makedumpfile
|
2008-02-21 01:55:05 +01:00
|
|
|
* Mon Aug 13 2007 bwalle@suse.de
|
2007-10-14 04:35:25 +02:00
|
|
|
- run bootloader after modifying initrd
|
2008-02-21 01:55:05 +01:00
|
|
|
* Fri Jul 27 2007 bwalle@suse.de
|
2007-10-14 04:35:25 +02:00
|
|
|
- update to 0.2.4 (#302257)
|
|
|
|
o implement KDUMP_KEEP_OLD_DUMPS = -2 for deleting all dumps
|
|
|
|
(except the latest, which is saved afterwards
|
2008-02-21 01:55:05 +01:00
|
|
|
* Mon Jul 02 2007 tiwai@suse.de
|
2007-10-14 04:35:25 +02:00
|
|
|
- changed from libelf to libelf0-devel in buildrequires.
|
2008-02-21 01:55:05 +01:00
|
|
|
* Mon Jun 18 2007 bwalle@suse.de
|
2007-10-14 04:35:25 +02:00
|
|
|
- update to 0.2.3
|
|
|
|
o fixed read-debuglink
|
|
|
|
o changed NFS URL, no separation between share and directory
|
|
|
|
o added kdump-led_blink to blink LEDs (for broken VGA console)
|
|
|
|
o added mkinitrd script (for blink) and /sbin/mkinitrd to
|
|
|
|
%%postin and %%postun
|
2008-02-21 01:55:05 +01:00
|
|
|
* Mon Jun 11 2007 bwalle@suse.de
|
2007-10-14 04:35:25 +02:00
|
|
|
- update to 0.2.2
|
|
|
|
o add read-debuglink
|
2008-02-21 01:55:05 +01:00
|
|
|
* Mon Jun 11 2007 bwalle@suse.de
|
2007-10-14 04:35:25 +02:00
|
|
|
- update to 0.2.1
|
|
|
|
o add manpages for all programs
|
2008-02-21 01:55:05 +01:00
|
|
|
* Mon May 28 2007 bwalle@suse.de
|
2007-10-14 04:35:25 +02:00
|
|
|
- first version
|