# # spec file for package kdump (Version 0.6.2) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Url: http://freehg.org/u/bwalle/kdump/ Name: kdump License: GPL v2 or later Version: 0.6.2 Release: 1 Requires: curl openssh makedumpfile Summary: Script for kdump Group: System/Kernel BuildRequires: libesmtp-devel BuildRequires: gcc-c++ libcurl-devel libelf0-devel zlib-devel BuildRequires: asciidoc cmake libxslt %if %suse_version > 1100 BuildRequires: libssh2-devel %endif PreReq: %insserv_prereq %fillup_prereq mkinitrd 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 Requires: kexec-tools PreReq: coreutils sed %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 %prep %setup %build mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} .. make cd - %install cd build make DESTDIR=$RPM_BUILD_ROOT install cd - # symlink for init script mkdir -p $RPM_BUILD_ROOT/sbin ln -s /etc/init.d/kdump $RPM_BUILD_ROOT/sbin/rckdump %post %{fillup_and_insserv -n kdump kdump} /sbin/mkinitrd_setup %preun echo "Stopping kexec ..." %stop_on_removal kdump %postun %restart_on_update kdump %insserv_cleanup /sbin/mkinitrd_setup %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc ChangeLog COPYING README NEWS %{_sbindir}/kdumptool %{_sbindir}/mkdumprd %{_mandir}/man5/kdump.5.gz %{_mandir}/man7/kdump.7.gz %{_mandir}/man8/kdumptool.8.gz %{_mandir}/man8/mkdumprd.8.gz /sbin/rckdump %{_sysconfdir}/init.d/kdump /var/adm/fillup-templates/sysconfig.kdump /lib/mkinitrd/scripts/*-kdump.sh %config %{_sysconfdir}/udev/rules.d/70-kdump.rules %changelog * Tue Aug 12 2008 bwalle@suse.de - update to 0.6.2 o correct init script: remove remote FS dependency and also add "Should-Stop" * Sat Aug 09 2008 bwalle@suse.de - update to 0.6.1 o add kdump(7) manual page * Thu Aug 07 2008 bwalle@suse.de - update to 0.6.0 o add vmcore(5) manual page o implement email support - use PreReq for mkinitrd instead of BuildRequires * Tue Aug 05 2008 bwalle@suse.de - Don't report ELF32 as "invalid ELF class" * Fri Aug 01 2008 bwalle@suse.de - update to 0.5.5 o make dependency to libssh2 optional * Fri Aug 01 2008 bwalle@suse.de - update to 0.5.4 o always create empty ${tmp_mnt}/etc/fstab.kdump o change execution state to 'boot' o use UUID for fstab.kdump o open a shell if something fails and KDUMP_CONTINUE_ON_ERROR is true o don't include JFS to initrd o don't add -s '' parameter to mkinitrd call if the boot splash script is not available o handle more programs in $KDUMP_REQUIRED_PROGRAMS correct o move original /etc/fstab back - add %%config to udev rule * Tue Jul 29 2008 bwalle@suse.de - update to 0.5.3 o don't exit with error code when the dump directory does not yet exist in the 'delete_dumps' command o fix syntax error in init/boot-kdump.sh * Tue Jul 29 2008 bwalle@suse.de - call mkinitrd_setup in %%post and %%postun * Mon Jul 28 2008 bwalle@suse.de - update to 0.5.2 o copy required programs (KDUMP_REQUIRED_PROGRAMS) in initrd o mount dump partition and boot partition in initrd o don't exit with error code when the dump directory does not yet exist in the 'delete_dumps' command * 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 * 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 * 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) * Mon May 26 2008 bwalle@suse.de - fix load of kdump kernel when KDUMP_KERNELVER="kdump" on ppc64 (bnc#394216) * Tue May 20 2008 bwalle@suse.de - fix typo when checking the result of kdump_kernel_loaded * 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 * Tue May 13 2008 bwalle@suse.de - set panic_on_unrecovered_nmi as default (bnc#388736) * Fri Apr 18 2008 bwalle@suse.de - clarified README that memory sizes are only recommended values (bnc#380577) * 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 - don't add initrd blink stuff for openSUSE <= 10.2 because there was no modular initrd script * Tue Jan 08 2008 bwalle@suse.de - 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 * Wed Dec 12 2007 bwalle@suse.de - 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 * Mon Nov 12 2007 tiwai@suse.de - fix PreReq for insserv and fillup * Tue Nov 06 2007 bwalle@suse.de - add "coreutils" and "sed" to PreReq to make rpmlint happy * Thu Oct 11 2007 bwalle@suse.de - 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 * Mon Sep 03 2007 bwalle@suse.de - don't use locking for NFS (#307178) * Wed Aug 29 2007 bwalle@suse.de - added Recommends: makedumpfile * Mon Aug 13 2007 bwalle@suse.de - run bootloader after modifying initrd * Fri Jul 27 2007 bwalle@suse.de - update to 0.2.4 (#302257) o implement KDUMP_KEEP_OLD_DUMPS = -2 for deleting all dumps (except the latest, which is saved afterwards * Mon Jul 02 2007 tiwai@suse.de - changed from libelf to libelf0-devel in buildrequires. * Mon Jun 18 2007 bwalle@suse.de - 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 * Mon Jun 11 2007 bwalle@suse.de - update to 0.2.2 o add read-debuglink * Mon Jun 11 2007 bwalle@suse.de - update to 0.2.1 o add manpages for all programs * Mon May 28 2007 bwalle@suse.de - first version