File collectl.spec of Package collectl

# spec file for package collectl (Version 2.6.4)
# 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

# norootforbuild

Name:           collectl
License:        Artistic License; GPL v2 or later
Group:          System/Monitoring
AutoReqProv:    on
Version:        2.6.4
Release:        2
Summary:        Collects data that describes the current system status.
Source:         %name-%version-1.src.tar.bz2
Patch0:         %name-%version-cleanup.patch
Patch1:         %name-%version-share_dir.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

Unlike most monitoring tools that either focus on a small set of
statistics, format their output in only one way, run either
interatively or as a daemon but not both, collectl tries to do it all.


%setup -q -n %name-%version-1


install -m 755 -D %buildroot%_sbindir/collectl
install -m 755 -D readS %buildroot%_sbindir/collectl-readS
install -m 644 -D collectl.conf %buildroot/%_sysconfdir/collectl.conf
install -D %buildroot%_datadir/%name/
install -D %buildroot%_datadir/%name/
install -D %buildroot%_datadir/%name/
install -D %buildroot%_datadir/%name/
install -m 755 -D initd/collectl-suse %buildroot/%_sysconfdir/init.d/collectl
ln -s /etc/init.d/collectl %buildroot%_sbindir/rccollectl
install -m 644 -D man1/collectl.1 %buildroot%_mandir/man1/collectl.1 

%stop_on_removal collectl

%restart_on_update collectl

rm -rf  %{buildroot}

%config(noreplace) %_sysconfdir/collectl.conf

* Thu Jul 03 2008
- Initial package, Version 2.6.4