-
Notifications
You must be signed in to change notification settings - Fork 698
Expand file tree
/
Copy pathaide.spec
More file actions
114 lines (96 loc) · 3.01 KB
/
aide.spec
File metadata and controls
114 lines (96 loc) · 3.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
Summary: Intrusion detection environment
Name: aide
Version: 0.17.4
Release: 6%{?dist}
URL: https://github.com/aide/aide
License: GPLv2+
Group: System Environment/Base
Vendor: VMware, Inc.
Distribution: Photon
Source0: https://github.com/aide/aide/releases/download/%{version}/%{name}-%{version}.tar.gz
%define sha512 %{name}=b6dba54fd204e1899d47b0b4139786cbeaa51c388027e2cfc1bb839297a70ae8ad6f37429594a730fac8007d62b4ba5b61a4aa22edbc55cbe986ccfaf5197f31
Source1: %{name}.conf
BuildRequires: build-essential
BuildRequires: pcre-devel
BuildRequires: libgpg-error-devel
BuildRequires: openssl-devel
BuildRequires: zlib-devel
BuildRequires: curl-devel
BuildRequires: libgcrypt-devel
BuildRequires: audit-devel
BuildRequires: libacl-devel
BuildRequires: attr-devel
BuildRequires: libselinux-devel
BuildRequires: e2fsprogs-devel
%if 0%{?with_check}
BuildRequires: check-devel
%endif
Requires: pcre
Requires: libgpg-error
Requires: openssl
Requires: libgcrypt
Requires: audit
Requires: libacl
Requires: attr
Requires: libselinux
Requires: curl-libs
Requires: e2fsprogs
%description
AIDE (Advanced Intrusion Detection Environment) is a file integrity
checker and intrusion detection program.
%prep
%autosetup -p1 -n %{name}-%{version}
%build
export HAVE_CHECK=1
autoreconf -ivf
%configure \
--disable-static \
--with-config_file=%{_sysconfdir}/%{name}.conf \
--with-gcrypt \
--with-zlib \
--with-curl \
--with-posix-acl \
--with-selinux \
--with-xattr \
--with-e2fsattrs \
--with-audit
%make_build
%install
%make_install %{?_smp_mflags}
mkdir -p %{buildroot}%{_sysconfdir} \
%{buildroot}%{_sharedstatedir}/%{name} \
%{buildroot}%{_var}/log/%{name} \
cp %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}.conf
chmod 600 %{buildroot}%{_sysconfdir}/%{name}.conf
chmod 700 %{buildroot}%{_sharedstatedir}/%{name} \
%{buildroot}%{_var}/log/%{name}
%if 0%{?with_check}
%check
make check %{?_smp_mflags}
%endif
%clean
rm -rf %{buildroot}/*
%files
%defattr(-,root,root)
%{_bindir}/%{name}
%{_mandir}/*
%config(noreplace) %{_sysconfdir}/%{name}.conf
%dir %{_sharedstatedir}/%{name}
%{_var}/log/%{name}
%changelog
* Sun Nov 19 2023 Shreenidhi Shedi <sshedi@vmware.com> 0.17.4-6
- Bump version as a part of openssl upgrade
* Wed Aug 23 2023 Shreenidhi Shedi <sshedi@vmware.com> 0.17.4-5
- Use database_in inplace of database in aide.conf
* Fri Apr 14 2023 Shreenidhi Shedi <sshedi@vmware.com> 0.17.4-4
- Bump version as a part of zlib upgrade
* Sat Mar 25 2023 Guruswamy Basavaiah <bguruswamy@vmware.com> 0.17.4-3
- In aide.conf removed verbose option and introduced log_level option
* Thu Dec 22 2022 Guruswamy Basavaiah <bguruswamy@vmware.com> 0.17.4-2
- Bump release as a part of libgpg-error upgrade to 1.46
* Thu Sep 15 2022 Shreenidhi Shedi <sshedi@vmware.com> 0.17.4-1
- Upgrade to v0.17.4
* Tue Sep 29 2020 Satya Naga Vasamsetty <svasamsetty@vmware.com> 0.16.2-2
- openssl 1.1.1
* Wed Aug 14 2019 Tapas Kundu <tkundu@vmware.com> 0.16.2-1
- Initial build for Photon