]> git.pld-linux.org Git - packages/bootchart.git/commitdiff
- R: for -logger
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 5 Dec 2006 21:34:33 +0000 (21:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- ignore errors from grubby
- add -bash.patch

Changed files:
    bootchart.spec -> 1.5

bootchart.spec

index 17a13ac269e24c8f89789f8c3ec812f54d819b6c..6c6ba5a38e875467ce845a0bebfa1aaeae81285c 100644 (file)
@@ -2,12 +2,13 @@ Summary:      Boot Process Performance Visualization
 Summary(pl):   Wizualizacja wydajno¶ci procesu startu systemu
 Name:          bootchart
 Version:       0.9
-Release:       1
+Release:       1.2
 Epoch:         0
 License:       GPL
 Group:         Base
 Source0:       http://dl.sourceforge.net/bootchart/%{name}-%{version}.tar.bz2
 # Source0-md5: 4be91177d19069e21beeb106f2f77dff
+Patch0:                %{name}-bash.patch
 URL:           http://www.bootchart.org/
 BuildRequires: ant
 BuildRequires: jakarta-commons-cli >= 0:1.0
@@ -48,6 +49,11 @@ Dokumentacja Javadoc dla bootcharta.
 Summary:       Boot logging script for %{name}
 Summary(pl):   Skrypt loguj±cy proces startu dla bootcharta
 Group:         Base
+Requires:      coreutils
+Requires:      grep
+Requires:      mktemp
+Requires:      mount
+Requires:      sed
 
 %description logger
 Boot logging script for %{name}.
@@ -57,6 +63,7 @@ Skrypt loguj
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 # Remove the bundled commons-cli
@@ -104,13 +111,13 @@ if [ -x /sbin/grubby ]; then
        initrd=$(/sbin/grubby --info=$kernel | sed -n '/^initrd=/{s/^initrd=//;p;q;}')
        [ ! -z $initrd ] && initrd="--initrd=$initrd"
        /sbin/grubby --remove-kernel TITLE=%{boottitle}
-       /sbin/grubby --copy-default --add-kernel=$kernel $initrd --args="init=/sbin/bootchartd" --title=%{boottitle}
+       /sbin/grubby --copy-default --add-kernel=$kernel $initrd --args="init=/sbin/bootchartd" --title=%{boottitle} || :
 fi
 
 %preun logger
 # Remove the grub/lilo entry
 if [ -x /sbin/grubby ]; then
-       /sbin/grubby --remove-kernel TITLE=%{boottitle}
+       /sbin/grubby --remove-kernel TITLE=%{boottitle} || :
 fi
 
 %files
This page took 0.070547 seconds and 4 git commands to generate.