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