aide/aide.spec

190 lines
5.0 KiB
RPMSpec
Raw Normal View History

%bcond_without have_check
2019-12-25 15:41:17 +08:00
Name: aide
Version: 0.17.4
Release: 2
2019-12-25 15:41:17 +08:00
Summary: Advanced Intrusion Detection Environment
License: GPLv2+
URL: http://sourceforge.net/projects/aide
2020-07-29 14:34:21 +08:00
Source0: http://github.com/aide/aide/releases/download/v%{version}/%{name}-%{version}.tar.gz
2019-12-25 15:41:17 +08:00
Source1: aide.conf
Source2: aide.logrotate
2019-12-25 15:41:17 +08:00
2022-03-31 15:34:07 +08:00
BuildRequires: gcc make bison flex pcre2-devel libgpg-error-devel libgcrypt-devel zlib-devel libcurl-devel
BuildRequires: libacl-devel libselinux-devel libattr-devel e2fsprogs-devel audit-libs-devel
2022-03-31 15:34:07 +08:00
# command autoreconf needs autoconf and automake
BuildRequires: autoconf automake
# for make check
%if %{with have_check}
BuildRequires: check-devel
%endif
2019-12-25 15:41:17 +08:00
2021-12-31 11:14:38 +08:00
Patch0: Add-sm3-algorithm-for-aide.patch
Patch1: backport-Handle-malformed-database-lines.patch
Patch2: backport-Fix-handling-of-duplicate-database-entries.patch
Patch3: backport-Switch-from-PCRE-to-PCRE2-closes-116.patch
2021-12-31 11:14:38 +08:00
2019-12-25 15:41:17 +08:00
%description
AIDE (Advanced Intrusion Detection Environment, [eyd]) is a file and directory integrity checker.
It creates a database from the regular expression rules that it finds from the config file(s).
Once this database is initialized it can be used to verify the integrity of the files.
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
2019-12-25 15:41:17 +08:00
%build
2022-03-31 15:34:07 +08:00
# add command autoreconf to regenerate configure file
# because, the patch Switch-from-PCRE-to-PCRE2 changed configure.ac file
autoreconf -ivf
2019-12-25 15:41:17 +08:00
%configure --disable-static --with-config_file=%{_sysconfdir}/aide.conf --with-gcrypt --with-zlib \
--with-curl --with-posix-acl --with-selinux --with-xattr --with-e2fsattrs --with-audit
make %{?_smp_mflags}
%install
%make_install bindir=%{_sbindir}
install -Dpm0644 -t %{buildroot}%{_sysconfdir} %{S:1}
install -Dpm0644 %{S:2} %{buildroot}%{_sysconfdir}/logrotate.d/aide
2019-12-25 15:41:17 +08:00
mkdir -p %{buildroot}%{_localstatedir}/log/aide
mkdir -p -m0700 %{buildroot}%{_localstatedir}/lib/aide
%check
%if %{with have_check}
make check
%endif
2019-12-25 15:41:17 +08:00
%pre
%preun
%post
%postun
%files
%defattr(-,root,root)
%license COPYING AUTHORS
%doc ChangeLog contrib/
%{_sbindir}/*
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/aide.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/aide
%dir %attr(0700,root,root) %{_localstatedir}/lib/aide
%dir %attr(0700,root,root) %{_localstatedir}/log/aide
%files help
%defattr(-,root,root)
%doc NEWS README
2019-12-25 15:41:17 +08:00
%{_mandir}/*/*
%changelog
* Tue Mar 28 2023 yixiangzhike <yixiangzhike007@163.com> - 0.17.4-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: enable make chck
* Mon Jun 27 2022 yixiangzhike <yixiangzhike007@163.com> - 0.17.4-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC: update to 0.17.4
2022-03-31 15:34:07 +08:00
* Thu Mar 31 2022 yixiangzhike <yixiangzhike007@163.com> - 0.17.3-6
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: switch from PCRE to PCRE2
* Tue Feb 22 2022 yixiangzhike <yixiangzhike007@163.com> - 0.17.3-5
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: handle malformed path and duplicate database entries
2022-02-08 16:07:03 +08:00
* Tue Feb 8 2022 yixiangzhike <yixiangzhike007@163.com> - 0.17.3-4
- Type:CVE
- ID:CVE-2021-45417
- SUG:NA
- DESC: fix CVE-2021-45417
2021-12-31 11:14:38 +08:00
* Fri Dec 31 2021 wangcheng <wangcheng156@huawei.com> - 0.17.3-3
- Type:enhancement
- ID:NA
- SUG:NA
- DESC: add the sm3 crypt support
2021-08-19 19:46:12 +08:00
* Thu Aug 19 2021 yixiangzhike <zhangxingliang3@huawei.com> - 0.17.3-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: fix wrong config options in aide.conf
* Sat Jul 31 2021 zoulin <zoulin13@huawei.com> - 0.17.3-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC: update to 0.17.3;
delete -Sgit from %autosetup, and delete BuildRequires git
2020-07-29 14:34:21 +08:00
* Wed Jul 29 2020 wangchen <wangchen137@huawei.com> - 0.16.2-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC: update to 0.16.2
* Tue Mar 17 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.16-16
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: change file from /etc/logrotate.d/aide/aide.logrotate to /etc/logrotate.d/aide
2020-01-10 15:46:55 +08:00
* Fri Jan 10 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.16-15
- Type:enhancement
- ID:NA
- SUG:NA
- DESC: clean code
2019-12-25 15:41:17 +08:00
* Wed Oct 9 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.16-14
- Type:enhancement
- ID:NA
- SUG:NA
- DESC: change the directory of AUTHORS
* Sat Sep 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.16-13
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:revise description
* Fri Aug 23 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.16-12
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:strengthen spec
* Tue Aug 20 2019 guoxiaoqi<guoxiaoqi2@huawei.com> - 0.16-11
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:rename patches
* Tue Apr 9 2019 wangxiao<wangxiao65@huawei.com> - 0.16-10
- Type:bugfix
- ID:NA
- SUG:restart
- DESC:Fix short form of --limit parameter
Fix root_prefix option
Add missing include in src/db.c
Fix memory leak in is_prelinked
Skip reading section data if the section doesn't contain any table.
* Sun Apr 7 2019 zoujing<zoujing13@huawei.com> - 0.16-9
- Type:enhancement
- ID:NA
- SUG:restart
- DESC: backport patch for fixing "DBG: md_enable: algorithm 7 not available"
* Tue Jul 31 2018 openEuler Buildteam <buildteam@openeuler.org> - 0.16-8
- Package init