Репозитории ALT
5.1: | 0.49-alt1 |
4.1: | 0.48-alt1 |
4.0: | 0.45-alt1 |
3.0: | 0.45-alt1 |
Группа :: Мониторинг
Пакет: chkrootkit
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
# Conditional switches (ie. use with rpmbuild --rebuild):
# --with glibc Compile chkrootkit against glibc-static
%def_without glibc
%if_with glibc
Name: chkrootkit-glibc
%else
Name: chkrootkit
%endif
Version: 0.45
Release: alt1
Summary: Check rootkits
License: BSD
Group: Monitoring
URL: http://www.chkrootkit.org/
Source0: ftp://ftp.pangeia.com.br/pub/seg/pac/%name-%version.tar.gz
Patch0: chkrootkit-0.45-alt-libpath.patch
Patch2: chkrootkit-0.45-alt-ifpromisc.patch
Patch3: strings.c.patch
Requires: binutils, coreutils, findutils, sed, gawk, grep, net-tools, procps, crontabs
%if_with glibc
BuildPreReq: glibc-devel-static
%else
BuildPreReq: dietlibc
%endif
%define cron_daily %_sysconfdir/cron.daily
Summary(ru_RU.KOI8-R): Поиск троянских коней и закладок в программах
%description
Chkrootkit is a tool to locally check for signs of a rootkit.
%description -l ru_RU.KOI8-R
Chkrootkit является набором утилит для поиска троянских коней и закладок
по набору сигнатур в программах на локальном компьютере.
%prep
%setup -q
%patch0 -p1 -b .libpath
%patch2 -p1
%patch3
%build
%if_with glibc
make CFLAGS="-DHAVE_LASTLOG_H -DLASTLOG_FILENAME='\"/var/log/lastlog\"' -DWTEMP_FILENAME='\"/var/log/wtmp\"'" LDFLAGS=-static
%else
make CC="diet gcc" CFLAGS="-DHAVE_LASTLOG_H -DLASTLOG_FILENAME='\"/var/log/lastlog\"' -DWTEMP_FILENAME='\"/var/log/wtmp\"' -Os -s -static" LDFLAGS=-static
%endif
%install
install -d %buildroot%_sbindir
install -d %buildroot%_libdir/%name
install -p chkrootkit %buildroot%_sbindir/
install -p check_wtmpx chklastlog chkproc chkwtmp ifpromisc strings-static %buildroot%_libdir/%name/
mkdir -p %buildroot%cron_daily
cat > %buildroot%cron_daily/%name << __EOF__
%_sbindir/%name -q
__EOF__
%files
%doc README* COPYRIGHT
%_sbindir/*
%_libdir/%name
%attr(700,-,-) %cron_daily/%name
%changelog
…
Полный changelog можно просмотреть здесь
# --with glibc Compile chkrootkit against glibc-static
%def_without glibc
%if_with glibc
Name: chkrootkit-glibc
%else
Name: chkrootkit
%endif
Version: 0.45
Release: alt1
Summary: Check rootkits
License: BSD
Group: Monitoring
URL: http://www.chkrootkit.org/
Source0: ftp://ftp.pangeia.com.br/pub/seg/pac/%name-%version.tar.gz
Patch0: chkrootkit-0.45-alt-libpath.patch
Patch2: chkrootkit-0.45-alt-ifpromisc.patch
Patch3: strings.c.patch
Requires: binutils, coreutils, findutils, sed, gawk, grep, net-tools, procps, crontabs
%if_with glibc
BuildPreReq: glibc-devel-static
%else
BuildPreReq: dietlibc
%endif
%define cron_daily %_sysconfdir/cron.daily
Summary(ru_RU.KOI8-R): Поиск троянских коней и закладок в программах
%description
Chkrootkit is a tool to locally check for signs of a rootkit.
%description -l ru_RU.KOI8-R
Chkrootkit является набором утилит для поиска троянских коней и закладок
по набору сигнатур в программах на локальном компьютере.
%prep
%setup -q
%patch0 -p1 -b .libpath
%patch2 -p1
%patch3
%build
%if_with glibc
make CFLAGS="-DHAVE_LASTLOG_H -DLASTLOG_FILENAME='\"/var/log/lastlog\"' -DWTEMP_FILENAME='\"/var/log/wtmp\"'" LDFLAGS=-static
%else
make CC="diet gcc" CFLAGS="-DHAVE_LASTLOG_H -DLASTLOG_FILENAME='\"/var/log/lastlog\"' -DWTEMP_FILENAME='\"/var/log/wtmp\"' -Os -s -static" LDFLAGS=-static
%endif
%install
install -d %buildroot%_sbindir
install -d %buildroot%_libdir/%name
install -p chkrootkit %buildroot%_sbindir/
install -p check_wtmpx chklastlog chkproc chkwtmp ifpromisc strings-static %buildroot%_libdir/%name/
mkdir -p %buildroot%cron_daily
cat > %buildroot%cron_daily/%name << __EOF__
%_sbindir/%name -q
__EOF__
%files
%doc README* COPYRIGHT
%_sbindir/*
%_libdir/%name
%attr(700,-,-) %cron_daily/%name
%changelog
…
Полный changelog можно просмотреть здесь