]> git.pld-linux.org Git - packages/acid.git/blob - acid.spec
- rel 7 (apache 2.2 compatible config)
[packages/acid.git] / acid.spec
1 Summary:        Analysis Console for Incident Databases
2 Summary(pl):    Konsola do analizy baz danych o incydentach (ACID)
3 Name:           acid
4 Version:        0.9.6b23
5 Release:        7
6 License:        GPL/PHP
7 Group:          Applications/WWW
8 Source0:        http://acidlab.sourceforge.net/%{name}-%{version}.tar.gz
9 # Source0-md5:  d8c49614393fa05ac140de349f57e438
10 Source1:        %{name}.conf
11 Patch0:         %{name}-config.patch
12 URL:            http://acidlab.sourceforge.net/
13 BuildRequires:  rpmbuild(macros) >= 1.264
14 Requires:       adodb >= 4.67-1.17
15 Requires:       jpgraph >= 1.8
16 Requires:       php-gd >= 3:4.0.4
17 Requires:       php < 4:5.0.0
18 Requires:       webapps
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define         _appdir         %{_datadir}/%{name}
23 %define         _webapps        /etc/webapps
24 %define         _webapp         %{name}
25 %define         _sysconfdir     %{_webapps}/%{_webapp}
26
27 %description
28 ACID is a PHP-based analysis engine to search and process a database
29 of security incidents generated by the security-related software such
30 as the NIDS Snort.
31
32 %description -l pl
33 ACID jest bazuj±cym na PHP silnikiem do przeszukiwania i analizy baz
34 danych zawieraj±cych informacje o incydentach bezpieczeñstwa
35 wygenerowanych przez oprogramowanie takie jak NIDS Snort.
36
37 %prep
38 %setup -q -n %{name}
39 %patch0 -p1
40
41 find '(' -name '*~' -o -name '*.orig' ')' | xargs -r rm -v
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{%{_appdir},%{_sysconfdir}}
46
47 install acid* index.html $RPM_BUILD_ROOT%{_appdir}
48 # TODO: patch source instead
49 mv -f $RPM_BUILD_ROOT%{_appdir}/acid_conf.php $RPM_BUILD_ROOT%{_sysconfdir}
50 ln -sf %{_sysconfdir}/acid_conf.php $RPM_BUILD_ROOT%{_appdir}/acid_conf.php
51
52 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
53 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %triggerin -- apache1
59 %webapp_register apache %{_webapp}
60
61 %triggerun -- apache1
62 %webapp_unregister apache %{_webapp}
63
64 %triggerin -- apache < 2.2.0, apache-base
65 %webapp_register httpd %{_webapp}
66
67 %triggerun -- apache < 2.2.0, apache-base
68 %webapp_unregister httpd %{_webapp}
69
70 %triggerpostun -- %{name} < 0.9.6b23-5.2
71 %{__sed} -i -e 's,%{php_pear_dir}/adodb,/usr/share/php/adodb,' %{_sysconfdir}/acid_conf.php
72
73 %files
74 %defattr(644,root,root,755)
75 %doc create* CHANGELOG CREDITS README TODO
76 %dir %attr(750,root,http) %{_sysconfdir}
77 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
78 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
79 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/acid_conf.php
80 %{_appdir}
This page took 0.061624 seconds and 3 git commands to generate.