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 http://bugs.opensuse.org/
#



Name:           chkrootkit
Url:            http://www.chkrootkit.org/
License:        BSD3c(or similar)
Group:          Productivity/Security
Summary:        Used to Check for Symptoms of Installed Root Kits
Version:        0.49
Release:        5
%if 0%{?suse_version} >= 1210
BuildRequires:  glibc-devel-static
%endif
Source0:        ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit-%{version}.tar.gz
Patch0:         chkrootkit-%{version}.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
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.

%prep
%setup -q
%patch0 -p1

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

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

%files
%defattr(-, root, root)
%doc COPYRIGHT README README.chklastlog README.chkwtmp ACKNOWLEDGMENTS
/sbin/*

%changelog
openSUSE Build Service is sponsored by