]>
Commit | Line | Data |
---|---|---|
ae88c8c7 JB |
1 | %define apxs /usr/sbin/apxs |
2 | Summary: mod_restartd - run certain CGIs as root | |
b1a94797 | 3 | Summary(pl.UTF-8): mod_restartd - uruchamianie pewnych CGI z uprawnieniami roota |
ae88c8c7 JB |
4 | Name: mod_restartd |
5 | Version: 1.0.3 | |
6 | Release: 0.1 | |
7 | License: Apache 2.0 | |
8 | Group: Networking/Daemons | |
9 | Source0: http://directory.fedora.redhat.com/sources/mod_restartd-%{version}.tar.gz | |
10 | # Source0-md5: 6336780a292dbd41d2cc66212f3be7fa | |
11 | URL: http://directory.fedora.redhat.com/wiki/Mod_restartd | |
92883305 | 12 | BuildRequires: apache-apxs >= 2.2 |
ae88c8c7 JB |
13 | BuildRequires: apache-devel >= 2.2 |
14 | BuildRequires: apr-devel >= 1:1.0 | |
15 | BuildRequires: apr-util-devel >= 1:1.0 | |
bdfc769a | 16 | Requires: apache(modules-api) = %apache_modules_api |
ae88c8c7 JB |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) | |
20 | %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null) | |
21 | ||
22 | %description | |
23 | An Apache 2 module for doing suid CGIs. The Admin Server provides CGIs | |
24 | to stop, start, and restart the servers, which may run on port 389, | |
25 | which means they must be started by root. However, Apache does not | |
26 | like to run as root for security reasons. This module allows CGIs to | |
27 | be run as root by copying the the mod_cgid and fixing it so that only | |
28 | certain CGIs may be run as root. | |
29 | ||
d706f724 JR |
30 | %description -l pl.UTF-8 |
31 | Moduł Apache'a 2 do wykonywania suidowych CGI. Admin Server udostępnia | |
32 | CGI do zatrzymywania, uruchamiania i restartowania serwerów | |
33 | działających na porcie 389, co oznacza, że muszą być uruchamiane jako | |
34 | root. Jednak Apache nie lubi działać jako root ze względów | |
35 | bezpieczeństwa. Ten moduł pozwala na wykonywanie CGI jako root poprzez | |
36 | skopiowanie mod_cgid i poprawienie tak, by pozwalał na wykonywanie | |
37 | jako root tylko określonych CGI. | |
ae88c8c7 JB |
38 | |
39 | %prep | |
40 | %setup -q -n mod_restartd-%{version} | |
41 | ||
42 | %build | |
43 | # apr-util is missing in configure check | |
44 | CPPFLAGS="`apu-1-config --includes`" | |
45 | %configure \ | |
46 | --with-apxs=%{apxs} \ | |
47 | --with-apr-config | |
48 | ||
49 | %{__make} | |
50 | ||
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | install -d $RPM_BUILD_ROOT%{_pkglibdir} | |
54 | ||
55 | install .libs/libmodrestartd.so $RPM_BUILD_ROOT%{_pkglibdir} | |
56 | ||
57 | # TODO: XX_mod_restartd.conf | |
58 | ||
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %doc README | |
65 | %attr(755,root,root) %{_pkglibdir}/libmodrestartd.so |