]>
Commit | Line | Data |
---|---|---|
3c26c31b | 1 | %define mod_name apparmor |
2 | %define apxs /usr/sbin/apxs | |
3c26c31b | 3 | Summary: Apache module: AppArmor |
87c1804d | 4 | Summary(pl.UTF-8): Moduł Apache'a: AppArmor |
3c26c31b | 5 | Name: apache-mod_%{mod_name} |
070a1a46 | 6 | Version: 2.6.1 |
071a8fda | 7 | Release: 1 |
917807cb | 8 | Epoch: 1 |
3c26c31b | 9 | License: GPL |
d4c2d6d1 | 10 | Group: Networking/Daemons/HTTP |
abac367b | 11 | Source0: http://launchpad.net/apparmor/2.6/%{version}/+download/apparmor-%{version}.tar.gz |
070a1a46 | 12 | # Source0-md5: e2dabce946cb8258834f90f0a6c87726 |
071a8fda | 13 | URL: http://apparmor.wiki.kernel.org/ |
7432402b | 14 | BuildRequires: %{apxs} |
3c26c31b | 15 | BuildRequires: apache-devel >= 2.0.52-2 |
16 | BuildRequires: libapparmor-devel | |
17 | Requires: apache(modules-api) = %apache_modules_api | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) | |
e51bc928 | 21 | %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d |
3c26c31b | 22 | |
23 | %description | |
5a2bef5a ER |
24 | mod_apparmor adds support to Apache 2 to provide AppArmor confinement |
25 | to individual CGI scripts handled by Apache modules like mod_php and | |
3c26c31b | 26 | mod_perl. This package is part of a suite of tools that used to be |
27 | named SubDomain. | |
28 | ||
02b7ecb1 JR |
29 | %description -l pl.UTF-8 |
30 | mod_apparmor dodaje do Apache'a 2 obsługę ograniczeń AppArmor dla | |
31 | poszczególnych skryptów CGI obsługiwanych przez moduły Apache'a takie | |
32 | jak mod_php czy mod_perl. Ten pakiet jest częścią zestawu narzędzi | |
c2d42ef0 JB |
33 | zwanych SubDomain. |
34 | ||
3c26c31b | 35 | %prep |
abac367b | 36 | %setup -q -n apparmor-%{version} |
3c26c31b | 37 | |
38 | %build | |
071a8fda | 39 | %{__make} -C changehat/mod_apparmor mod_%{mod_name}.so \ |
3c26c31b | 40 | APXS=%{apxs} |
41 | ||
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
071a8fda AM |
45 | cd changehat/mod_apparmor |
46 | ||
3c26c31b | 47 | install -D mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}/mod_%{mod_name}.so |
e51bc928 | 48 | install -D mod_%{mod_name}.conf $RPM_BUILD_ROOT%{_sysconfdir}/00_mod_%{mod_name}.conf |
3c26c31b | 49 | |
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %post | |
54 | %service -q httpd restart | |
55 | ||
56 | %postun | |
57 | if [ "$1" = "0" ]; then | |
58 | %service -q httpd restart | |
59 | fi | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
e51bc928 | 63 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*_mod_%{mod_name}.conf |
3c26c31b | 64 | %attr(755,root,root) %{_pkglibdir}/*.so |