Sisyphus repository
Last update: 19 august 2019 | SRPMs: 17340 | Visits: 14662839
en ru br
ALT Linux repos

Group :: Monitoring
RPM: bootchart

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# sometimes spec file was here: ...

%define section free

Name: bootchart
Version: 0.9
Release: alt2_2jpp5
Summary: Boot Process Performance Visualization
License: GPL
Packager: Eugeny A. Rostovtsev (REAL) <real at>

Group: Monitoring
#BuildRequires(pre): jpackage-utils
BuildRequires(pre): rpm-build-java
BuildRequires(pre): java-devel-default

# Automatically added by buildreq on Mon Dec 29 2008

#BuildRequires: ant apache-commons-cli java-1.6.0-sun-accessibility tzdata

BuildRequires: ant tzdata
BuildRequires: apache-commons-cli

BuildArch: noarch

A tool for performance analysis and visualization of the GNU/Linux boot
process. Resource utilization and process information are collected during
the boot process and are later rendered in a PNG, SVG or EPS encoded chart.

%package javadoc
Summary: Javadoc for bootchart
Group: Development/Documentation

%description javadoc
Javadoc for bootchart.

%package logger
Summary: Boot logging script for bootchart
Group: System/Configuration/Boot and Init
Requires: %name = %version-%release

%define boottitle "Bootchart logging"

%description logger
Boot logging script for bootchart.


# Remove the bundled commons-cli
#rm -rf lib/org/apache/commons/cli lib/org/apache/commons/lang
#export CLASSPATH=$(build-classpath commons-cli ant)
sed -i -e 's/\/var\/log/\/var\/log\/%name/g' src/org/%name/*
sed -i -e 's/\/var\/log/\/var\/log\/%name/' script/%{name}d.conf

mkdir -p %buildroot%_var/log/%name
# jar
install -D -m 644 %name.jar %buildroot%_javadir/%name-%version.jar
ln -s %name-%version.jar %buildroot%_javadir/%name.jar

# script

install -D -m 755 script/%name %buildroot%_bindir/%name

# javadoc

install -d -m 755 %buildroot%_javadocdir/%name-%version
cp -pr javadoc/* %buildroot%_javadocdir/%name-%version
ln -s %name-%version %buildroot%_javadocdir/%name # ghost symlink

# logger

install -D -m 755 script/%{name}d %buildroot%_sbindir/%{name}d
install -D -m 644 script/%{name}d.conf %buildroot%_sysconfdir/%{name}d.conf

sed -i '1s|/sh|/bash|' %buildroot%_sbindir/%{name}d

%post javadoc
rm -f %_javadocdir/%name
ln -s %name-%version %_javadocdir/%name

%post logger
# Add a new grub/lilo entry
if [ -x /sbin/grubby ]; then
       kernel=$(grubby --default-kernel)
       initrd=$(grubby --info=$kernel | sed -n '/^initrd=/{s/^initrd=//;p;q;}')
       [ ! -z $initrd ] && initrd="--initrd=$initrd"
       grubby --remove-kernel TITLE=%boottitle
       grubby --copy-default --add-kernel=$kernel $initrd --args="init=/sbin/%{name}d" --title=%boottitle

%preun logger
# Remove the grub/lilo entry
if [ -x /sbin/grubby ]; then
grubby --remove-kernel TITLE=%boottitle

%doc lib/LICENSE.compress.txt lib/LICENSE.epsgraphics.txt lib/NOTICE.txt

%files javadoc
%doc %_javadocdir/%name-%version
%doc %_javadocdir/%name

%files logger
%doc README.logger
%config(noreplace) %_sysconfdir/%{name}d.conf


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin