]>
Commit | Line | Data |
---|---|---|
50e58831 | 1 | # TODO: webapps or so |
2f26d290 | 2 | Summary: Adeos - automated filesystem security scanner |
be4434da | 3 | Summary(pl.UTF-8): Adeos - Zautomatyzowany skaner bezpieczeństwa systemu plików |
2f26d290 PG |
4 | Name: adeos |
5 | Version: 1.0 | |
e607dfac | 6 | Release: 3 |
2f26d290 PG |
7 | Group: Applications/System |
8 | License: GPL v2 | |
9 | Source0: http://linux.wku.edu/~lamonml/software/adeos/%{name}-%{version}.tar.bz2 | |
71a59c33 | 10 | # Source0-md5: 059b47e4cd45a40c060bd41dd33739a1 |
2f26d290 | 11 | URL: http://linux.wku.edu/~lamonml/software/adeos/ |
25e7b9eb | 12 | BuildRequires: fhs-compliance |
2f26d290 PG |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
14 | ||
144d28ac | 15 | %define _wwwdir /srv/httpd/html/%{name} |
781250de | 16 | |
2f26d290 PG |
17 | %description |
18 | Adeos (named after the obscure Roman goddess of modesty) is an | |
19 | automated filesystem security scanner. It recursively walks all | |
20 | mounted filesystems on the local system and attempts to identify | |
21 | common security concerns such as SUID and world-writeable files. | |
22 | ||
32a39d8d JR |
23 | %description -l pl.UTF-8 |
24 | Adeos (nazwany na cześć nieznanego rzymskiego boga skromności) jest | |
25 | zautomatyzowanym skanerem bezpieczeństwa systemu plików. Program | |
26 | rekursywnie przemieszcza się po lokalnym systemie plików i stara się | |
27 | zidentyfikować powszechne błędy w zabezpieczeniach, takie jak SUIDy | |
2f26d290 PG |
28 | czy pliki zapisywalne dla wszystkich. |
29 | ||
17c49b23 PG |
30 | %package www |
31 | Summary: Adeos - automated filesystem security scanner | |
be4434da | 32 | Summary(pl.UTF-8): Adeos - Zautomatyzowany skaner bezpieczeństwa systemu plików |
17c49b23 PG |
33 | Group: Applications/System |
34 | Requires: adeos | |
35 | Requires: crondaemon | |
36 | Requires: webserver | |
37 | ||
38 | %description www | |
d7643b53 | 39 | Scripts and cron jobs to publish data on WWW. |
17c49b23 | 40 | |
32a39d8d | 41 | %description www -l pl.UTF-8 |
d7643b53 | 42 | Skrypty crona do publikacji na stronie WWW. |
17c49b23 | 43 | |
2f26d290 PG |
44 | %prep |
45 | %setup -q | |
46 | ||
47 | %build | |
48 | %configure | |
49 | ||
50 | %{__make} | |
51 | ||
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
781250de | 54 | install -d $RPM_BUILD_ROOT{%{_bindir},/etc/cron.weekly,%{_wwwdir}} |
2f26d290 PG |
55 | |
56 | install %{name} $RPM_BUILD_ROOT%{_bindir} | |
57 | ||
781250de PG |
58 | cat > $RPM_BUILD_ROOT/etc/cron.weekly/%{name}.sh <<EOF |
59 | cd %{_wwwdir} | |
60 | %{_bindir}/%{name} -h | |
42fe8e9a | 61 | chmod a+r results.html |
781250de PG |
62 | EOF |
63 | ||
42fe8e9a | 64 | touch $RPM_BUILD_ROOT%{_wwwdir}/results.html |
781250de | 65 | |
2f26d290 PG |
66 | %clean |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %files | |
70 | %defattr(644,root,root,755) | |
71 | %doc CHANGELOG README | |
72 | %attr(755,root,root) %{_bindir}/* | |
17c49b23 PG |
73 | |
74 | %files www | |
e607dfac | 75 | %defattr(644,root,root,755) |
781250de | 76 | %dir %{_wwwdir} |
42fe8e9a | 77 | %ghost %{_wwwdir}/results.html |
781250de | 78 | %attr(755,root,root) %config(noreplace) /etc/cron.weekly/%{name}.sh |