Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37491500
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.0.1
Release: alt3.1

Summary: Lightweight file permission checker
License: GPL
Group: System/Base

Packager: Stanislav Ievlev <inger at altlinux.ru>

URL: http://o-security.sourceforge.net


Source: %name-%version.tar.bz2
Patch: osec-1.0.1-alt-libexec.patch
Patch1: osec-1.0.1-alt-gcc34.patch

Requires: libcdbxx >= 0.0.1-alt3
BuildPreReq: libcdbxx-devel >= 0.0.1-alt3

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

%define osec_group osec
%define osec_user osec

# Automatically added by buildreq on Mon Jul 05 2004 (-bi)

BuildRequires: boost-devel gcc-c++ help2man libcap-devel libcdb-devel libcdbxx-devel libssl-devel libstdc++-devel osec perl-RPM

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

%package mailreport
Summary: Collection of reporters for %name
Group: System/Base
Requires: %name-cronjob = %version-%release
Provides: %name-reporter

%description cronjob
This package contains a general framework for %name pipelines

%description mailreport
This package contains a set of reporters to use with %name:
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

%description
Contains program osec that makes human readable reports about changes and bad
(suid,sgid and world-writeable) files and directories.

%prep
%setup -q -n %name-%version
%patch -p1
%patch1 -p1

%build
%make_build DEBUG_LDGLAGS=

%install
%makeinstall
%__install -d -m700  $RPM_BUILD_ROOT%_sysconfdir/%name

#reporters

for file in mailer reporter rpm_reporter
do
   %__install -p -m755 data/%{name}_$file $RPM_BUILD_ROOT%_bindir/
done

#cron job file

%__install -pD -m755 data/%name.cron $RPM_BUILD_ROOT%_sysconfdir/cron.daily/%name

#configs

%__install -pm600 data/*.conf $RPM_BUILD_ROOT%_sysconfdir/%name

#install directory for the databases

%__install -d $RPM_BUILD_ROOT/%_localstatedir/%name

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

%triggerpostun -- %name < 1.0.0-alt1
%__rm -f %_localstatedir/%name/osec.db.*

%post mailreport
%__chown -R %osec_user:%osec_group %_localstatedir/%name

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

%files cronjob
%config(noreplace) %_sysconfdir/cron.daily/%name
%attr(700,root,root) %dir %_sysconfdir/%name
%attr(600,root,root) %config(noreplace) %_sysconfdir/%name/dirs.conf
%attr(600,root,root) %config(noreplace) %_sysconfdir/%name/pipe.conf

%files mailreport
%_bindir/%{name}_reporter
%_bindir/%{name}_mailer
%_bindir/%{name}_rpm_reporter
%attr(700,%osec_user,%osec_group) %_localstatedir/%name

%changelog

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

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