%define debug_package %{nil} Name: mod_ruid2 Version: 0.9.8 Release: 3.kng%{?dist} Summary: Suexec module for apache Group: System Environment/Daemons License: ASL 2.0 URL: http://space.dl.sourceforge.net/project/mod-ruid/ Source0: http://space.dl.sourceforge.net/project/mod-ruid/mod_ruid2//%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: libcap-devel BuildRequires: httpd-devel BuildRequires: gcc BuildRequires: gcc-c++ Requires: httpd-mmn = %([ -a %{_includedir}/httpd/.mmn ] && cat %{_includedir}/httpd/.mmn || echo missing) Requires: httpd >= 2.4 Obsoletes: mod_ruid %description With this module, all httpd process run under user's access right, not nobody or apache. mod_ruid2 is similar to mod_suid2, but has better performance than mod_suid2 because it doesn`t need to kill httpd children after one request. It makes use of kernel capabilites and after receiving a new request suids again. If you want to run apache modules, i.e. WebDAV, PHP, and so on under user's right, this module is useful. %prep %setup -q %build %{_bindir}/apxs -a -l cap -c mod_ruid2.c %install rm -rf %{buildroot} install -D -p -m 0755 .libs/mod_ruid2.so \ %{buildroot}%{_libdir}/httpd/modules/mod_ruid2.so %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %{_libdir}/httpd/modules/mod_ruid2.so %changelog * Fri Jun 12 2015 Mustafa Ramadhan - 0.9.8-2.mr - Mod Requires * Fri Aug 16 2013 Mustafa Ramadhan - 0.9.8-1.mr - update to 0.9.8 * Tue Jan 22 2013 Mustafa Ramadhan - 0.9.7-3.mr - change mustafa.ramadhan@lxcenter.org to mustafa@bigraf.com * Sun Aug 19 2012 Mustafa Ramadhan (mustafa.ramadhan@lxcenter.org) 0.9.7-2.lx.el5 - Update to 0.9.7 and recompile for lxcenter * Thu Sep 08 2011 Denis Frolov 0.9.4-1 - update to mod_ruid2 0.9.4