Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37509957
en ru br
Репозитории ALT
S:1.3.1-alt3
5.1: 1.2.4-alt2
4.1: 1.1.0-alt1
4.0: 1.1.0-alt1
3.0: 1.0.1-alt3.1
www.altlinux.org/Changes

Группа :: Система/Основа
Пакет: osec

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: osec
Version: 1.1.0
Release: alt1

Summary: Lightweight file permission checker
License: GPL
Group: System/Base
Url: http://o-security.sourceforge.net
Packager: Stanislav Ievlev <inger at altlinux.ru>

Source: osec-%version.tar

PreReq: shadow-utils
Requires: libcdbxx >= 0.0.1-alt3
BuildPreReq: libcdbxx-devel >= 0.0.1-alt3
BuildPreReq: gcc-c++ >= 4.1.1-alt11

Provides: mtree-sec = %version-%release
Obsoletes: mtree-sec

%define osec_statedir /var/lib/osec
%define osec_group osec
%define osec_user osec

# Automatically added by buildreq on Sat Apr 21 2007 (-bi)

BuildRequires: gcc-c++ help2man libcap-devel libcdbxx-devel libssl-devel perl-RPM

%package cronjob
Summary: General cron framework for osec
Requires: %name = %version-%release
Requires: %name-reporter
Group: System/Base

%package mailreport
Summary: Collection of reporters for osec
Group: System/Base
Provides: %name-reporter
Requires: %name = %version-%release
Requires: /bin/mail
PreReq: coreutils

%description
This package contains osec program which performs files integrity check
by traversing filesystem and making human readable reports about changes
and found files/directories with suspicious ownership or permissions.

%description cronjob
This package contains a general framework for osec pipelines.

%description mailreport
This package contains a set of reporters to use with osec:
osec_reporter - creates human readable reports;
osec_mailer - send mail only if some changes was detected;
osec_rpm_reporter - additional filter for osec_reporter,
add name of rpm packages for files in report.

%prep
%setup -q

%build
%make_build DEBUG_LDGLAGS=

%install
%makeinstall

#reporters

for file in mailer reporter rpm_reporter; do
install -pm755 data/osec_$file %buildroot%_bindir/
done

#cron job file

install -pD -m700 data/osec.cron %buildroot/etc/cron.daily/osec

#configs

mkdir -pm700 %buildroot/etc/osec
install -pm600 data/*.conf %buildroot/etc/osec/

#install directory for the databases

mkdir -p %buildroot%osec_statedir

%pre
/usr/sbin/groupadd -r -f %osec_group
/usr/sbin/useradd -r -g %osec_group -d /dev/null -s /dev/null -n %osec_user >/dev/null 2>&1 ||:

%triggerpostun -- %name < 0:1.0.0-alt1
rm -f %osec_statedir/osec.db.*

%files
%doc ChangeLog NEWS README
%_bindir/osec
%_man1dir/*

%files cronjob
%config(noreplace) /etc/cron.daily/osec
%defattr(600,root,root,700)
%config(noreplace) /etc/osec

%files mailreport
%_bindir/osec_mailer
%_bindir/osec_reporter
%_bindir/osec_rpm_reporter
%attr(770,root,%osec_group) %osec_statedir

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin