]> git.pld-linux.org Git - packages/apache-mod_ruid2.git/blame - apache-mod_ruid2.spec
- up to 0.9.8
[packages/apache-mod_ruid2.git] / apache-mod_ruid2.spec
CommitLineData
71eb528e
JR
1%define mod_name ruid2
2%define apxs /usr/sbin/apxs
3Summary: Apache module: run all httpd process under user's access right
4Summary(pl.UTF-8): Moduł do apache: uruchamiania procesów httpd na prawach użytkowniów
5Name: apache-mod_%{mod_name}
cdf37ae8 6Version: 0.9.8
8063bf81 7Release: 1
71eb528e
JR
8License: ASL v2.0
9Group: Networking/Daemons/HTTP
10Source0: http://sourceforge.net/projects/mod-ruid/files/mod_ruid2/mod_%{mod_name}-%{version}.tar.bz2
cdf37ae8 11# Source0-md5: 05a29e38ef22f4d5e8bf22b53f45ab41
71eb528e 12Source1: mod_%{mod_name}.conf
8063bf81 13Patch0: %{name}-stat-rgroups.patch
71eb528e
JR
14URL: http://mod-ruid.sourceforge.net/
15BuildRequires: %{apxs}
16BuildRequires: apache-devel >= 2.0.0
17BuildRequires: libcap-devel
18BuildRequires: rpmbuild(macros) >= 1.268
19Requires: apache(modules-api) = %apache_modules_api
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
23%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
24
25%description
26With this module, all httpd process run under user's access right,
27not nobody or http. mod_ruid2 makes use of kernel capabilites
28and after receiving a new request suids again. If you want to run
29apache modules, i.e. WebDAV, PHP, and so on under user's right,
30this module is useful.
31
32%description -l pl.UTF-8
33Przy pomocy tego modułu wszystkie procesy httpd są uruchamiane na
34prawach użytkowników zamiast nobody czy http. mod_ruid2 wykorzystuje
35implementację "capability" jądra linuksa do zmiany właściciela
36procesu.
37
38%prep
39%setup -q -n mod_%{mod_name}-%{version}
8063bf81 40%patch0 -p1
71eb528e
JR
41
42%build
43%{apxs} -l cap -c mod_%{mod_name}.c
44
45%install
46rm -rf $RPM_BUILD_ROOT
fce710dd 47install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d}
71eb528e
JR
48
49install .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
fce710dd 50install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/12_mod_%{mod_name}.conf
71eb528e
JR
51
52%clean
53rm -rf $RPM_BUILD_ROOT
54
55%post
56%service -q httpd restart
57
58%postun
59if [ "$1" = "0" ]; then
60 %service -q httpd restart
61fi
62
63%files
64%defattr(644,root,root,755)
ca8e2696 65%doc README ruid2.conf
fce710dd 66%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf
71eb528e 67%attr(755,root,root) %{_pkglibdir}/*.so
This page took 0.102533 seconds and 4 git commands to generate.