File chkrootkit.spec of Package chkrootkit

# spec file for package chkrootkit
# Copyright (c) 2011 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

Name:           chkrootkit
License:        BSD3c(or similar)
Group:          Productivity/Security
Summary:        Used to Check for Symptoms of Installed Root Kits
Version:        0.53
Release:        0
%if 0%{?suse_version} >= 1210
BuildRequires:  glibc-devel-static
Patch0:         chkrootkit-%{version}.patch
Patch1:         chkrootkit-utmpchk.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

This is a set of tools that detect rootkit (a program that hides the
presence of attackers) symptoms on a system. Rootkits can hide using
kernel modules, but they always leave some small traces that can be
detected with this program. However, it is always recommended to use
this program from a rescue system or a system with a similar purpose.

%setup -q
%patch0 -p1
%patch1 -p1

make OPTFLAGS="$RPM_OPT_FLAGS -Os" %{?_smp_mflags}

mkdir -p $RPM_BUILD_ROOT/sbin/
install -c -m 755 chklastlog chkwtmp ifpromisc chkproc chkdirs chkrootkit strings-static chkutmp $RPM_BUILD_ROOT/sbin/

%defattr(-, root, root)

openSUSE Build Service is sponsored by