File killerd.spec of Package killerd

# spec file for package killerd (Version 1.1 )
# 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:           killerd
License:        GPL v2 or later
Group:          System/Daemons
AutoReqProv:    on
Version:        1.1 
Release:        100
Summary:        Daemon for automatic killing of login shells
Source:         %{name}-%{version}.tar.bz2
Source1:        killerd
Patch:          %{name}-%{version}-makefile.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

KillerD is a simple daemon for automatic killing of login shells with
idle time exceeding given limits, runaway processes and other system
hogs. Almost everything can be easily configured.

    Martin Mares <>

%setup -q


mkdir -p $RPM_BUILD_ROOT/%{_sbindir}
mkdir -p $RPM_BUILD_ROOT/etc/init.d
make install SBINDIR=$RPM_BUILD_ROOT/%{_sbindir} CONFIGDIR=$RPM_BUILD_ROOT/%{_sysconfdir}
install -m 755 %{S:1} $RPM_BUILD_ROOT/etc/init.d/killerd
ln -sf ../../etc/init.d/killerd       $RPM_BUILD_ROOT/%{_sbindir}/rckillerd

rm -rf "$RPM_BUILD_ROOT"

%doc ChangeLog
%config %{_sysconfdir}/killerd.conf
%config /etc/init.d/killerd

* Wed Jan 17 2007
- update to 1.1
  * killerd.c (init_HZ): Use sysconf(_SC_CLK_TCK) if available,
  this seems to be the most reliable method on recent glibc's.
  * killerd.conf: Better comments for all settings.
  * killerd.c: Clarified license message.
  * killerd.c: Users can be excluded if their UID is less
  than a configured limit.
  * killerd.c: Unified processing of wildcard entries. Entries with
  no names always serve as defaults, special treatment of *'s
  is gone.
  * killerd.c: (warn_user): Avoid unlimited retrying if the user's
  terminal is XOFF'ed.
* Tue Jan 09 2007
- package created (initial version 1.0)