1 %define apxs /usr/sbin/apxs
2 Summary: mod_restartd - run certain CGIs as root
3 Summary(pl.UTF-8): mod_restartd - uruchamianie pewnych CGI z uprawnieniami roota
8 Group: Networking/Daemons/HTTP
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
12 BuildRequires: %{apxs}
13 BuildRequires: apache-devel >= 2.2
14 BuildRequires: apr-devel >= 1:1.0
15 BuildRequires: apr-util-devel >= 1:1.0
16 Requires: apache(modules-api) = %apache_modules_api
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
20 %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
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.
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.
40 %setup -q -n mod_restartd-%{version}
43 # apr-util is missing in configure check
44 CPPFLAGS="`apu-1-config --includes`"
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT%{_pkglibdir}
55 install .libs/libmodrestartd.so $RPM_BUILD_ROOT%{_pkglibdir}
57 # TODO: XX_mod_restartd.conf
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
65 %attr(755,root,root) %{_pkglibdir}/libmodrestartd.so